Using Keyboard Shortcuts in Ubuntu

|

Your other good friends when using BASH are the Ctrl and Alt keys. These keys provide shortcuts to vital command-line shell functions. They also let you work more efficiently when typing by providing what most programs call keyboard shortcuts.


Shortcuts for Working in BASH
The below listing are the most common keyboard shortcuts in BASH (there are many more; see BASH’s man page for details). If you’ve explored the Emacs text editor, you might find these shortcuts familiar. Such keyboard shortcuts are largely the same across many of the software packages that originate from the GNU Project. Often, you’ll find an option within many Ubuntu software packages that lets you use Emacs-style navigation, in which case, these keyboard shortcuts will most likely work equally well.


Navigation Shortcut key
Left/right cursor key : Move left/right in text
Ctrl+A : Move to beginning of line
Ctrl+E : Move to end of line
Ctrl+right arrow : Move forward one word
Ctrl+left arrow : Move left one word

Editing Shortcut key
Ctrl+U : Delete everything behind cursor to start of line
Ctrl+K : Delete from cursor to end of line
Ctrl+W : Delete from cursor to beginning of word
Alt+D : Delete from cursor to end of word
Ctrl+T : Transpose characters on left and right of cursor
Alt+T : Transpose words on left and right of cursor

Miscellaneous Shortcut key
Ctrl+L : Clear screen (everything above current line)
Ctrl+U : Undo everything since last command
Alt+R : Undo changes made to the line
Ctrl+Y : Undo deletion of word or line caused by using Ctrl+K, Ctrl+W, and so on
Alt+L : Lowercase current word (from the cursor to end of word)

Source of Information : Beginning Ubuntu Linux - From Novice To Professional

0 comments:

Subscribe to Computing Tech

Enter your email address:

Delivered by FeedBurner

Add to Technorati Favorites Top Blogs