Skip to content

Instantly share code, notes, and snippets.

@LeeDDHH
Created September 7, 2021 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeeDDHH/f3a0b7053edd06756db1f3ab1e0cc261 to your computer and use it in GitHub Desktop.
Save LeeDDHH/f3a0b7053edd06756db1f3ab1e0cc261 to your computer and use it in GitHub Desktop.
`chmod` の表記で気になったあれこれ

アクセス権の表記が8進数になっている場合の読み方

  • アルファベットなら rw-rw-r-- のようになっている
    • 3桁ずつ分けて、左から user / group / other になる
  • 数字の場合も同様の分け方
8進数 2進数 記号 権限
0 000 --- 権限なし
1 001 --x 実行
2 010 -w- 書き
3 011 -wx 書き/実行
4 100 r-- 読み
5 101 r-x 読み/実行
6 110 rw- 読み/書き
7 111 rwx 読み/書き/実行
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment