Run a command from your bash history

For years I have been typing history and then copying and pasting the result to the command prompt to rerun a command. But you can simply type history, make a note of the number and then type !xxxx where xxx is the number of the command. e.g.: history !1210

About the Author

James is an IT Professional based in Melbourne, Australia. He blogs about Information Technology, Open Source software, home renovations, good reads and travel.

Login

Blog History