Followers

Thursday, February 24, 2011

List of terminal commands for ubuntu

I found a great list of commands and thought I'd share:

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-wDelete from the cursor to the start of the word.
Ctrl-y
Pastes text from the clipboard.
Ctrl-l
Clear the screen leaving the current line at the top of the screen.
Ctrl-x OR Ctrl-u
Undo the last changes. 
Ctrl-_Alt-r
Undo all changes to the line.
Alt-Ctrl-e
Expand command line.
Ctrl-r
Incremental reverse search of history.
Alt-p
Non-incremental reverse search of history.
!!
Execute last command in history
!abc
Execute last command in history beginning with abc!nExecute nth command in history
^abc^xyz
Replace first occurrence of abc with xyz in last command and execute it



8 comments:

  1. I haven't installed ubuntu yet, but when I do, i will use this for sure. Post more helpful stuff like this.

    ReplyDelete
  2. Nice, will try these out on my laptop.

    ReplyDelete
  3. Thanks for the tips. Hit me with more

    ReplyDelete
  4. Thanks I found these very useful :)

    ReplyDelete