Ubuntu – How to get chmod (octal) permissions of the folder in the terminal

chmoddirectory

I can look in properties of this folder but I want to get properties fast and in digits (octal, e.g. 755, etc.)

What am I to type in terminal to know the chmod of the file or folder I want?

Best Answer

What am i to type in terminal to know the chmod of the folder i want?

stat -c %a FILE_OR_FOLDER_PATH

e.g. stat -c %a /etc shows 755