You are on page 1of 2

BASIC UNIX/LINUX COMMANDS

File Management nd . -name (le) -print cp (name1) (name2) mkdir (name) cd (name) cd .. cd mv (name1) (name2) rm (name) ls cat (name) more (name) pwd lpr (name) Find the le (le) Copy the le (name1) to the le (name2) Make a sub-directory (name) Change to the sub-directory (name) Change to the directory above Change to your home directory Rename the le (name1) to (name2) Remove (delete) the le (name) List les in the working directory Display the le (name) to the screen Display the le (name) one screen at a time Display the current working directory Send the le (name) to the printer

Editing and Word Processing pico (name) nedit (name) latex (name).tex xdvi (name).dvi dvips -f (name) > (name).ps gs (name).ps lpr (name).ps Edit/create the le (name) Edit/create the le (name) [recommended editor] Invoke the latex word processor Preview/review processed latex le Create Postscript le (name).ps of a latex document Preview the nal Postscript le (name).ps Print the Postscript le (name).ps

Program Compilation and Execution f90 -o (name).x (name).f90 Compiles F90 code and creates executable (name).x (SGIs) ifc -o (name).x (name).f90 Compiles F90 code and creates executable (name).x (LINUX PCs) cc -o (name).x (name).f90 Compiles C code and creates executable (name).x (name).x Runs the compiled code (name).x < (inputle) Runs the compiled code with redirected input (name).x > (outputle) Runs the compiled code with redirected output (name).x < (inputle) > (outputle) Runs the compiled code; redirects input and output Communication scp (name1) (username)@cedar.math.jmu.edu:/(name2) Secure copy of (name1) from one user to another mail (username) Mail a message to (username)

Software Packages matlab xmaple math netscape pine MatLab Maple Mathematica Netscape internet navigator Email software

Miscellaneous Useful and Nifty Commands man (command) passwd history !135 diff (name1) (name2) grep (pattern) (le list) cal 9 2001 Information on (command) Change your password List previous commands in numerical order Re-execute command 135 (following history) Compare les (name1) and (name2) line by line Search for (pattern) in listed les Display a calendar for Sept. 2001

You might also like