UNIX/コマンド/ファイル管理/chmod
Table of Contents |
% ls -l drwxr-xr-x 3 s1080134 student 512 May 14 18:05 GNUstep/
rwx|r-x|r-x
ファイルオーナー(s108134)|グループ(student)|その他
rwxr-xr-x
% chmod [who][operator][permissions] [filename]
% chmod u+x [filename]
% chmod u+x,g-wx,o-rwx [filename]
% chmod +x [filename]
% chmod = [filename]
rwx|r-x|---
4+2+1|4+1|0
750
% chmod 0750 [filename]
% ls -l `which passwd` ---s--x--x 1 root other 7161 2001-02-09 09:54 /bin/passwd*
% ls -d /tmp drwxrwxrwt 10 root sys 4259 2003-10-16 16:15 /tmp/
% chmod 705 -R [dir]
% find . -type f -exec chmod 604 \{\} \;
% find . -type d -exec chmod 705 \{\} \;
% find . -type f -print | xargs chmod 604