How To Check The Permissions Of a File 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 of a file in Linux, use the ‘ls’ command with the ‘-l’ option. This command will list the file’s permissions along with other details such as the owner and group owner, size, and the date it was last modified.
Example:
$ ls -l filename
This command will output something similar to:
-rw-r–r– 1 yourusername yourgroupname 12345 Jun 1 12:34 filename