Jump to content

User:Unixguy/sandbox

From Wikipedia, the free encyclopedia
Argument Returns true if File:
-b is a block special file
-c is a character special file
-d is a directory
-f is a regular file
-g has the Set Group ID bit set
-h is a symbolic link
-k has the sticky bit set
-L is a symbolic link
-p is a named pipe (FIFO)
-r is readable by the current process
-s has a size greater than 0
-t FileDescriptor is open and associated with a terminal
-u has the Set User ID bit set
-w has the write flag is on
-x has execute flag on

For the -x argument, if the specified file exists and is a directory, the True exit value indicates that the current process has permission to change cd into the directory.