If you've ever said to yourself, "There has to be a better way to do this," then read on.
As someone that has used the Bash shell almost daily for over 15 years, I've accumulated several command line "tricks" that have saved me time and frustration. Bash Command Line Pro Tips is a collection of 10 techniques that you can put to use right away to increase your efficiency at the command line.
Here is what you will learn by reading Bash Command Line Pro Tips:
- Tip 1: Tab Completion
- Tip 2: Change to the Previous Directory
- Tip 3: Reuse the Last Item from the Previous Command Line
- Tip 4: Rerun a Command That Starts with a given String
- Tip 5: Command Substitution
- Tip 6: Use a for Loop at the Command Line
- Tip 7: Rerun the Previous Command with Root Privileges
- Tip 8: Rerun the Previous Command While Substituting a String
- Tip 9: Reuse a Word on the Same Command Line
- Tip 10: Fix Typos and Shorten Lengthy Commands with Aliases