first, the purposeThis article describes the Linux chown and CHGRP commands.
Chown is used to set the owner of the file; Chgrp is used to set the owning group of the file.
This article will select the ubuntu14.04 release as the basis for the description.
Second, chown commandsyntax: chown user filename
Set the owner of the filename file to user.
For example, the current owner of the readme.md file is Zsy, using the Chown command to set the owner of the file to root.
iii. chgrp OrderSyntax: CHGRP group filename
Set the owning group of the filename to groups.
For example, the readme.md file currently belongs to a group of Zsy, using the CHGRP command to set the owning group of the file to root.
Iv. SummaryThis article describes the Chown and CHGRP commands under Linux, Chown is used to set the owner of the file, and Chgrp is used to set the owning group of the file.
Linux Essays (chown)---and chgrp