This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11416|Reply: 0

[linux] Linux modifies the user and group to which the file belongs

[Copy link]
Posted on 7/9/2015 10:41:00 PM | | |

Linux modifies the user and group to which the file belongs
Use the chown command to modify the user to whom a file or directory belongs:

       command: chown user directory or file name

       For example: chown qq /home/qq (change the owner of the QQ directory in the home directory to the QQ user)

Use the chgrp command to modify the group to which a file or directory belongs:

       Command: chgrp group directory or file name

       For example: chgrp qq /home/qq (change the group of the QQ directory in the home directory to the QQ group)

If you want to modify the properties of all files and subdirectories in the directory, add -R after the parameter




Previous:. .NET Cross-Platform: Compile dnx on CentOS and run ASP.NET 5 sample programs
Next:Define the php.ini parameters of PHP-FPM in Nginx's CONF
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com