Bash Tips for more efficient terminal usage
Here are some tips for working in the shell that I use on a daily basis. These may be known to most veterans, please contribute your favorite shortcuts to the comments. But for the most part this is not for the uber leet Linux geek, this is for those new to the terminal.
TAB
- Gives you suggestions / completes stuff for you. Type a, Press it twice, it will make your life a lot easier.
ctrl+w
- Remove word behind cursor.
ctrl+u
- Undo / Erase everything from cursor to beginning of the line
!!
- Type out whatever you typed out last, can be combined with tools like sudo
alt+f
- Go forward to the end of the previous word
alt+b
- Move cursor back to the beginning of the previous word
ctrl+d
- You’re done? Press ctrl+d to logout. If you’re in a virtual terminal, it may also close the window.
ctrl+z
- Stop the current process. Say you run gvim, and then you want to spawn another process. Press ctrl+z, then type bg. Once you’re done with the “other” process, you may type fg to bring it back into the foreground.


