Software >> OS >> Unix >> Shell >> bash >> How to run a command from the command history

bash$ history

note the number to the left of the command

bash$ !<command-number>