Bash Scripting Flashcards
1
Q
What is the PATH environmental variable?
A
Specifies the search path
2
Q
What is the Shell environmental variable?
A
3
Q
Where do you add a new location for custom script execution?
A
~/.bash_profile
3
Q
What is the command to refresh the ~/.bash_profile file?
A
source ~/.bash_profile
4
Q
How do you add a new alias?
A
Edit the .bashrc file.
Example: alias findMe=pwd
5
Q
How do you add a new alias?
A
Edit the .bashrc file.
Example: alias findMe=pwd
6
Q
What is the syntax of a while loop?
A
while []
do
…
done
7
Q
What is the syntax of a until loop?
A
until []
do
…
done
8
Q
What is the syntax of a for loop?
A
for [x in x]
do
…
done
8
Q
A