---------------------------------------------- DAT2330 - Unix - Winter 2000 - Prof. Ian Allen ---------------------------------------------- Unix Assignment #1 Answer these questions with respect to the ACADAIX Unix environment and submit the answers to me by email. FIRST: Read my assignment submission standards: http://www.algonquinc.on.ca/~alleni/assignment_standards.html Include the Assignment Submission Label information at the top of the email message. No paper is required for this assignment. Due by email to alleni@algonquincollege.com before 12noon Wednesday February 9. 1) What is the difference between "cat" and "ls"? 2) ACADAIX does not have the open source "less" command that is available on Linux to paginate output. What similar command should you use instead? 3) What does "white space" mean? 4) How can you protect special characters from the shell? 5,6) answer Chapter 3 review questions 8, 14 7) If you change the working directory of your shell, then you start up a new copy of the shell by typing, say, "ksh" does the new copy of the shell have the changed working directory or the original working directory? 8) True or False: The "mkdir" command creates a new directory, and then makes the new directory your current working directory. 9) What is the difference in behaviour between a directory that only has X permissions and a directory that only has R permissions? 10) If you own a file or directory, but you give me permission to write to it, can I use the chmod command to change its permissions? 11) True or False: You can make a hard link to a directory. 12,13) answer Chapter 4 review questions: 1, 3 14) True or False: You must have write permission on a file to delete the file. 15) True or False: You cannot change the places where the SHELL looks to find commands; the locations are built into the Unix system. 16) True or False: Every Unix command that takes several option letters lets you group them into a single argument starting with one hyphen. 17,18) answer Chapter 5 review questions: 2, 9 19) Give the Unix command and its output that shows the inode numbers of the following directories: a) your HOME directory b) your public_html directory (created during the lab session) 20) What is the output of this command sequence: $ foo='bar haven' $ echo foo $foo "$foo" '$foo' bar NOTE: blanks will be counted in the answer