Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change directory, files and sub-directories owner in linux

chown root /u
              Change the owner of /u to "root".

       chown root:staff /u
              Likewise, but also change its group to "staff".

       chown -hR root /u
              Change the owner of /u and subfiles to "root".
Source by manpages.ubuntu.com #
 
PREVIOUS NEXT
Tagged: #change #files #owner #linux
ADD COMMENT
Topic
Name
5+3 =