BASH Flashcards
How do you comment?
Use #
How do you delimit statements
With semicolon ;
What operator will run commands in the background
The & symbol
How do you continue a command with a newline?
Use backslash \
What are the 2 options for declaring variables
-r for read only and -x for global
How does BASH know where to look for programs
With the $PATH variable containing absolute pathnames, delimited by : .
If this ends with : , then the working directory is considered part of the path.
What is something you have to consider regarding truth statements?
0 is true, and anything else is false (bruh)
How do you get the number of commands line arguments
With the $# variable
How do you get the current options set
$-
How do you get the process ID of the current shell (but not subshell)
$$