Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...