411 REFERENCE · Wikibooks
Shell Programming/File conditional
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
File conditional If
-d file directory
-e file file exists
-f file file is regular file
-g file set-group-id on file
-r file readable file
-s file non-zero sized file
-u file set-user-id on file
-w file writable file
-x file executable file