Skip to content

Instantly share code, notes, and snippets.

@jeremysells
Last active September 1, 2017 20:24
Show Gist options
  • Select an option

  • Save jeremysells/6de392632281f8f817883c80744514e9 to your computer and use it in GitHub Desktop.

Select an option

Save jeremysells/6de392632281f8f817883c80744514e9 to your computer and use it in GitHub Desktop.
permissions cheat sheet.sh
---x------ 1 nobody nogroup 0 Sep 1 20:34 100
--w------- 1 nobody nogroup 0 Sep 1 20:34 200
--wx------ 1 nobody nogroup 0 Sep 1 20:34 300
-r-------- 1 nobody nogroup 0 Sep 1 20:34 400
-r-x------ 1 nobody nogroup 0 Sep 1 20:34 500
-rw------- 1 nobody nogroup 0 Sep 1 20:34 600
-rwx------ 1 nobody nogroup 0 Sep 1 20:34 700
# Source: http://www.december.com/unix/ref/chmod.html
0 = no permissions whatsoever; this person cannot read, write, or execute the file
1 = execute only
2 = write only
3 = write and execute (1+2)
4 = read only
5 = read and execute (4+1)
6 = read and write (4+2)
7 = read and write and execute (4+2+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment