Title: History
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

Repeating the Last Command

To repeat the last command in bash, hit the up arrow on your keyboard or type '!!' (This is pronounced as bang bang).

Repeating Other Commands

You can repeat other commands using one bang followed by one or more characters. The shell will repeat the most recent command that started with those characters.

History

To see older commands, use history to display the shell command history (or use history n to see the last n commands).