Linux Essays (chown)---and chgrp

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.