用 root 賬號執行chmod命令:
#chmod -R 777 dirPath
參數 -R 表示遞歸,dirPath及其之內的所有文件夾、文件都被改變了權限。
例子:
#chmod -R 777 /home/user1/workspace/git
使用命令前,用 ls -l dirPath查看文件夾權限信息:

使用命令后:

用 root 賬號執行chmod命令:
#chmod -R 777 dirPath
參數 -R 表示遞歸,dirPath及其之內的所有文件夾、文件都被改變了權限。
例子:
#chmod -R 777 /home/user1/workspace/git
使用命令前,用 ls -l dirPath查看文件夾權限信息:

使用命令后:

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。