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;
24 Cards in this Set
- Front
- Back
what does the "id" do? |
shows information regarding the current user and the groups they belong to |
|
what does the command "who" do? |
See information regarding the current login session |
|
What do the parameters in the "who" command "-uH" do? |
-u says to add information about idle time and the process ID. -H asks that a header be printed |
|
What does the command "echo $PATH" do? |
Shows where commands are stored in the Linux system separated by colons. /sbin and /usr/sbin directories contain admin commands. |
|
If you wanted to add commands to your system, where would you store them? What about to all users? |
place them in the "bin" directory in your home directory such as (/home/cn/bin for the user named cn). To make commands available to all users store them in the /usr/local/bin directory |
|
What is the order in which the shell checks for the commands you type? |
1. aliases 2. Shell reserved word 3. Function 4. Built-in command 5. file system command |
|
Under the order in which the shell checks for the commands you type, what are aliases? |
Names set by the "alias" command that represent a particular command and a set of options. Type "alias" to see what aliases are set. Often, aliases enable you to define a short name for a long, complicated command. |
|
Under the order in which the shell checks for the commands you type, what are Shell reserved words? |
Words reserved by the shell for special use. Many of these are words that you would use in programming-type functions, such as "do", "while", "case", and "else". |
|
Under the order in which the shell checks for the commands you type, what is function? |
A set of commands that are executed together within the current shell. |
|
Under the order in which the shell checks for the commands you type, what are built-in commands? |
A command built into the shell. As a result, there is no representation of the command in the file system. Some of the most common commands you will use are shell built-in commands, such as "cd"( change directories), "echo" (to output text to the screen), exit (to exit from a shell), "fg" (to bring a command running in the background to the foreground). "history" (to see a list of commands that were previously run), "pwd" ( to list the present working directory), "set"( to set shell options), and "type" (to show the location of a command). |
|
What command shows the location of a command? |
"type" |
|
What command allows you to see a list of commands that were previously run? |
"history" |
|
What command exits you from the shell? |
"exit" |
|
What command lists the present working directory? |
"pwd" |
|
What command outputs text to the screen? |
"echo" |
|
What does the command "echo $PATH" do? |
shows the order of paths that are checked for commands separated by colons. |
|
What is the command I would use to find the locations of the "ls" command if it is aliased? |
"type -a ls" |
|
How do you find a command? |
"locate " |
|
All keystrokes for navigating command line |
|
|
All keystrokes for editing command line |
|
|
All keystrokes for cutting and pasting text from within command lines |
|
|
How to auto complete the rest of a command line? |
tab |
|
How to show possible completions of a command line? |
press twice |
|
where is the history of commands stored? |
.bash_history in your home directory |