Last active
January 2, 2016 14:19
-
-
Save FeroVolar/8316092 to your computer and use it in GitHub Desktop.
Learn octal file permissions easily with stat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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