Linux常用命令—权限管理命令
1、chmod[changethepermissionsmodeofafile]:/bin/chmod 语法: chmod[{ugo}{+-=}{rwx}][文件或目录名]//直观 e.g. chmodu+wxfilename 所有者 chmodg=rwxfilename 所属组 chmodo-xfilename 其他人 eg: chmod g+w,o-r filename [root@localhosttmp]#ls-lstudy.list -rw-r--r--.1rootroot0May918:56study.list [root@localhosttmp]#chmodu+xstudy.list [root@localhosttmp]#ls-lstudy.list -rwxr--r--.1rootroot0May918:56study.list [root@localhosttmp]# 或者: chmod[mode=421][文件或目录] //推荐 权限所对数字: r-4 w-2 x-1 e.g. rwxr-xr-- 754 rw-r-x--x 651 rwxr-x-w-7...