www.delorie.com/gnu/docs/sh-utils/sh-utils_21.html   search  
 
Buy GNU books!


GNU shell utilities

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.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 has its sticky bit set.

`-r file'
True if file exists and is readable.

`-u file'
True if file exists and has its set-user-id bit set.

`-w file'
True if file exists and is writable.

`-x file'
True if file exists and is executable.

`-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.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003