Introduction to Unix -------------------- login: a270xxxx <-- from list in class password: 960000000 <-- initially your student number eddie: ^ The `prompt' which usually says your machine name Change your password eddie: passwd Changing password for a270xxxx Enter login password: -------- <-- type it New password: -------- <-- type it Re-enter new password: -------- <-- type it again If you forget your password, talk to the system administrators on the second floor of the Engineering Annex. Unix * You have a `current directory', just like DOS. Commands ls list cd x change directory to x cp x y copy file x to file y mkdir x make directory called x more x show file x, pausing between screenfuls. Press the spacebar to scroll to the next screen. rm x remove file x emacs *the* editor Get `A Student's Guide to CDF' from the bookstore! Editing a program use emacs! % emacs & Type C-h t in emacs for a tutorial Emacs gives - file and command completion - colour highlights - automatic indenting and formatting for C - GDB debugger incorporated - rmail See the programs in ~jstewart/270: vars.c (debugging example) oddeven.c (formatting example) print.c (editing example) Execute % cp -r ~jstewart/.emacs* ~ to get emacs initialization files. If you use a monochrome terminal, do % cp -r ~jstewart/.emacs* ~ % cp -r ~/.emacs-nocolour ~/.emacs