Command History

say it: “kuh-MAND HIS-tuh-ree” /kəˈmænd ˈhɪstəri/

The shell's memory of earlier commands, reached with the up arrow or `Ctrl+R`.

What is Command History?

The shell remembers your command history. Press the up arrow for earlier commands, Ctrl+R to search, or run history to list them.

history | tail -5
!!    # run the last command again

Level: Apprentice · More Unix terms at this level

Updated