• Skip to primary navigation
  • Skip to content
  • Skip to footer
David Merrick
  • Projects
  • About
    David Merrick

    David Merrick

    Software Engineer, Portland, OR

    • LinkedIn
    • GitHub
    • Stack Overflow

    How to view the octal permissions of a file or folder in Linux

    stat -c "%a %n" <path to file or folder>

    From the manpage of stat:

    -c  --format=FORMAT
              use  the  specified  FORMAT instead of the default; output a newline after
              each use of FORMAT
    %a     Access rights in octal
    %n     File name

    [via http://askubuntu.com/questions/152001/how-can-i-get-octal-file-permissions-from-command-line]

    Updated: November 09, 2014

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    How to print a Notion page

    Notion printing is awful. Here’s a workaround.

    Why I’ll still use 1Password over Apple’s new password manager

    Apple Passwords is great, but lacking several key features that 1Password has

    2023 Europe Cycling Trip

    Cycling trip with my dad and sister along the Danube from Germany to Austria

    Wallowas Backpacking, July 2023

    A weekend backpacking trip to Ice Lake, in the Wallowas

    • Feed
    © 2026 David Merrick. Powered by Jekyll & Minimal Mistakes.