Search This Blog

Monday, June 8, 2009

Useful Commands

more:
'/' to search, 'n' to search the next
'v' to bring up the editor
'g' + line , go to line

Emacs:
M-g g: go to line

+: mkdir (in Dired mode)

R: rename file (in Dired mode)
C: copy file (in Dired mode)
e: edit file (in Dired mode)
d then x to confirm, u to unmark: delete file (in Dired mode)

Reference: http://www.astro.ku.dk/comp-phys/tutorials/emacs.shtml

Vi:
                                  (up)  

k
(left) h l (right)
j

(down)
x is to delete

i: insert, (use Esc to escape)
':', type command, w is to write



Subversion:
Diff with previous version:
svn diff -r #(revision number) | more

See historical change of each line:
svn blame /usr/src/sys/net/if_gif.c | more

mixer:
change volumn

No comments: