在CentOS中,可使用以下命令进行文件和目录的权限管理,相关操作与Notepad软件本身权限管理类似:
ls -l命令查看文件或目录的当前权限,如ls -l /path/to/file。chmod命令,如chmod u+w /path/to/file(给所有者添加写权限),chmod g-x /path/to/file(删除组执行权限)。chmod 755 /path/to/file(所有者有读、写、执行权限,组和其他人有读、执行权限)。chown命令更改所有者,如chown username /path/to/file;使用chgrp命令更改所属组,如chgrp groupname /path/to/file。