-r |
True if file exists and is readable |
-w |
True if file exists and is writable |
-x |
True if file exists and is executable |
-f |
True if file exists and is a regular file |
-d |
True if file exists and is a directory |
-c |
True if file exists and is a character special file |
-b |
True if file exists and is a block special file |
-p |
True if file exists and is a named pipe (FIFO) |
-u |
True if file exists and is a SETUID file |
-g |
True if file exists and is a SETGID file |
-k |
True if file exists and the sticky bit is set |
-s |
True if file exists and has a size greater than zero |