General Flashcards
list the common shells
bash #The GNU Bourne Again Shell
sh #The Bourne shell upon which bash is based
tcsh #This shell is based on the earlier C shell
csh #The original C shell
ksh #The Korn shell; bourne shell+c shell+extended
zsh #The Z shell takes shell evolution further than the Korn shell
what is an internal command
a command that is built into the shell program
what is an external command
a command that is not built into the shell program
how do you reverse search for a command in your history
ctrl+r
how do you search for a command in your history
ctrl+s
how do you terminate a search through your command history
ctrl+g
how do you move your shell cursor to the beginning of the line
ctrl+a
how do you move your shell cursor to the end of the line
ctrl+e
how do you move the shell cursor back one character
Ctrl+b
how do you move the shell cursor forward one character
Ctrl+f
how do you delete the character under the shell cursor
Ctrl+d
how do you delete all text from the shell cursor to the end of the line
ctrl+k
how do you delete all of the text from the shell cursor to the beginning of the line
Ctrl+x and then Backspace
how do you transpose the character before the cursor with the character under the shell cursor
ctrl+t
how do you transpose the two words immediately before (or under) the shell cursor
Esc and then t
how do you convert text from the shell cursor to the end of the word to uppercase.
Pressing Esc and then u
how do you convert text from the cursor to the end of the word to lowercase
Esc and then l
how do you convert the letter under the cursor (or the first letter of the next word) to uppercase; leaving the rest of the word unaffected.
Esc and then c
how do you launch a full-fledged editor to edit a command at the shell
Ctrl+x followed by Ctrl+e
how do you set an enviornment variable
VARNAME=VALUE
how do you save an environment variable across sessions
export VARNAME
how do you set and save an environment variable across sessions
export VARNAME=VALUE
what is man section 1
Executable programs and shell commands
what is man section 2
System calls provided by the kernel