ls -al输出说明 / chmod 变更mode bits

ls -al 输出的文件详细信息

 

chmod 变更mode bits

chmod u+x a.txt       ->    最左侧的三个rwx,user 加入x运行权限。
chmod g+w b.txt      ->    最中间的三个rwx,group 加入w写权限。
chmod o+rw c.txt     ->    最右侧的三个rwx,other 加入rw读写权限。
chmod a+x d.txt       ->    所有user / group 加入运行权限。
chmod -R 777           ->    所有文件给予全部权限。

posted @ 2020-06-11 14:03  hkingsp  阅读(159)  评论(0编辑  收藏  举报