Lecture notes for the Introduction to Computer Science I by James Tam | Return to the course web page |
Mark out of 4 | Letter |
4 | A |
3 | B |
2 | C |
1 | D |
0 | F |
Login to your Unix account
Start a script session
Show the contents of your home directory
Show your location (path) in the Unix file system
Make a new directory called '231'
Show the contents of your home directory
Enter the newly created ‘231’ directory
Show the contents of the newly created ‘231’ directory
Show your location (path) in the Unix file system
Go to the official directory for CPSC 231 (/home/231)
Show the contents of the CPSC 231 directory
Show your location (path) in the Unix file system
Go to the directory for assignment 1 (/home/231/assignments/assignment1)
Show the contents of the assignment 1 directory
Show your location (path) in the Unix file system
Display the contents of the file called 'index.txt' onscreen. Show the file one screen a screen at a time (with a prompt for the user to continue) rather than all at once. JT: This step may result in a small amount of 'garbage' or nonsense text appearing on your paper printout. If the garbage only appears for this step (partway through the display of the file) and/or each of your steps is clear to your marker then you can still get full marks for this assignment.
Try to delete the index.txt file (Hint: you aren't supposed to be able to do complete this step successfully but instead you should get an error message)
Copy the file to the newly created ‘231’ directory that you created in your home directory
Go to the 231 directory (that is located in your home directory)
Show the contents of the ‘231’ directory. It should include the file 'index.txt' now
End the script session
Print out the script - it should be saved as a file called ''typescript'. You can either use the pay CPSC printers here or if you prefer you can use the Ssh file transfer program and print it from home. Annotate your printout by hand (i.e., use a ink pen or felt pen) to clearly show each step: number and label each step. Hand the printout into the appropriate assignment box for your tutorial – make sure you read the general assignment submission guidelines to make sure that you haven't missed anything!
4 marks if all steps were properly completed
3 marks if a step was missed or improperly completed
2 marks if two or more steps were missed or improperly completed
1 mark if three or more steps were missed or improperly completed
Zero marks if more than three steps were missed or improperly completed