bashunix

How do I view the permissions of a file w/o using ls -l?


I just want to check the permissions of a single file w/o having to look through all of the files in the current directory.


Solution

  • You can use ls with a single file: ls -l filename. Alternatively, you can use the stat command.