Results 1 to 2 of 2
Hi,
Does anyone have a UNIX permission bit calculator script that I can use?
Basically, am looking for one where I don't have to a ls -l to check the ...
- 04-22-2010 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 10
Permission bit calculator ???
Hi,
Does anyone have a UNIX permission bit calculator script that I can use?
Basically, am looking for one where I don't have to a ls -l to check the permission on a file or directory. Am looking for a script that will display the permission bits and then just display what those permission bit settings are and its correspong number equivalent.
Any suggested link will be very much appreciated. Thanks in advance.
- 04-23-2010 #2Linux User
- Join Date
- Nov 2009
- Location
- France
- Posts
- 292
This might be what you wish :
Code:stat -c "%a %A" <file_or_dir> man stat
0 + 1 = 1 != 2 <> 3 != 4 ...
Until the camel can pass though the eye of the needle.


Reply With Quote