r : read
w : write
x : excute
rwx|rwx|rwx
유저|그룹|other
예시
root@KMU-UBUNTU:/work# chmod u+x korea
root@KMU-UBUNTU:/work# ls -l korea
-rwxr--r-- 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# chmod g+w korea // 그룹에 쓰기 추가
root@KMU-UBUNTU:/work# ls -l korea
-rwxrw-r-- 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# chmod o-r korea // other에 읽기 제거
root@KMU-UBUNTU:/work# ls -l korea
-rwxrw---- 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# chmod o+rwx korea // other에 rwx추가
root@KMU-UBUNTU:/work# ls -l korea
-rwxrw-rwx 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work#
root@KMU-UBUNTU:/work# chmod ugo-w korea
root@KMU-UBUNTU:/work# ls -l korea
-r-xr--r-x 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# chmod 000 korea
root@KMU-UBUNTU:/work# ls -l korea
---------- 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# chmod 777 korea
root@KMU-UBUNTU:/work# ls -l korea
-rwxrwxrwx 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# chmod 644 korea // 기본 퍼미션 설정
root@KMU-UBUNTU:/work# ls -l korea
-rw-r--r-- 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# ./korea
bash: ./korea: Permission denied
실행권한이 없으므로 실행불가
root@KMU-UBUNTU:/work# chmod u+x korea // 실행가능
root@KMU-UBUNTU:/work# ls -l korea
-rwxr--r-- 1 root root 15 Mar 21 19:42 korea
root@KMU-UBUNTU:/work# ./korea
./korea: line 1: korea: command not found // 실행할수있는 exe 파일이 아니므로 오류