close
chmod rwx name : change the file/directory to given mode
important
(.) : change the (.) to given mode (*) : change the all of non-hidden file/directory to given mode [1]
e.g., (change target)
chmod rwx . means just change the . to given mode
../
./
.hidden/
.hidden/
.hidden.txt
visible/
visible.txt
.hidden.txt
visible/
.hidden/
.hidden.txt
visible/
visible.txt
visible.txt
chmod rwx * means change the All of non-hidden files on current directory to given mode [1] ../ ./ .hidden/ .hidden/ .hidden.txt visible/ visible.txt .hidden.txt visible/ .hidden/ .hidden.txt visible/ visible.txt visible.txt
chmod rwx * -R means change the All of files/directories in All of non-hidden of current directory to given mode
i.e., means change the All of files/directories (include hidden files/directories) in current non-hidden directory to given mode
../
./
.hidden/
.hidden/
.hidden.txt
visible/
visible.txt
.hidden.txt
visible/
.hidden/
.hidden.txt
visible/
visible.txt
visible.txt
chmod rwx . -R means change the All of files within Recursive directories to given mode ../ ./ .hidden/ .hidden/ .hidden.txt visible/ visible.txt .hidden.txt visible/ .hidden/ .hidden.txt visible/ visible.txt visible.txt
[1] the * ignore hidden file or directory by default
文章標籤
全站熱搜