~/history(1) en

HISTORY(1)General Commands ManualHISTORY(1)

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 !$

SEE ALSO

sh(1)

tilenkoren.com2026HISTORY(1)