Sunteți pe pagina 1din 1

UNIX REFERENCE SHEET

TERMINAL COMMANDS
HELP man whatis whereis which online manual - get info on a command display short description of a command nd the location of a shell command shows the full path of a shell command

TERMINAL: SPECIAL CHARACTERS & STRINGS


<tab> ~ . .. ? * !str <Pg-up> <Drag left mouse button> <Click left, click right> <Click middle> completes le or directory name home directory current directory up one directory match any single character match any characters redo command beginning with str scroll up through commands select region (also Emacs) select region (also Emacs) paste region (also Emacs)

MISCELLANEOUS alias make nickname for a command clear clear terminal screen exit exit non-login shell logout exit login shell passwd set or change login password ps report on active processes top dynamically display processes

LINUX PROGRAMS
cl convert le1 le2 ds9 dvipdf le emacs gv (or ghostview) latex le mkiraf mozilla vi xcalc xpdf (or acroread) xterm xv IRAF File format converter DS9 FITS le viewer LaTeX dvi to Adobe PDF converter text editor viewer for postscript les LaTeX compiler Make IRAF directory (set-up IRAF) web browser text editor scientic calculator viewer for PDF les command-line terminal viewer for images les

FILE MANAGEMENT cat le concatenate or display le cd dir change directory to dir cp le dir copy le(s) to directory dir le le determine le-type grep str le search le for lines containing str gunzip le uncompress le gzip le compress le head le display rst lines of le less le search-able version of more ls list les and directories mkdir dir create directory dir more le display le one screen at a time mv le dir move le(s) EMACS COMMANDS pwd dir display working (i.e., current) directory rm le remove le(s) <Ctrl> x 2 split window into two buers rmdir dir remove (empty) directory dir <Ctrl> x 1 keep only current buer tail le display last lines of le <Ctrl> x <Ctrl> f open le into buer wc le count lines, words, characters in le <Ctrl> x <Ctrl> s save <Ctrl> k delete current line <Ctrl> w delete selected region PRINTING <Ctrl> y insert line or region lpr le print le <Ctrl> s search for string lprm num remove print job number num <Ctrl> r search backward for string lpq check status of print jobs <Alt> x replace-string search and replace string <Ctrl> g abort mini-buer command <Ctrl> x ( begin macro denition REMOTE ACCESS AND COMMUNICATION <Ctrl> x ) end macro pine email reader <Ctrl> x e execute macro scp secure version of cp <Esc> num execute next action num times ssh secure login to remote machine <Ctrl> <Shift> undo last action

S-ar putea să vă placă și