当前位置: 技术问答>linux和unix
about chmod command
来源: 互联网 发布时间:2016-07-06
本文导语: hi guys! just wanna ask about chmod command in linux(ubuntu) .how to change the mod (que xian) for the directory and all files (file may have different names)inside by one command ? like /home/mydir/c_language.doc /home/mydir/java.exe /home/mydir/file...
hi guys!
just wanna ask about chmod command in linux(ubuntu) .how to change the mod (que xian) for the directory and all files (file may have different names)inside by one command ?
like
/home/mydir/c_language.doc
/home/mydir/java.exe
/home/mydir/file.text
thanks in advance
just wanna ask about chmod command in linux(ubuntu) .how to change the mod (que xian) for the directory and all files (file may have different names)inside by one command ?
like
/home/mydir/c_language.doc
/home/mydir/java.exe
/home/mydir/file.text
thanks in advance
|
sudo chomod -R 777 DIRECTORY
|
chomod -R
-R
Change the modes of the file hierarchies rooted in the files
instead of just the files themselves.
-R
Change the modes of the file hierarchies rooted in the files
instead of just the files themselves.
|
chomod -R TARGET-DIRECTORY
correct!
|
-R means recursive. good luck!