• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unix command to view a single file/folder permission?

SoundTheSurrender

Diamond Member
If I do ls -l it will read the whole directory, but how would I go about reading a single file and list it's permissions?

I tried ls -l file.txt but that didn't work.
 
Your second option there is correct. What about it didn't work?

Edit: omg my grammar is terrible
 
'ls -l <file>' works fine unless you're looking for ACLs or a directory, for a directory you have to tell ls that you want the directory itself and not the contents with 'ls -ld <directory>'. For ACLs you need to look at getfacl.
 
Back
Top