CS101, Fall 2005


My Lab Schedule:
  Tue 1:00pm -- 2:00pm; 6:00pm -- 7:00pm
  Wed 10:00am -- 11:00pm; 1:00 -- 2:00pm
  Location: CS computer Lab, 730 Comm. AVE.
Office Hours:
  Tue 2:00pm -- 4:00pm
  Wed 9:00am -- 10:00pm
  Location: 111 Cummington ST, MCS 174.
(I usually do NOT access internet on weekends or public holidays.)

Lab 1 and Lab 2: Unix Tutorial

Lab 1 and Lab 2:
Unix Tutorial


  1. Setup accounts : for both CS-NT and CSA. You need the CS-NT account to log into CS NT, and CSA accout is required to log into CSA server.
  2. Unix account: Important softwares that allow you to access your unix account from a window machine (such as Putty, CRT, XWin) can be downloaded from PCSC . The host name is csa.bu.edu if you need to log into CSA unix server.
  3. csmail - Every computer science class has its own mailing list. To join one, type csmail -a csXXX (e.g. csmail -a cs101b1) at the prompt. To remove yourself from a mailing list, use the -r option instead (i.e. csmail -r cs101b1).
  4. web-ok - Set up your home page on csa. You have to use this command for the future labs.
  5. pine - Start the unix emailing software.
  6. mkdir directoryname - make a directory
  7. mv file_or_directoryname - move a file or a directory.
  8. cp filename_or_directoryname - copy a file (copy -r to copy a directory and all files and subdirectories inside it recursively).
  9. rm file_or_directoryname - remove a file (rm -r to remove a directory and all files and subdirectories inside it recursively).
  10. pico filename - a notepad-like editing software.
  11. cat filename - list the content of a file till the end of the file
  12. less filename - list the content of a file. You can use arrow key to move forward and backward. Strike q key to quit.
  13. cd directoryname - to return to your home directory, cd some_dir to go inside a directory named "some_dir".
  14. ls - list the content of the current directory (-l to list the details, -a to show hidden files).
  15. pwd - list the path of the current directory.
  16. chmod xxx_code filename_or_directoryname - change permission. A file permission is a 3 8-bit numbers indicating how the file could be accessed by whom. The first number applies to the owner, second to the group (e.g. ugrad), third to public (i.e. everybody). An 8-bit number could be represented by a three digit binary number in a format of "rwx" where r is read permission, w is write permission, and x is execution permission. x permission on a directory is neccessary for access, and any file with any x permission on will have a "*" next to it when "ls"ed to indicate that it is an executable file. For example, binary number "110" (2^2*1+2^1*1+2^0*0) is equal to 6 which represents read and write permission. Most of the case, you would want to set a public file (e.g. html file) 644 so you can edit it and everyone can read. A public directory should set to 755 so people can access it. Avoid setting anything to 777 or anyone could write and delete that particular file/directory.
  17. finger - finger -l login@cs.bu.edu to retrieve the information of a particular user specified by 'login'.
  18. history - list out your previous commands entered at the prompt.
  19. man -- You can consult the manpage or help manual of a command using "man" or "-help" option (e.g. man chmod, csmail -help).
Click here to download trial.tar, then use the unix command tar xvf trial.tar to unzip it.
Lab 3:
Homework Assignment 1

Lab 4:
Excel
  1. Please download the sample excel spreadsheet here

Lab 5:
Photoshop and PowerPoint
  1. Please download these files: cd.psd, horn.psd background.psd.
  2. Here is the result:

Lab 5:
PHP
  1. Bold text: bold.php, Source Code
  2. Change text color: color.php, Source Code
  3. Background color changes based on the day of the week: bgcolor.php, Source Code
    How to use the function date: Google it. Here is one link .
  4. Feedback Form: form.html, Source Code: form.html sendmail.php

Final Exam Reveiw:
final.ppt