Bash Scripting Flashcards

1
Q

What is the PATH environmental variable?

A

Specifies the search path

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

What is the Shell environmental variable?

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

Where do you add a new location for custom script execution?

A

~/.bash_profile

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

What is the command to refresh the ~/.bash_profile file?

A

source ~/.bash_profile

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

How do you add a new alias?

A

Edit the .bashrc file.

Example: alias findMe=pwd

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

How do you add a new alias?

A

Edit the .bashrc file.

Example: alias findMe=pwd

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

What is the syntax of a while loop?

A

while []
do

done

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

What is the syntax of a until loop?

A

until []
do

done

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

What is the syntax of a for loop?

A

for [x in x]
do

done

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