Once you think you've learned the easiest way to input a command or control, there seems to always be a new way! My goal is to never need to use my mouse... but that may take some time. Here's a few tips that can help!
Moving your cursor around: Use CTRL-A, E, F, B to move the cursor to the beginning, end, forward one character, or backwards. Typing clear will clear out your terminal.
Edit the text in your command: Use CTRL-D, T to delete or exchange the character at your cursor's location. Use ALT-L, U to convert characters to lowercase, or convert characters to uppercase.
Cutting and pasting: This is also called 'killing and yanking'. Use CTRL-K, U to kill text from the cursor to the end of the line or from the beginning to the cursor. Use ALT-D, and backspace to Kill text from the cursor the the end of the word or from the cursor to the beginning of the word. Use CTRL-Y to take text that has been cut and insert it at the cursor location.
We're back with keyboard shortcuts! We've already gone over the tab completion in a previous HakTip, so we'll now check out some other commands. Instead of tab, you can also use ALT-? to show a list of completions you can use, and ALT-* to insert all of those possibilities.
Check out the bash man page under Readline to see more completion commands.
What are your favorite shortcuts for text completion? Make sure to email me email@example.com with your thoughts. And be sure to check out our sister show, Hak5 for more great stuff just like this. Dont forget to check out our new show Threat Wire, for internet privacy and security news at youtube.com/techfeed. I'll be there, reminding you to trust your technolust.