Monday, 23 December 2013

How to change the owner and group of a File or Directory

Hello Friends I am Deepak Saini Today We are discus about the
Change owner or change the group of a file or directory
thats not big topic but its important so we discus about this

lets start

How we change the owner of a file or directory

1 Check the owner of a file or directory first
  syntax :- ll

You run this command when you are in the directory in which you want to change the owner or group of a directory

2 We are using the chown command for change the owner of a file or directory
 syntax :- chown <user name> <file or Dir  path>


How to change the group of a file or directory
1 check the group of the file same as we do in the case of owner
 syntax :- ll

2 use chgrp command for the change group of afile or directory
 syntax:-chgrp <group name> <file or Dir>

Thats all friend thanks for reading and Sorry For My R.I.P english
_/\_ Jai HIND

0 comments:

Post a Comment