Linux

[Linux][터미널] 파일 ,디렉토리 권한 설정.

개미맨 2020. 10. 5. 23:51

파일, 디렉토리 권한 설정.

  • 하위 모든 파일 권한 설정.
find /path/to/location -type f -print0|xargs -0 chmod 644

 

  • 하위 모든 디렉토리 권한 설정.
find /path/to/location -type d -print0 |xargs -0 chmod 755
  • 하위 모든 파일&디렉토리 권한설정.
chmod -R 644 /path/to/location

 

winaero.com/run-chmod-separately-for-files-and-directories/

 

Run Chmod separately for files and directories

If you are a Linux user, you have probably heard about the console app chmod. It is a useful tool which allows changing file system permissions using a terminal session or a terminal emulator. When you run it, it changes the permissions that you specify on

winaero.com