Long name (short name) |
Argument types |
Properties |
-r(-r) |
|
|
|
true if file exists and is readable. |
|
-l(-l) |
|
|
|
true if file exists and is a symbolic link. |
|
-w(-w) |
|
|
|
true if file exists and is writable. |
|
-x(-x) |
|
|
|
true if file exists and is executable. |
|
-f(-f) |
|
|
|
true if file exists and is a regular file. |
|
-d(-d) |
|
|
|
true if file exists and is a directory. |
|
-h(-h) |
|
|
|
true if file exists and is a symbolic link. |
|
-c(-c) |
|
|
|
true if file exists and is a character special file. |
|
-b(-b) |
|
|
|
true if file exists and is a block special file. |
|
-p(-p) |
|
|
|
true if file exists and is a named pipe (fifo). |
|
-u(-u) |
|
|
|
true if file exists and its set-user-ID bit is set. |
|
-g(-g) |
|
|
|
true if file exists and its set-group-ID bit is set. |
|
-k(-k) |
|
|
|
true if file exists and its sticky bit is set. |
|
-s(-s) |
|
|
|
true if file exists and has a size greater than zero. |
|
-L(-L) |
|
|
|
true if file exists and is a symbolic link. |
|
-e(-e) |
|
|
|
true if file (or directory) exists |
|
-z(-z) |
|
|
|
true if file is a Unix domain socket file (not supported on
Windows) |
|