# stat # Display file or file system status # 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