Flags Flashcards
1
Q
Checks if a file exists.
A
-f
2
Q
Checks if a directory exists
A
-d
3
Q
Checks if a file or directory exists
A
-e
4
Q
Checks if a file is readable
A
-r
5
Q
Checks if a file is writable
A
-w
6
Q
Checks if a file is executable.
A
-x
7
Q
Checks if a file is not empty (size greater than zero)
A
-s
8
Q
Checks if a string is empty
A
-z
9
Q
Logical NOT
A
!
10
Q
Logical AND
A
-a
11
Q
Logical OR
A
-o
12
Q
Command to change file permissions.
A
Chmod
13
Q
Command to change file ownership
A
chown
14
Q
Copy files and directories
A
cp
15
Q
Move or rename files and directories
A
mv