I know that using ls -l \"directory/directory/filename\"
tells me the permissions of a file. How do I do the same on a directory?
I could obviously use
ls -lstr
This shows the normal ls view with permissions and user:group as well
On OS X you can use:
ls -lead
The e option shows ACLs. And ACLs are very important to knowing what the exact permissions on your system are.
This displays files with its permisions
stat -c '%a - %n' directory/*
To check the permission configuration of a file, use the command:
ls –l [file_name]
To check the permission configuration of a directory, use the command:
ls –l [Directory-name]