Recitation_01-C_Programming_in_UnixBasics

Recitation_01-C_Programming_in_UnixBasics - CSE 421/521...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
9/7/11 1 1 CSE 421/521 - Operating Systems Fall 2011 Recitations Presented by Yuan(Alex) Zhang University at Buffalo September 2011 Recitation - I UNIX C Programming Prof. Tevfik Kosar 2 logon • ssh timberlake.cse.buffalo.edu -l username or: • ssh [email protected] • passwd: change password • putty: a free telnet/ssh client • ls /bin (ls /usr/bin) • man . .. • text editing: vi, emacs, pico 2
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
9/7/11 2 3 Vi Editor • vi filename a: enter insert mode, after the cursor i: enter insert mode, before the cursor O: enter insert mode, above the cursor o: enter insert mode, below the cursor r: replace one character under the cursor u: undo the last change to the file. x: delete character under the cursor yy: copy line dd: delete line :w: write :q: quit :q! : quit without saving changes /keyword : search for the keyword in text :n : go to line number n Vi tutorial: http://www.gnulamp.com/vi.html 3 4 Emacs Editor Emacs filename CTRL-d : delete one character CTRL-k : delete one line CTRL-y : paste CTRL-x 2 : split window into 2 (horizontal) CTRL-x 3 : split window into 2 (vertical) CTRL-x o : switch window CTRL-x 1 : kill all other windows CTRL-x u : undo (also CTRL-_) CTRL-x CTRL-f: open file CTRL-x CTRL-b: open buffer (CTRL-x b: switch to buffer) CTRL-s : search CTRL-x CTRL-s: save file CTRL-x CTRL-c: quit Emacs Tutorial: http://www.gnu.org/software/emacs/tour/ emacs_toc.html
Background image of page 2
9/7/11 3 5 Or. .. • Use any editor you are familiar with.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 28

Recitation_01-C_Programming_in_UnixBasics - CSE 421/521...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online