Filesystem Relate Tests Flashcards
1
Q
[ -e $VAR ]
A
True if variable holds and existing file (file or directory)
2
Q
[ -f $VAR ]
A
True is variable holds an existing regular file
3
Q
[ -d $VAR ]
A
True is variable holds an existing directory
4
Q
[ -x $VAR ]
A
True if variable is an executable file
5
Q
[ -L $VAR ]
A
True variable holds path of a symlink
6
Q
[ -r $VAR ]
A
True if variable holds file that is readable
7
Q
[ -w $VAR ]
A
True if variable holds file that is writable