Bash Keyboard Shortcuts

The following are some useful special sequences that helps one edit command lines with a bit of ease:

  • Ctrl-B – Move one character backward
  • Ctrl-F – Move one character forward
  • Ctrl-A – Move to the beginning of the line
  • Ctrl-E – Move to the end of the line
  • Ctrl-U – Delete everything from the beginning to the cursor.
  • Ctrl-K – Delete everything from the cursor till the end.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s