(coreutils.info)Access permission tests


Next: File characteristic tests Prev: File type tests Up: test invocation
Enter node , (file) or (file)node

16.3.2 Access permission tests
------------------------------

These options test for particular access permissions.

‘-g FILE’
     True if FILE exists and has its set-group-ID bit set.

‘-k FILE’
     True if FILE exists and has its “sticky” bit set.

‘-r FILE’
     True if FILE exists and read permission is granted.

‘-u FILE’
     True if FILE exists and has its set-user-ID bit set.

‘-w FILE’
     True if FILE exists and write permission is granted.

‘-x FILE’
     True if FILE exists and execute permission is granted (or search
     permission, if it is a directory).

‘-O FILE’
     True if FILE exists and is owned by the current effective user ID.

‘-G FILE’
     True if FILE exists and is owned by the current effective group ID.


automatically generated by info2www version 1.2.2.9