COMP 328 Midterm Review Answers[1]

COMP 328 Midterm Review Answers[1] - COMP-328 Midterm...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP-328 Midterm Review Answers COMP 328 Answers to Midterm Review Given the following results of ls –l answer questions 1 – 5: drwxrwxr-x 4 lrakocy faculty 4096 May 7 09:35 basicLinux -rwxr-xr-x 1 lrakocy faculty 6166 May 7 06:50 hello 1. hello is (a) 6166 bytes. (b) a file, not a directory. (c) owned by lrakocy (d) All of the above. (e) None of the above. 2. basicLinux is (a) a directory, not a file. (b) 4 bytes. (c) owned by faculty. (d) All of the above. (e) None of the above. 3. Who can execute hello? (a) lrakocy (b) faculty (c) the world (d) All the above. (e) None of the above. 4. Who can write to hello? (a) lrakocy (b) faculty (c) the world (d) All the above. (e) None of the above. 5. May 7 6:50 is the time (a) hello was last executed. (b) hello was last modified. (c) hello was created. (d) All of the above. (e) None of the above. Rakocy 5/8/2011 1:02 a5/p5 Page 1 of 14
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
COMP-328 Midterm Review Answers 6. A directory has the following files in it: doc , dog.cpp , dollar and drop.c . The user does ls do*c . What files are listed? (a) doc (b) dog.cpp (c) drop.c (d) All of the above. (e) None of the above. 7. What does a single dot ( . ) mean in a Unix path? (a) Current directory (b) Parent directory (c) Any directory (d) All of the above. (e) None of the above. 8. What does a double dot ( .. ) mean in a Unix path? (a) Current directory (b) Parent directory (c) Any directory (d) All of the above. (e) None of the above. 9. The Unix cd command with no arguments (a) changes to the parent directory. (b) changes to the root directory. (c) changes to your home directory. (d) does not do anything – it stays in the same directory. (e) None of the above. 10. Which command tells you what directory you are in? (a) cd (b) ls (c) pwd (d) All of the above. (e) None of the above. 11. Which command changes the name of a file called foo to fooBar ? (a) chname foo fooBar (b) mv foo fooBar (c) cp foo fooBar (d) All of the above. (e) None of the above. 12. What Unix command explains the options for the ls command? Rakocy 5/8/2011 1:02 a5/p5 Page 2 of 14
Background image of page 2
COMP-328 Midterm Review Answers (a) man ls (b) help ls (c) options ls (d) All of the above. (e) None of the above. 13. Which vi commands enter the insert mode? (a) i (b) a (c) o (the letter o) (d) All of the above. (e) None of the above. 14. After opening a file with vi and making changes to it, what command exits vi and saves the changes? (a) :wq (b) :q! (c) ESC (d) All of the above (e) None of the above. 15. After opening a file with vi and making changes to it, what command exits vi without saving the changes? (a) :wq (b) :q! (c) ESC (d) All of the above (e) None of the above. 16. What key exits vi ’s insert mode? (a) Q
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 14

COMP 328 Midterm Review Answers[1] - COMP-328 Midterm...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online