Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 修改檔案權限 chmod 指令用法速查

編輯:Linux 教學

指令語法

chmod 權限數字 檔案名

權限三位數分別對應:擁有者 | 群組 | 其他人

數值權限
4讀 (r)
2寫 (w)
1執行 (x)

常用組合

指令效果
sudo chmod 600 檔案僅擁有者讀寫
sudo chmod 644 檔案擁有者讀寫,群組/其他唯讀
sudo chmod 700 檔案僅擁有者讀寫執行
sudo chmod 666 檔案所有人讀寫
sudo chmod 777 檔案所有人讀寫執行(極度不建議)
Copyright © Windows教程網 All Rights Reserved