~/history(1)
en
NAME
history - the lines you have run
SYNOPSIS
history [count]
DESCRIPTION
Prints the lines this browser remembers, numbered. The up arrow walks the same list.
Three shorthands read it: !! is the last line, !$ its last word, and
!7 the seventh. They are expanded before anything else looks at the line,
and the shell shows you what it made of it – which is what bash does, so
that you can see what you are about to run.
EXAMPLES
history
history 10
!!
echo !$