command to change the access permissions in linux.

 

     chmod – change the access permissions.

     Format :chmod [options] mode file

     Eg1: chmod 755 /data1

     Here it will give the r(4),w(2),x(1), permissions to file for the owner and group and r,x permissions to others.

     Eg2: chmod –r 700 /data2

     Here it will give the permissions rwx to owner and no permissions to groups and Others for the directory /data2 recursively.

     The full permission of a folder is 777 and the full permission of a file is 666.If a file is executable the full permission will be 777.

  • 49 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...