On Sat, Aug 21, 2010 at 22:48, Tha.Suresh <[email protected]> wrote:

> Get lightning fast and clever at the command line
>
> You can use keyboard shortcuts and other command line tricks to make
> entering commands easier and faster. You might already know about the
> ‘tab’ key which completes partial commands and even file and directory
> names.
>
> Here are some other keyboard shortcuts you can use within terminal:
>
> Ctrl-a    Move to the start of the line.
> Ctrl-e    Move to the end of the line.
>
Alt-] x   Moves the cursor forward to the next occurrence of x.
> Alt-Ctrl-] x     Moves the cursor backwards to the previous occurrence of
> x.
> Ctrl-u    Delete from the cursor to the beginning of the line.
> Ctrl-k    Delete from the cursor to the end of the line.
> Ctrl-y    Pastes text from the clipboard.
> Ctrl-l    Clear the screen leaving the current line at the top of the
> screen.
> Ctrl-x Ctrl-u    Undo the last changes. Ctrl-_
>
Alt-r     Undo all changes to the line.
> Alt-      Ctrl-eExpand command line.
> Ctrl-r    Incremental reverse search of history.
>
Nice tips. It's interesting that most of these are standard emacs commands.
But the M-] didn't work :(


> Alt-p    Non-incremental reverse search of history.
> !!         Execute last command in history
> !abc     Execute last command in history beginning with abc
> !n        Execute nth command in history
> ^abc^xyz         Replace first occurrence of abc with xyz in last
> command and execute it
>
>
>
> --
> Regards,
> Tha.Suresh
> http://thasulinux.wordpress.com
>
> --
> l...@iitd - http://tinyurl.com/ycueutm
>



-- 
Lots o' Luv,
Phani Bhushan

Let not your sense of morals prevent you from doing what is right - Isaac
Asimov (Salvor Hardin in Foundation and Empire)

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to