110 M/C Questions -1- 1 Minute Per Question 110 M/C Questions -2- 1 Minute Per Question

5. If my current directory is /home,and my is /home/xx,which PRINT Name: LAB Section: copies the file into my home directory under the name foo? Version: 562 One-Answer Multiple Choice 110 Questions − 15 of 15% a. xx/../../etc/passwd xx/foo b. cp xx/../etc/passwd ../home/xx/foo ☞ Read all the words of these instructions and both sides (back and front) of all pages. c. cp ../home/xx/../etc/passwd ./xx/./foo ☞ Use your full, unabbreviated name on the mark-sense form. Do not abbreviate your name. d. cp ../etc/passwd ../xx/foo ☞ Put the three-digit Test Version above into NO. OF QUESTIONS and NO. OF STUDENTS e. cp ../../etc/passwd /xx/foo ☞ Fill in the bubbles with pencil only,nopen. Enter your NAME, Test Version, and answers. ☞ Manage your . Answer questions you know, first. One Answer per question. 6. What is the output of this successful command sequence? ☞ The answer to the questions belowabout reading/doing all these test instructions is: Jes /home/myhome ; foo ; mkdir bar ; a. /home/myhome/foo/bar b. /home/myhome/foo c. /home/myhome d. /home/myhome/bar 1. Did you read all the words of the test instructions the start of this test? e. /bar a. Taip (Lithuanian) b. Tak (Polish) 7. What is the output of this successful command sequence? c. Sim (Portuguese) d. Jes (Esperanto) cd /tmp ; mkdir foo ; mkdir bar ; pwd e. Igen (Hungarian) a. /tmp b. /tmp/foo c. /tmp/bar 2. My three-digit Lab Section number is: d. /tmp/foo/bar e. /bar a. My lecture section number 400. 8. The option to that shows which names are directories is: b. My T-buidling lab room number 126. a. -l b. -1 c. -a d. -R e. -i c. The section number of my weekly 2-hour lab period. 9. In an empty directory,what happens after this command line: d. My T-buidling lecture room number 117. mkdir a b c ; a b c e. The Test Version number printed in the top left corner. a. the directories a and b are appended to the directory c 3. What is the result of this exact command line: /bin hello b. the directories a and b are movedinto the directory c a. file "/bin" will be copied to "hello"; the names will be displayed as well c. an error message: mv: target ‘c’ is not a directory b. all the files under "/bin" with the name "hello" will be displayed d. the directories a, b,and c are movedtothe directory c c. the contents of the files "/bin" and "hello" will be displayed, if possible; e. the directories a, b,and c are movedtothe current directory otherwise, error messages 10. In the output of the command ls -i -a,adot that begins apathname signifies d. the names of the pathnames "/bin" and "hello" will be displayed, if theyexist; what? otherwise, error messages a. The parent directory. e. the twotextstrings "/bin" and "hello" will be displayed b. Aname with an unprintable character. 4. In an empty directory,what happens after this command line: c. An inode (index) numbered file. a b c ; mv a b c d. The current directory. a. an error message: mv: target ‘c’ is not a directory e. Aname that is hidden. b. the files a and b are movedinto the directory c 11. If my current directory is /etc,which of these pathnames is equivalent to the file c. the files a, b,and c are movedtothe current directory name /etc/passwd? d. the files a and b are appended to the file c a. ../etc/passwd/. b. ./passwd e. the files a, b,and c are movedtothe directory c c. ../passwd d. ./etc/passwd e. /passwd

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -3- 1 Minute Per Question 110 M/C Questions -4- 1 Minute Per Question

12. In the output of the command ls -a,adot that begins aname signifies what? 20. If my current directory is /home,and my home directory is /home/me,which a. Acurrent file. command copies the password file into my home directory under the name foo? b. Aname that is hidden. a. cp ../../etc/passwd /me/foo c. The parent directory. b. cp ./me/../etc/passwd ../home/me/foo d. The current directory. c. cp ../etc/passwd ../me/foo e. Aname with an unprintable character. d. cp ../etc/passwd ./me/foo 13. Which pathname almost always leads to the same file named: /etc/passwd? e. cp ../home/me/../etc/passwd ./me/./foo a. ./etc/passwd b. /etc/passwd/. 21. If you the command ,which key sequence will send an EOF and takeyou c. /etc/./etc/../passwd d. ../etc/passwd back to the command prompt? e. /etc/../etc/passwd a. [CTRL-I] b. [CTRL-R] c. [CTRL-C] 14. Which Unix command line deletes a directory and everything inside it? d. [CTRL-U] e. [CTRL-D] a. deltree -all dir b. -r dir 22. If Iaminmyhome directory named /home/ian and mt is an empty sub- c. -all dir d. rm -all dir directory,what is true after this command line: e. rmdir -r dir touch ../ian/cat ; cp ./mt/../cat ./mt/../dog cat dog 15. The command that creates a directory and all parent directories is: a. there is a second copyofthe file named in the file b. the directory mt nowhas a file named dog in it a. touch a/b/c b. mkdir -r a/b/c c. the command fails because the path ./mt/../cat does not exist c. rmdir -r a/b/c d. rm -r a/b/c d. the directory mt is still empty e. mkdir -p a/b/c e. the directory mt nowcontains twofiles 16. What does the -v option to the command do? 23. Which Unix command sequence deletes a directory and everything inside it? a. turns offthe translation of unprintable characters a. rm -r dir b. rmdir -r dir b. turns on the translation of unprintable characters c. deltree -all dir d. rmdir -all dir c. prints the version number of the grep command e. rm -all dir d. selects lines that do not contain unprintable characters e. selects lines that do not contain a match for the supplied pattern 24. Which of these statements is true? 17. Which Unix command sequence deletes a directory and everything inside it? a. To delete a word from the command line, type [CTRL]-[D] b. To erase an entire line of typing, type [CTRL]-[D]. a. erase -r dir b. rm -r dir c. Unix commands must be entered in lower-case letters. c. rmdir -all dir d. erase dir d. Unix commands can be entered in upper-case or lower-case letters; theyare e. deltree -all dir equivalent. 18. Tomakethe bash shell complete commands or file names, you type the first part e. To indicate End-of- (no input), type [CTRL]-[C]. of the command or file name and then press this key: 25. When doing an ls -a,the output pathname that is a double dot (..)signifies [TAB] [ALT] [CTRL]-[D] a. b. c. what? d. [ALT]-[F1] e. [CTRL]-[C] a. The ROOTdirectory. b. The current directory. 19. In the output of the command ls -ai,the one-character name . signifies what? c. The parent directory. d. Apathname with double links. a. Aname with an unprintable character. e. Ahidden file. b. Aname that is hidden. 26. What is the output of this successful command sequence? c. The parent directory. cd /tmp ; mkdir one ; mkdir two ; pwd d. The current directory. a. /tmp/two b. /tmp/one/two c. /tmp e. Acurrent file. d. /two e. /tmp/one

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -5- 1 Minute Per Question 110 M/C Questions -6- 1 Minute Per Question

27. The -v option to the grep command does what? 34. Tochange your own account password, use this exact command line: a. turns offthe translation of unprintable characters a. $passwd options LOGIN b. selects lines that do not contain unprintable characters b. $passwd c. selects lines that do not contain a match for the supplied pattern c. $passwd root d. prints the version number of the grep command d. $passwd cst8207 e. turns on the translation of unprintable characters e. $passwd cst8207.idallen.ca 28. If Iaminmyhome directory named /home/me and x is an empty sub-directory, 35. What do you do to erase an entire line of typing in the shell? what is true after this command line: a. type [CTRL-W] touch ./x/fil ; mv x/./fil x/../../me/./y b. type [CTRL-U] a. the directory x nowcontains only a file named y c. type [CTRL-C] b. the directory x is still empty d. type [CTRL-D] c. there is a second copyofthe file fil in the file named y e. select the line with the mouse and use the DEL key d. the command fails because the path x/../../me does not exist 36. In amanual page SYNOPSIS section, ellipsis (three dots) (...)mean: e. the command fails because the path x/./fil does not exist a. something that is optional b. the parent directory 29. If my current directory is /home,which of these pathnames is equivalent to the c. something that is repeated d. no special meaning pathname /home/a/b/c? e. ahidden directory a. ../home/b/c b. ./a/b/c c. /a/b/c 37. If /bin/bash is a file name, which pathname always leads to the same file? d. ../a/b/c e. ./home/a/b/c a. ./bin/bash b. /bin/bash/. 30. In amanual page SYNOPSIS section, square brackets ([])mean: c. /bin/bin/../bash d. /./bin/./bash a. something that is optional b. something that is repeated e. /bin/../bash c. aGLOB pattern matching a list d. no special meaning 38. If my current directory is /bin,which of these pathnames is equivalent to the file e. an arithmetic expression name /bin/ls? 31. What would you type to find the string tony in the file /etc/passwd? a. ls/. b. ./bin/ls c. /root/bin/ls a. grep /etc/passwd tony d. ../../bin/ls e. ../bin/ls/. b. /etc/passwd -name tony -print 39. What is the output of this successful command sequence? c. grep tony /etc/passwd cd /home/dir ; mkdir one ; mkdir two ; pwd d. find /etc/passwd - tony -print a. /home/dir/one b. /home/dir/one/two e. cat tony /etc/passwd c. /home/dir/two d. /two 32. Howmanyarguments and options are there to the command: e. /home/dir -wc / 40. If my current directory is /home,which of these pathnames is equivalent to the a. Tw o command line arguments, one of which contains twobundled options. pathname /home/a/b/c? b. Tw o options, no arguments. a. ../a/b/c b. ./home/a/b/c c. Tw o arguments, no options. c. /a/b/c d. ../home/a/b/c d. Tw o arguments, one of which is a single option and the other is a pathname. e. ../home/b/c e. Athree-letter file name and a /sort switch option argument. 41. Howmanyarguments and options are there to the command: 33. Which of these is the most secure password? ls -al /etc a. Madonna b. secrets c. Easy10! a. Tw o options, no arguments. d. apple15 e. Canada b. Athree-letter file name and an /etc switch option. c. Tw o command line arguments, one of which contains twobundled options. d. Tw o arguments, one of which is a single option and the other is a pathname. e. Tw o arguments, no options.

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -7- 1 Minute Per Question 110 M/C Questions -8- 1 Minute Per Question

42. If my current directory is /usr,which of these pathnames is equivalent to the 52. Howmanyarguments and options are there to the command: pathname /usr/x/y/z? -jy 2001 a. ./usr/x/y/z b. /x/y/z c. x/./y/z a. Tw o arguments, one of which is a single option and the other is a pathname. d. ../x/y/z e. ../usr/y/z b. Asingle numeric option and a three-letter file name. 43. The shell expands a leading tilde (˜)inapathname (e.g. ˜/foo)tobe: c. Tw o options, no arguments. a. the parent directory b. the directory /root d. Tw o arguments, no options. c. the ROOTdirectory d. your HOME directory e. Tw o command line arguments, one of which contains twooptions. e. the current directory 53. What does quoting mean on a shell command line? 44. Which command shows the name of the current computer: a. turning offthe special meaning of shell meta-characters a. comname b. users c. hostname b. typing a "control" character using the [CTRL] key d. w e. c. using a leading tilde ("˜") on a pathname to mean your HOME directory d. setting the PS1 variable to be your shell prompt 45. What command can you use to delete a directory? e. using more than one pathname argument to a command, e.g. rm a b c a. erase b. deldir c. delete d. rmdir e. mvdir 54. If ashell token with a GLOB pattern contains twoslashes, howmanyslashes can be in each matched pathname? 46. Howmanyarguments and options are there to the command: ls -li foobar a. exactly two b. zero, one, or two c. one or two d. twoormore e. one, two, or more a. Tw o command line arguments, one of which contains twobundled options. b. Tw o arguments, no options. 55. The option to ls that shows inode (index) numbers is: c. Tw o options, no arguments. a. -i b. -1 c. -a d. -R e. -l d. Tw o arguments, one of which is a single option and the other is a pathname. 56. What would you see if you typed this command: cat /users e. One argument, no options. a. The contents of your directory named users 47. If /bin/bash is a file name, which pathname always leads to the same file? b. The contents of the file users located in the parent directory a. /bin/../bash b. ./bin/bash c. The contents of your subdirectory named users c. /bin/bash/.. d. /bin/bash/. d. The contents of the file users located in the ROOTdirectory e. /../../bin/bash e. The contents of the file users located in your home directory 48. What command displays the sizes of files in the current directory? 57. Which command belowisthe best way to find a line containing an asterisk (*)in a. ls -p b. -s c. ls -l the file named foo? d. cat -s e. ps -l a. grep * foo b. grep foo "*" c. grep ’*’ foo d. grep ./* foo 49. Which Unix command sequence deletes a directory and everything inside it? e. grep foo [*] a. rmdir -all dir b. deltree dir c. rm -r dir d. erase -r dir 58. Which of these pathnames is not an absolute pathname (after all shell expansions)? e. erase dir a. $HOME/foo b. /../foo c. ˜/foo d. foo e. /foo 50. If my current directory is /home,and my home directory is /home/me,which command copies the password file into my home directory under the name foo? 59. The output of the tree command is: a. cp ../etc/passwd ../me/foo a. an indented, recursive list of directories and their contents b. cp me/../../etc/passwd me/foo b. arecursive list of users logged in to the system c. cp ./me/../etc/passwd ../home/me/foo c. the tree of files under your HOME directory d. cp ../home/me/../etc/passwd ./me/./foo d. the tree of users logged in to the system e. cp ../../etc/passwd /me/foo e. the tree of files under the ROOTdirectory 51. In which section of the manual do you find super-user and admin commands? a. 3 b. 1 c. 4 d. 2 e. 8

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -9- 1 Minute Per Question 110 M/C Questions -10- 1 Minute Per Question

60. If foo is a sub-directory that contains only the file pig,what happens after this 67. If Iaminmyhome directory named /home/idallen and empty is an empty command: mv foo/pig foo/././dog sub-directory,what is true after this command line: a. the command fails because the name dog does not exist touch ./pig ; mv ./empty/../pig ../idallen/cow b. there is a second copyofthe file pig in the file named dog a. the directory empty/.. nowhas a file named cow in it c. the command fails because the name foo/././dog does not exist b. the command fails because path ./empty/../pig does not exist d. the directory foo nowcontains only a file named dog c. there is a second copyofthe file pig in the file named cow e. the directory foo is nowempty d. the directory empty nowcontains only a file named cow 61. What happens when you try to change to the parent directory of ROOT, e.g. e. the command fails because path ../idallen/cow does not exist cd / ; cd .. 68. Which of these commands always returns you to your account home directory? a. the shell asks you to retype this invalid directory a. cd home b. cd /home/.. c. cd b. you go to the parent directory containing your C: drive d. cd /home e. cd .. c. the shell issues an error message and does not change 69. Howmanyarguments and options are there to the command: ls -lid /p d. the shell issues a warning, but changes to the parent a. Tw o command line arguments, one of which contains three options. e. the shell current directory is still ROOT; nochange b. Tw o arguments: A file name starting with a dash and a /p switch option 62. Which of these statements is true? argument. a. Command apropos is an exact synonym for command man. c. Tw o arguments, neither of which is an option. b. To erase an entire line of typing, type [ALT]-[DELETE]. d. Three arguments, one of which contains options and one is a pathname. c. The file command creates a new, empty file in the current directory e. Tw o arguments, one of which is a single option name and the other is a d. To indicate End-of-File (no more input) to a program, type [CTRL]-[D]. pathname. e. To interrupt a Unix process from the keyboard, type [CTRL]-[D]. 70. If /etc/passwd is a file name, which pathname always leads to the same file? 63. The purpose of the PS1 shell variable is: a. /etc/../../passwd b. ././etc/passwd a. to allowaccess to the ROOTdirectory c. /etc/passwd/./. d. /etc/passwd/../.. b. to find patterns inside a text file e. /./../etc/./passwd c. to list your suspended jobs 71. If Iaminmyhome directory named /home/myhome and sub is an empty sub- d. to set the shell prompt directory,what is true after this command line: e. to protect your HOME directory from access touch ./fil ; mv sub/../fil ../myhome/cat 64. If you type the command cat,which key sequence will send an EOF and takeyou a. there is a second copyofthe file fil in the file named cat back to the command prompt? b. the directory sub nowcontains only a file named cat a. [CTRL-U] b. [CTRL-R] c. [CTRL-L] c. the command fails because the path ../myhome/cat does not exist d. [CTRL-D] e. [CTRL-C] d. the command fails because the path sub/../fil does not exist 65. Howmanyarguments and options are there to the command: e. the directory sub/.. nowhas a file named cat in it ls -ls /cat 72. What is the output of this successful command sequence? a. Tw o options, no arguments. cd /home/foo ; touch dir ; mkdir bar ; pwd b. Tw o arguments, no options. a. /home/foo b. /home/foo/bar c. Athree-letter file name and a /cat switch option argument. c. /bar d. /home/foo/dir d. Tw o arguments, one of which is a single option and the other is a pathname. e. /home/foo/dir/bar e. Tw o command line arguments, one of which contains twobundled options. 73. Which of these characters is not ashell GLOB meta-character? 66. What is the absolute pathname of the Unix/ password (account) file? a. ? b. ] c. # d. * e. [ a. /etc/passwd b. /bin/passwd c. /lib/passwd 74. Which command line lists all possible utilities available for compiling programs? d. /usr/passwd e. /var/passwd a. grep compile /etc/ b. locate compile c. apropos compile d. man compile e. find compile

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -11- 1 Minute Per Question 110 M/C Questions -12- 1 Minute Per Question

75. HowdoIsearch for the string xyz in the text display output from the man 82. Toleave a shell and let the terminal windowclose, type: command? a. [CTRL-C] b. q c. bye a. find xyz d. quit e. b. use the mouse to select "Search" in the menu 83. In which section of the manual do you find standard commands? c. search xyz a. 4 b. 8 c. 2 d. 1 e. 3 d. @xyz ls -a .. e. /xyz 84. When doing an ,the output pathname that is a double dot ( )signifies what? 76. The shell meta-character used to separate multiple separate commands on the same a. The parent directory. line of typing is: b. The current directory. a. ; b. : c. @ d. , e. + c. Ahidden file. 77. If Iaminmyhome directory named /home/myhome and dir is an empty sub- d. Afile or directory with double links. directory,what is true after this command line: e. The ROOTdirectory. touch new ; mv ./dir/../new ../myhome/old 85. If /etc/passwd is a file name, which pathname always leads to the same file? a. the parent directory of dir nowhas a file named old in it a. /../etc/./passwd b. ./etc/passwd b. the command fails because the path ../myhome/old does not exist c. /etc/../../passwd d. /etc/passwd/. c. there is a second copyofthe file new in the file named old e. /etc/passwd/../.. d. the command fails because the path ./dir/../new does not exist e. the directory dir nowcontains only a file named old 86. What is the output of this successful command sequence? cd /usr/bin ; mkdir dir ; touch bar ; pwd 78. Which of these statements is true? a. /usr/bin/bar b. /usr/bin c. /usr/bin/dir a. Unix commands must be entered in lower-case letters. d. /home/dir e. /home/bar b. Unix commands can be entered in upper-case or lower-case letters; theyare equivalent. 87. Giventhe pathname a/b/c,the of this pathname is: c. To indicate End-of-File (no more input), type [CTRL]-[E]. a. b b. c c. a d. a/b e. b/c d. To erase an entire line of typing, type [CTRL]-[E]. 88. If you type the command 60,which key sequence will interrupt it and take e. To delete a word from the shell command line, type [CTRL]-[D] you back to the command prompt? 79. What do you do to erase an entire line of typing in the shell? a. [CTRL-C] b. [CTRL-R] c. [CTRL-U] a. type [CTRL-D] d. [CTRL-L] e. [CTRL-D] b. select the line with the mouse and use the DEL key 89. In the output of the command ls -a,the one-character name . signifies what? c. type [CTRL-W] a. The current directory. d. type [CTRL-U] b. The parent directory. e. select the line with the mouse and use the BACKSPACE key c. Acurrent file. 80. What would you see if you typed this command: cat /foo d. Aname that is hidden. a. The contents of the file foo located in your home directory e. Aname with an unprintable character. b. The contents of your directory named foo 90. If you type the command echo ’missing quote,which key sequence will c. The contents of the file foo located in the parent directory interrupt it and takeyou back to the command prompt? d. The contents of the file foo located in the ROOTdirectory a. [CTRL-D] b. [CTRL-U] c. [CTRL-R] e. The contents of your subdirectory named foo d. [CTRL-L] e. [CTRL-C] 81. If you type the command grep pattern,which key sequence will send an EOF and takeyou back to the command prompt? a. [CTRL-R] b. [CTRL-L] c. [CTRL-C] d. [CTRL-D] e. [CTRL-U]

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -13- 1 Minute Per Question 110 M/C Questions -14- 1 Minute Per Question

91. If ashell GLOB pattern fails to match anything, what happens by default? The 97. What is the result of this exact command line: cat /bin hello shell: a. file "/bin" will be copied to "hello"; the names will be displayed as well a. returns the closest match to the pattern b. all the files under "/bin" with the name "hello" will be displayed b. removesthe pattern and passes nothing c. the names of the pathnames "/bin" and "hello" will be displayed, if theyexist; c. givesawarning message but continues otherwise, error messages d. passes the pattern unchanged to the command d. the contents of the files "/bin" and "hello" will be displayed, if possible; e. givesanerror message and does not execute otherwise, error messages 92. What is your HOME directory? e. the twotextstrings "/bin" and "hello" will be displayed a. This is where "root" goes when "root" logs in to the system 98. Which command line would showthe index(inode) number of a file? b. The directory named /home a. ls -i file b. cat -l file c. ls -l file c. The directory into which you are placed when you first log in d. cat -i file e. find -i file d. The directory that your shell is in now 99. The output of the find command is: e. The top directory of the Unix/Linux/BSD/OSX file system tree a. account names matching a pattern 93. Which command belowisthe best way to find a line containing a question mark b. arecursive list of users logged in to the system (?)inthe file /etc/passwd? c. finds lines in a file matching a pattern a. search ’?’ /etc/passwd b. grep ’?’ /etc/passwd d. finds patterns in a file corresponding to lines c. grep ’./?’ /etc/passwd d. find ’?’ /etc/passwd e. arecursive list of pathnames e. grep /etc/passwd ’?’ 100. The basic purpose of a shell is: 94. In adirectory that contains only the file single,what happens after this a. to search for inside text files command: mv single double b. to program system administration backup procedures a. there is only the file named "double" in the directory now c. to expand pathnames b. the command fails because the name "double" does not exist d. to format hard drives c. the command fails because "single" is not a directory e. to find and run commands d. there is a second copyofthe file "single" in the file named "double" 101. What is the result of this exact command line: ls /bin hello e. an empty file named "double" is created a. the twotextstrings "/bin" and "hello" will be displayed 95. If cow is a sub-directory that contains only the file dog,what happens after this b. the contents of the files "/bin" and "hello" will be displayed, if possible; command: mv cow/dog cow/././cat otherwise, error messages a. there is a second copyofthe file dog in the file named cat c. file "/bin" will be copied to "hello"; the names will be displayed as well b. the directory cow is nowempty d. all the files under "/bin" with the name "hello" will be displayed c. the command fails because the name cow/././cat does not exist e. the names of the pathnames "/bin" and "hello" will be displayed, if theyexist; d. the command fails because the name cat does not exist otherwise, error messages e. the directory cow nowcontains only a file named cat 102. If foo is a sub-directory that contains only the file single,what happens after 96. What command can you use to remove a directory that isn’tempty? this command: mv ./foo/single foo/../double a. deldir -r dir b. rmdir -r dir a. the directory foo nowcontains only a file named double c. rm -r dir d. del -r dir b. there is a second copyofthe file single in the file named double e. mv -r dir c. the command fails because the name double does not exist d. the command fails because the name foo/../double does not exist e. the directory foo is nowempty

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question 110 M/C Questions -15- 1 Minute Per Question 110 M/C Questions -16- 1 Minute Per Question

103. If foo is a directory that contains only the file single,what happens after this This page intentionally left blank. command: mv foo/single foo/double a. the command fails because the name double does not exist b. an empty file named double is created c. there is only the file named double in the directory now d. the command fails because single is not a directory e. there is a second copyofthe file single in the file named double 104. The output of the whoami command is: a. your HOME directory b. the current directory c. alist of accounts in the password file d. your userid e. alist of users logged in to the system 105. If /bin/bash is a file name, which pathname always leads to the same file? a. /../bin/./bash b. /bin/../bash c. ./../bin/bash d. /bin/bash/. e. /bin/bin/../bash 106. What can you do to get back (redo) the last command you typed? a. Use the "UpArrow"key. b. Type [CTRL]-[ALT]-[UP] c. Type [CTRL]-[BACKSPACE] d. Type [ALT]-[F2] e. Use the "PageUp"key. 107. The option to ls that shows hidden names is: a. -R b. -l c. -a d. -1 e. -i 108. Toprevent disconnections when using the Windows version of PuTTY,you should makethis configuration change: a. set the seconds between keepalivesto55 b. use your ACSIS password as your password c. use your student number as your password d. your password will not echo on your screen as you type e. log in using your Blackboard userid 109. What is the current directory? a. This is where "root" goes when "root" logs in to the system b. The directory that your shell (or anyUnix process) is in now c. The directory named /current d. The directory named .. (dot dot) e. The directory into which you are placed when you first log in 110. Did you read ALL the words of the test instructions and did you DO them ALL? a. Jes (Esperanto) b. Tak (Polish) c. Taip (Lithuanian) d. Sim (Portuguese) e. Igen (Hungarian)

CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question CST 8207 −Winter 2013 − Practice Test #1 − 15% Ian! D. Allen 1Minute Per Question