LinuxPermissionschmod
rsync

chmodPermissions

chmod 755

Change file access permissions.

Syntax

chmod [OPTION]... MODE FILE...

Example

Enter values below to update the example in real time.

chmod
file
txt
rw
script
sh
rwxr
xr
secret
key
go
# 숫자 방식
chmod 644 file.txt   # rw-r--r--
chmod 755 script.sh  # rwxr-xr-x
chmod 600 secret.key # rw-------

# 기호 방식
chmod u+x script.sh  # 소유자에 실행 권한 추가
chmod go-w file.txt  # 그룹·기타 쓰기 권한 제거