Wednesday 9 June 2010

Unix trick : ctrl - r and ctrl - s

Tips and tricks

ctrl - r ==> find reverse command in history
ctrl - s ==> ctrl - r in forward direction
if ctrl - s does not work : type stty -ixon beforehand.
Keep in mind those command can be pushed over and over again till you find what you want.


alt > ==> repeat cmd from last line in history
alt < ==> repeat cmd from first line in history

In VI:
type r ==> to replace a character after the cursor.
type R ==> to replace some characters after the cursor.

No comments:

Post a Comment