Linux Shell History And tab compleyio Flashcards
1
Q
Where is the shell history stored
A
~/.bash_history
~/.history
~/.histfile
2
Q
history
A
Displays computer shell history
3
Q
HISTSIZE
A
Controls the number of commands stored in history
Eg:
Export HISTSIZE=1000
4
Q
!NUmber
A
Rerun the command at a given number line from your shell history
5
Q
!!
A
Repeat the previous command line
6
Q
!string
A
Repeat the most recent line that starts with “string”
7
Q
!:1
A
Get the second part of a command line
8
Q
!^
A
!:1
9
Q
!$
A
The final argument
10
Q
Ctrl-r
A
Search your command line history for a certain command