-
In what file are history events stored when you log out? What variable controls the number of history events to be displayed? What is the purpose of the savehist variable?
-
Print your history list in reverse.
-
Print your history list without line numbers .
-
Type the following commands:
-
ls -a
-
date '+%T'
-
cal 2004
-
cat /etc/passwd
-
cd
-
Type history . What is the output?
-
How do you re-execute the last command?
-
Now type: echo a b c
Use the history command to re-execute the echo command with only its last argument, c .
-
Use history to print and execute the last command in your history list that started with the letter d.
-
Execute the last command that started with the letter c.
-
Execute the echo command and the last argument from the previous command.
-
Use the history substitution command to replace the T in the date command with an H.
-
How do you use the bindkey command to start the vi editor for command-line editing?
-
How do you list the editor commands and what they do?
-
How do you see how the editing keys are actually bound?
-
Describe what the fignore variable does.