Bash script Flashcards

1
Q

-d

A

checks if specified directory exists

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

-e

A

checks if specified file exists

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

-f

A

checks a file exists and if it is a regular file

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

-G

A

checks if a file exists and owned by a specific group

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

-h or -L

A

checks if file exists and if its a symbolic link

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

-O

A

checks if the file exists and if its owed by a specific UID

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

-r

A

checks if file exists and if the read permissoin is granted

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

-w

A

checks if file exists and if write permission is granted

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

-x

A

checks if the file exists and if execute permission is granted

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