Modifying both user and group ownership with chown

The chown command can also be used to modify both the owner and group of the file simultaneously by using either of the following syntax:

$ chown    owner:group    <filename_or_dirname>
$ chown    owner.group    <filename_or_dirname>

The chown command can be used to change the owner of the file named myfile to root and the group of the file to wheel, as shown in the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.151.158