Thursday, October 21, 2010

Execute command from history (Linux)

1) use the history command
2) record the number for the command you want to run
3) type "!" + the job number to execute that command.
Example: "!17" will execute history line 17