//View Tip #139
Similar Tips
» Alter autocompletion settings
» Command line currency conversion
» Simple password generator
» Bash fork bomb
» Change extension of files in the current directory

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Selected Bash Keystrokes:
Ctrl-U - Cuts everything to the left
Ctrl-W - Cuts the word to the left
Ctrl-Y - Pastes what's in the buffer
Ctrl-A - Go to beginning of line
Ctrl-E - Go to end of line


View Comments »




Comments 

Add your comment

Comments are currently disabled
Hi, don't forget the counterpart of CTRL-U which is CTRL-K

CTRL-U cuts everything to the left
CTRL-K cuts everything to the right
Posted 2008-10-02 16:07:01
CTRL-R search commandline history
Posted 2009-02-12 10:24:20
ALT-F moves forward (right) one word
ALT-L moves forward (right) one word
ALT-B moves back (left) one word
ALT-D deletes one word to the right


I don't seem to use ALT-D that much, but I love ALT-F, ALT-B and CTRL-W.  Some terminal emulators hijack ALT-F for their menus but, to my delight, at least gnome-terminal has a configuration option that lets you disable that feature so you can use it in the shell.
Posted 2009-03-02 21:36:59
Ian
Slight correction to ALT-L:

ALT-L moves right one word changing the entire word to lowercase letters
ALT-U moves right one word changing the entire word to uppercase
ALT-C moves right one word capitalising the word
Posted 2009-04-23 10:45:09
d2207197
ctrl-p  :previous command in history

ctrl-p is more efficient than !! or up-arrow(especially in dvorak layout)
Posted 2010-07-18 21:55:27

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit