Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
11 Cards in this Set
- Front
- Back
What is the piping character ( | ) used for? Example? |
connects the output from one command to the input of another. cat /etc/passwd | less |
|
What is the semi colon ( ; ) used for? Example? |
Used for executing a series of commands in the order they are typed. date ; troff-me verylarge document | lpr ; date |
|
What does the "&" symbol mean? |
Sends the command to the background |
|
What does $ () do? |
It expands the command such as "vi $(find /home | grep xyzzy)" will open the visual editor for the file found in the /home directory that say xyzzy |
|
How to use arithmetic in command line? |
"$[]" for example, echo "I am $(2012-1957) years old." |
|
List 12 common environment variables(B-O) and what they do when you type the command "echo $VALUE" with VALUE being the environment variable itself. |
|
|
List 9 common environment variables(P-T) and what they do when you type the command "echo $VALUE" with VALUE being the environment variable itself. |
|
|
How to exit the shell? |
exit or press CTRL+D |
|
What does the "alias" command do? Example? |
It creates a shortcut to any command and options you want to run later. For example, alias p='pwd ; ls -CF' makes it so t hat the letter p is assigned to run the command pwd, and then to run ls -CF to print the current working directory and list its contents in column form. Another example, alias rm='rm -i" makes it so that the rm command will run with the -i option everytime rm is used. |
|
How to check all aliases? How to remove an alias? |
1. type "alias" 2. type "unalias " |
|
List the locations of bash configuration files |
|