2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-11 01:10:31 +00:00
cheat.sheets/sheets/stat
terminalforlife d69a3c8e3a Very useful when you need to test for certain permissions. I imagine
this would be most useful when dealing with more advanced permission
schemes.
2019-11-06 00:36:07 +00:00

6 lines
171 B
Plaintext

# display numerical values for file permissions
stat -c '%a %n' *
# Display only the octal permissions for the given directory. Great for tests.
stat --format='%a' /boot