How To Check Permissions On a Directory In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To check the permissions on a directory in Linux you can use the ls -l command. This command lists the current permissions for the directory, including the user/group of the directory, the type of permissions, and whether or not they are executable.
For example, if you wanted to check the permissions on the /etc/ directory, you would use the following command:
ls -l /etc/
This would output something like this:
drwxr-xr-x 2 root root 4096 Jan 25 21:58 etc/