Linux’s shell saves a history of the commands you run, and you can search it to repeat commands you’ve run in the past. Once you understand the Linux history command and how to use it, it can significantly boost your productivity.
See how to search back for previous commands used, quickly execute a line number in the history, how to first view before executing, how to repeat a command that contains a particular string, how to quickly replace a mistake in the previous command, how to scroll back through lines that only match a specific command, and more.
I generally only use the up arrow to scroll back a few commands in history and clearly learning a few more useful history tips will greatly speed up my CLI use. It’s these types of tips that making working in the CLI way faster than the GUI, but it does mean stretching your knowledge just a bit. This is worthy of a sticky note!
See How to Use the history Command on Linux
#technology #opensource #linux #tips
Linux’s shell saves a history of the commands you run, and you can search it to repeat commands you’ve run in the past. Once you understand the Linux history command and how to use it, it can significantly boost your productivity.