December 2018
Beginner
320 pages
8h 57m
English
The chown command can be used to change the user ownership as well as the group ownership of a file or directory. Initially, we will see how the chown command can be used to change file ownership. The syntax of the chown command is as follows:
$ chown <user_name_to_set_as_owner> <file_or_foldername>
The following are some the examples to illustrate the usage of the chown command:
List current ownership of file named myfile using the ls command is shown as follows:
$ ls -l myfile
Grant user ownership of the file named myfile to jack, as shown in the following screenshot:

The chown command is very often used ...
Read now
Unlock full access