LAB 2 - CS120 - SPRING 2009 putty: change color settings Unix: look at . files in home directory (read README file at some point) make a .cshrc file and edit with these commands: set prompt='joanne: ' setenv EDITOR emacs alias c clear alias ^L clear alias bye exit alias cdd 'cd;cd' alias gcc120 'gcc -ansi -std=c99 -pedantic -Wall -Wextra -O' #alias ls 'ls -F' (turns off color formatting apparently) #makes a comment to run .cshrc: source .cshrc automatically runs at login use "alias" at prompt to see list use "set" at prompt to see list grep more/less diff piping commands script (output file default is typescript) job control ^z to pause jobs to list by # %# to resume ps -a kill -9 # to terminate program remote stuff ssh -l login machine.name.domain scp2 filename login@machine.name.domain:location tar (c=create, v=verbose, f=outfilename, x=extract, z=gzip) to create: tar cvfz tarfile fromfiles to extract: tar xf tarfile gzip to compress: gzip filename -> filename.gz to uncompress: gunzip filename.gz -> filename gcc -o file.exe file.c ./file.exe to run print lp filename - uses default printer pine for sending mail fun/helpful stuff: finger, whoami, whereis optional: look at www.cs.jhu.edu/~joanne/cs120/lab/.cshrc explain as much as possible