DT228/1 OS Sample Lab Questions For the final part of your Continuous Assessment (ie 20% of your final years grade), you will have a Lab based assessment. This will be undertaken in Labs KST A116 & A308 and AST 1005 & 1006, through Webcourses on Thursday 5th May at 3PM. The questions will be based on Lab Sheets 1 – 7. Any part of these Labs can be the basis for questions. Some will be multiple choice and some will be short answer question type questions. Results will be published on my website by Monday 9th May. Below are some sample questions based on Lab Sheets 1 - 5 There will also be theory based questions on Lab 6 - Introduction to Processes and Lab 7 - Shell Scripting. Added to this you will be expected to know the history and characteristics of UNIX/Linux distributions, UNIX file permissions and the ‘inode’ file system structure. Basic Linux Commands (Lab 1) 1. What is Linux? 2. Give a brief introduction to Linux development and characteristics 3. Describe in a few words what the following commands do? a. Date b. Hostname c. Uname d. Pwd e. Ls f. Whereis g. Clear h. More i. Less Michael Gleeson Wednesday, 20th April 2011 OS Sample Lab Questions DT228/1 The vi Editor (Lab 2) 2. Describe in a few words the following a. Command Mode b. Insert Mode c. LAST line Mode 3. Name three text editors used in Linux 4. What is the vi command for the following function: a. Delete a character b. Delete the current line c. Exit without saving any changes d. Join Lines e. Undo the previous edit command f. Save your edited text in a different file g. Replace one character h. Move to the end of the file i. To delete from the cursor position to the beginning of the line in vi, type... i. dd ii. d< iii. d^ Michael Gleeson Wednesday, 20th April 2011 DT228/1 OS Sample Lab Questions The Unix File System (Lab 3, 4 & 5) 5. What is a GID? 6. How do you view access privileges for a file? 7. What is your home directory? 8. What hidden files are in your directory? 9. Create a file called myfile in your home directory. What are the relative and absolute names for this file while you remain in the home directory? 10. Change to the directory /usr. How do you list the files in your home directory using ~ symbol? 11. How do you find the most recently modified file in your home directory? 12. How do you get a long listing of all of the files in your directory? 13. What command do you use to find out what group you belong to? 14. Explain how are read, write and execute file permissions controlled on file in a UNIX filesystem 15. What is meant when we say that a file is structureless in UNIX? Michael Gleeson Wednesday, 20th April 2011 DT228/1 OS Sample Lab Questions 16. To copy all files in the current directory (but not sub-directories) to /safe, use: a. cp * /safe b. cp *.* /safe c. cp . /safe 17. Explain what the following Linux command does: umask 022 18. What output does the following command produce? ls /bin/[A,B,C]* 19. Explain the difference between the wild card character * and ? 20. The following is an excerpt from a Linux command, Explain what each column signifies -rwxr-x--- 1 rkeane users 211 Nov 13 15:20 21. For column containing -rwxr-x--- each bit is significant, explain why Michael Gleeson Wednesday, 20th April 2011
© Copyright 2024