This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Two sides of the divide 1. Command Review Command Description Example pwd Print the working directory. pwd ls List the fles and subdirectories ls cd Change the working directory cd /home/files cp Copy fle(s) From one place to another cp hello.txt /home/files/ mv Move / Rename fles mv /source/hello.txt /home/ rm Remove/delete fle(s) specifed rm /home/files/hello.txt mkdir Make a new directory mkdir comp11directory man Display the manual page For a command or Function man ls g++ Compile source code into a binary program g++ -o progname code.cpp emacs Edit source code or other text in the terminal emacs somecode.cpp & 2. Introduction Today you will write two Functions to do the work oF two very diFFerent characters, Evan Even and Samantha Slope. Evan is a little bit oFF. His liFe s mission is to take an integer and tell you whether it is even or odd. What s worse is that he says 1 when a number is odd and 0 when something is even. (He s a bit tiring really.) He works with only integers and his division skills are a little, well, diFFerent. P.S. Evan doesn t like modulus operators....
View Full Document
This note was uploaded on 10/19/2009 for the course COMP 11 taught by Professor Stafford during the Fall '08 term at Tufts.
- Fall '08