Skip to content

Instantly share code, notes, and snippets.

@commonquail
Created August 4, 2015 12:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commonquail/7386eacbddb1f99b11e6 to your computer and use it in GitHub Desktop.
Save commonquail/7386eacbddb1f99b11e6 to your computer and use it in GitHub Desktop.
List human readable and octal file permissions for the specified file or files in the current directory
#!/bin/sh
# Lists human readable and octal file permissions for the specified files.
# If no files are specified, lso is invoked for all files in the current
# directory.
arg="$@"
[ "$arg" = '' ] && arg="*"
stat -c '%A %a %n' $arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment