There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
Ubuntu – How to get octal file permissions from command line
command linepermissions
command linepermissions
There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
Best Answer
You can try
Replace
*
with the relevant directory or the exact filename that you want to examine.From the man page of stat,
Usage:
With files:
With folders:
(Reference)