Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 11 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.