Use of Chgrp, Chown, Chmod and Tar packages

xiaoxiao2021-03-06  56

2003/07/18 Xu Yunsheng

1. Change the group of users or directories

Usage: CHGRP group name user or directory

CHGRP Webdev apache

2, change the Owner of the user or directory

Usage: chown [-r] OWNER name user or directory

Example: chown -r xuys. // While all attributes of the current directory and its subdirectory are all all of the user Xuys.

3, pay the directory

Usage: chmod [-r] permission code catalog

Example: chomd -r 777 / var / www

4. Pack all files and directories in the current directory into the current directory.

Example: Tar Zcvf www20030718.tar.gz.

5, unzipped to the current directory

Example: Tar Zxcf www20030718.tar.gz

转载请注明原文地址:https://www.9cbs.com/read-114645.html

New Post(0)