//View Tip #139
» Remove empty directories
» Find occurrences of a string in a large code base without firing
» Checksum directory recursively
» Change prompt color dynamically
Similar Tips
» Find and Grep» Remove empty directories
» Find occurrences of a string in a large code base without firing
» Checksum directory recursively
» Change prompt color dynamically
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
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
Comments
Add your comment
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.
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
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
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


CTRL-U cuts everything to the left
CTRL-K cuts everything to the right