Unix Lab

In this lab, you practice the basic shell commands and tools that you will use when programming.
Try to be familar with man page (ie. man ls).

For the this lab, you should:

  1. Create directory named "L1". (practice basic commands such as ls/mkdir/cd/pwd)
  2. Run gedit to create a file, helloworld.cc (p11 in text).
    # gedit helloworld.cc
  3. Compile the code.
    # g++ -o test helloworld.cc
  4. Run and test the compiled binary.
    # ./test
  5. Change the permission of the binary to inexecutable.
    # chmod a-x test
    # ./test
  6. Make a tarball for submission.
    # tar -cf L1.tar L1
  7. Submit your file and check your submission. (checkin/peek/grade)
    For the checkin name, use your recitation session number (R1 for Mon 3pm, R2 for Mon 12pm, R3 for Wed 2pm)
    # ~cs253/bin/checkin L1R# L1.tar
    # ~cs253/bin/peek L1R#

Grading:

10 points: The submitted L1.tar is extractable and contains all the file with a right permission (test and helloworld.cc).
9 points: Attended but not satisfied the instruction.
8 points: Missed the lab.