Dr.Y.Narasimha Murthy.Ph.D
[email protected]
11
permissions for the group that the file is owned by and the last 3 characters define the access
permissions for everyone who do not belong to the group.
There are 3possible attributes that make up file access permissions.
r - Read permission. Whether the file may be read. In the case of a directory, this would mean
the ability to list the contents of the directory.
w - Write permission. Whether the file may be written to or modified. For a directory, this
defines whether you can make any changes to the contents of the directory. If write permission is
not set then you will not be able to delete, rename or create a file.
x - Execute permission. Whether the file may be executed. In the case of a directory, this
attribute decides whether you have permission to enter, run a search through that directory or
execute some program from that directory.The read ,write and execute bits are set to 1 or 0
depending on whether the permission is granted or not.
To change the permissions ,the command chmod is used.
For ex: $ chmod 644 file name, denotes that read and write permissions are granted to owner
only, read permission is granted only to group members and others.
Similarly $chmod 777 filename denotes that ,the read,write and execute permissions are given to
everyone.
Also the command with –t,-w,-x Or +t, +w, +x options indicate denial of permission to – and
granting permission to +.
Process Commands:
Process is any kind of program or task carried out by the PC. For e.g. $ ls -lR , is command or a
request to list files in a directory and all subdirectory in the current directory. It is a process.
A process is program (command given by user) toperform some Job. In Linux when you start
process, it gives a number (called PID or process-id), PID starts from 0 to 65535.
When a system starts up, the kernel initiates a few of its own activities as processes and launches
a program called init. init , in turn, runs a series of shell scripts (located in/etc) called init scripts,
which start all the system services. Many of these services are implemented as daemon
programs, programs that just sit in the background and do everything without having any user
interface. So even if we are not logged in, the system is at least a little busy performing routine