Bash Script Writting Commands Flashcards

1
Q

-d

A

Directory test, if

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

-f

A

File test, if

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

&

A

Writable/variable test, if

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

-e

A

Exists file, if

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

[[]]

A

Bracket format to contain regex

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

-eq

A

Equality

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

-ne

A

Inequality

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

-gt

A

Greater

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

-lt

A

Lesser

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

-ge

A

Greater than or equal

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

-le

A

Lesser than or equal

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

$() or -

A

Command expression. For use in [for i in ] -esque statements.

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

seq

A

Step through numbers in range. Default 1. Number in between and is a defined increment.

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

exec

A

Redirect output from shell to file

Ex: exec > out.log

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

read

A

Read input from user applies to var. for command script.

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