tips

Command Line Navigation Tips and Obscure Shortcuts, Part 2

Command Line Navigation Tips and Obscure Shortcuts, Part 2

wretchedghost
Advanced Tricks Edit Command in Your Editor Ctrl+X, Ctrl+E - Open current command in your default editor (usually vim or nano) $ # Press Ctrl+X then Ctrl+E # Your editor opens with the command # Edit it, save, and close # The edited command runs Real use case: You’re building a complex command with lots of flags. Instead of fighting with the one-line editor, pop it into vim, format it nicely, then run it.
Command Line Navigation Tips and Obscure Shortcuts

Command Line Navigation Tips and Obscure Shortcuts

wretchedghost
Why Learn Commandline Shortcuts? If you’re spending any amount of time in the terminal, learning shortcuts can potentially save you hours in the future. Most people know the arrow keys and backspace, but bash has decades of shortcuts built in that almost nobody uses. I’ve been using Linux since 2011, and I’m still discovering new ones. Here are the ones I actually use daily, plus some obscure gems. Navigation Shortcuts Jump to Beginning or End of Line Ctrl+A - Jump to the beginning of the line