Get octal permissions from terminal and add to command shortcuts

OctalOSXShellTerminal

 

You may run this line stand alone

stat -f '%A %a %N' *
 
 
and if you with to use this command regularly add a shortcut to it
 
alias lso="stat -f '%A %a %N' *"

 

Add the above line in .bash_profile

Open a terminal, enter 

source ~/.bash_profile

Then try the lso command which will provide you with octal permission display in terminal.

lso

 

Leave a Reply