# To check permission of a file, or directory # you can use the following command: ls -l directory # or stat directory # or, if you want to see only the permissions in numeric (octal) format: stat -c %a directory