1.chmod指令用來修改檔案的操作權限
修改檔案權限:
chmod 755 test.txt
修改檔案夾權限:
chmod 755 test/
修改檔案夾及檔案夾下所有檔案權限:
chmod -R 755 test/
2.chown指令用來修改檔案的使用者
修改檔案所屬使用者:
chown user:usergroup test.txt
修改檔案夾所屬使用者:
chown user:usergroup test
修改檔案夾及檔案夾下所有檔案所屬使用者:
chown -R user:usergroup test