5 FAQ tagged "chmod_command"
Viewing 1-5 of 5 FAQ -- How to run the .sh file in shell script in Linux / UNIX
Q. I’ve downloaded a software for Linux from net. There is a file called install.sh. How do I run .sh file to install the software?
A. .sh file is nothing but a shell script. The easiest way to run .sh shell script in Linux is as follows:
sh file.sh
bash file.sh
Another option is set executable permission using [...] - Linux / UNIX Setup and run php script as a cron job
Q. I’ve nicely written PHP script that I’d like to run as a cron job. I’m using CentOS 4.5 as server with Apache web server. How do I setup a PHP script as a cron job?
A. You need to setup execute permission on a php script. You need to use chmod command to change file [...] - Howto: Linux Write protect a file
Q. How do I write protect a file under Linux? I’m using CentOS 5 server Linux operating system. I need prevent accidental changes to my files.
A. There are two ways to write protect a file under Linux.
Method #1: You can make file readonly by removing users’ write permission for a file. Under Linux and [...] - Command to run (execute) bin files in Linux
Q. I have downloaded a file from internet that ends with .bin extension. Documentation says just run bin file. What command I need to type in order to run bin files in Linux.
A. .bin files are Linux self extracting binary files. For example Java or Flash are two examples of these types of file. Just [...] - How Linux file permissions work
Linux (and almost all other Unixish systems) have three user classes as follows:
User (u): The owner of file
Group (g): Other user who are in group (to access files)
Other (o): Everyone elseYou can setup following mode on each files. In a Linux and UNIX set of permissions is called as mode:
Read (r) [...]
Viewing 1-5 of 5 FAQ - ( see all popular tags )



Recent Comments
Today ~ 3 Comments
Today ~ 5 Comments
Today ~ 1 Comment
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments