San*_*r V 13 linux command-line cmd chmod
是否可以使用Linux命令以递归方式使文件夹可写,而不会影响其中的文件.
chmod 777 -R foldername - 将使文件夹内的所有文件夹和文件都可写.
我们有一个网站,我们不希望php框架的核心文件可写,但同时我们应该能够添加新文件.
dev*_*ull 26
你可以说:
find foldername -type d -exec chmod 777 {} \;
Run Code Online (Sandbox Code Playgroud)
这只会更改文件模式的目录,而不是文件中的那些.