How To View File Permissions 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.
You can view file permissions in Linux by using the ls command. This command will list the files in a directory and will also show their permissions. The syntax is:
ls -l
The output will look something like this:
-rw-r–r– 1 user group 623 Nov 14 14:34 filename
The first character is the type of file, followed by 9 characters that represent the permissions. The first three characters are for the user, the second three for the group, and the last three for everyone else. The permissions are listed in the order of read, write, and execute. So, rw- means the user has read and write permissions, r– means the group has read permission, and r– means everyone else has read permission.