user:unixguy/sandbox

class="wikitable"
Argument

! Returns true if File:

-bis a block special file
-cis a character special file
-dis a directory
-fis a regular file
-ghas the Set Group ID bit set
-his a symbolic link
-khas the sticky bit set
-Lis a symbolic link
-pis a named pipe (FIFO)
-ris readable by the current process
-shas a size greater than 0
-tFileDescriptor is open and associated with a terminal
-uhas the Set User ID bit set
-whas the write flag is on
-xhas 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.