The ""OWNER" is the name of the user who will become the new owner of the file or directory. The "GROUP" is the name of the group that will become the new group owner of the file or directory. If the group is not specified, the owner's primary group will be used.
The options are:
For example, to change the owner of the file "/etc/passwd" to the user root, you would use the following command:
chown root /etc/passwd .
To change the group owner of the directory /home to the group users, you would use the following command:
chown -R users /home .
The chown command can be used to change the ownership of files and directories to give different users or groups control over them. This can be useful for security purposes, or to make it easier for users to access files that they need.
Here are some additional examples of how to use the chown command:
To change the owner and group of the file "/etc/passwd" to the user root and the group wheel: