DAT2330 - Ian Allen - Spring 2001 Practice This is a practice test. It is not the real test. Part A: Unix work. You will need to be running Floppix to do some of this test. To log in to the Linux Machine , use telnet with your Algo­ nquin userid (abcd0000) and the Web password you used when you registered with the instructor this term. (You can not do this test if you are not registered with the instructor.) Do not put any valuable files on the Linux Machine - they will be erased before and after every test. The IP address of the Linux Machine is 205.211.47.76 1. Task 1 - Marks: 1 Put the single word hello into a new file named hello.txt in your HOME directory on the Linux Machine . 2. Task 2 - Marks: 1 Remove all permissions from the directory named .kde in your HOME directory on the Linux Machine . 3. Task 3 - Marks: 1 Rename the directory named .kde to have the name .unused in your HOME directory on the Linux Machine . 4. Task 4 - Marks: 1 Place a copy of the file /etc/motd from the Linux Machine into the file named firewall_motd.txt in your HOME directory on the Linux Machine . 5. Task 5 - Marks: 2 Put a simple list of all the names (just the names; but, including hidden names) contained in the /etc/skel directory on the Linux Machine into the file named skel.txt in your HOME directory on the Linux Machine . 6. Task 6 - Marks: 2 Show the permissions, owner, and date modified for all the non-hidden names in the /etc directory that end in the let­ ter b. Put the answer in the file named etc_permissions.txt in your HOME directory on the Linux Machine . 7. Task 7 - Marks: 3 Delete the entire directory named Desktop from your HOME directory on the Linux Machine . 8. Task 8 - Marks: 4 Transfer a copy of the file /etc/motd from the machine acadaix into the file named acadaix_motd.txt in your HOME directory on the Linux Machine . 9. Task 9 - Marks: 5 Put a sorted copy of your Floppix file /etc/motd into the file named floppix_sorted_motd.txt in your HOME directory on the Linux Machine . ____________________________________________________________ 1. What permissions do you need on a file to be able to remove its name from a directory? a. none 2. What permissions do you need on a directory to be able to access the data in a file under the directory? a. execute (x) 3. How many hidden directory names are in the /var directory on the Linux Machine ? a. 2 Practice Practice Practice