Flags Flashcards

1
Q

Checks if a file exists.

A

-f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Checks if a directory exists

A

-d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Checks if a file or directory exists

A

-e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Checks if a file is readable

A

-r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Checks if a file is writable

A

-w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Checks if a file is executable.

A

-x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Checks if a file is not empty (size greater than zero)

A

-s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Checks if a string is empty

A

-z

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Logical NOT

A

!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Logical AND

A

-a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Logical OR

A

-o

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Command to change file permissions.

A

Chmod

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Command to change file ownership

A

chown

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Copy files and directories

A

cp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Move or rename files and directories

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Remove files and directories

A

rm

17
Q

Create an empty file or update the access and modification timestamps of a file

A

touch

18
Q

Create directories

A

mkdir

19
Q

Remove empty directories

A

rmdir

20
Q
A