Skip to content

Instantly share code, notes, and snippets.

@FeroVolar
Last active January 2, 2016 14:19
Show Gist options
  • Save FeroVolar/8316092 to your computer and use it in GitHub Desktop.
Save FeroVolar/8316092 to your computer and use it in GitHub Desktop.
Learn octal file permissions easily with stat
$ stat -c "%a %A %n" /usr/sbin/* | head
755 -rwxr-xr-x /usr/sbin/aa-status
777 lrwxrwxrwx /usr/sbin/accept
755 -rwxr-xr-x /usr/sbin/accessdb
755 -rwxr-xr-x /usr/sbin/acpid
777 lrwxrwxrwx /usr/sbin/addgroup
755 -rwxr-xr-x /usr/sbin/add-shell
755 -rwxr-xr-x /usr/sbin/adduser
755 -rwxr-xr-x /usr/sbin/anacron
755 -rwxr-xr-x /usr/sbin/apachetop
777 lrwxrwxrwx /usr/sbin/apparmor_status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment