CST 8207 −Ian Allen − Fall 2012 -1- ?? minutes CST 8207 −Ian Allen − Fall 2012 -2- ?? minutes

Test Version: 944 Name: 6. If you the ’missing quote,which key sequence will interrupt it and takeyou back to the command prompt? Multiple Choice - 107 Questions - 0 of 0% a. [CTRL-U] b. [CTRL-R] c. [CTRL-D] 1. Read all the instructions and both sides (back and front) of all pages. d. [CTRL-C] e. [CTRL-L] 2. Answer the questions you know, first. One Answer Only per question. 3. Manage your when answering questions on this ! 7. Which of these pathnames is not an absolute pathname (after all expansions)? a. ˜/foo b. /foo c. /../foo d. $HOME/foo e. foo (Office use only: 94 6 1 19 49 33 101 79 27 14 106 76 30 34 56 65 5 29 41 98 22 61 8 44 18 72 86 59 100 28 70 64 99 95 105 36 2 26 25 82 31 39 51 90 10 71 13 47 85 37 35 102 77 43 57 75 103 46 88 7 74 45 3 78 17 12 52 15 67 9 60 16 23 66 84 97 24 96 92 80 11 89 62 55 83 38 63 68 32 104 53 69 40 48 20 93 50 4 21 107 91 58 54 87 42 81 73) 8. Toprevent disconnections when using the Windows version of PuTTY,you should makethis configuration change: 1. The shell meta-character used to separate multiple separate commands on the same line of typing is: a. use your student number as your b. your password will not echo on your screen as you type a. + b. ; c. @ d. : e. , c. set the seconds between keepalivesto55 2. Howmanyarguments and options are there to the command: -lid /p d. use your ACSIS password as your password e. log in using your Blackboard userid a. Tw o arguments, neither of which is an option. b. Tw o arguments, one of which is a single option name and the other is a 9. If my current directory is /usr,which of these pathnames is equivalent to the pathname. pathname /usr/x/y/z? /p c. Tw o arguments: A file name starting with a dash and a switch option a. x/./y/z b. ../x/y/z c. ../usr/y/z argument. d. ./usr/x/y/z e. /x/y/z d. Three arguments, one of which contains options and one is a pathname. e. Tw o command line arguments, one of which contains three options. 10. If cow is a sub-directory that contains only the file dog,what happens after this command: cow/dog cow/././ 3. Tomakethe bash shell to complete commands or file names, you type the first part of the command or file name and then press this key: a. the directory cow nowcontains only a file named cat b. the command fails because the name cat does not exist a. [CTRL]-[D] b. [TAB] c. [ALT] c. the directory cow is nowempty d. [ALT]-[F1] e. [CTRL]-[C] d. there is a second copyofthe file dog in the file named cat 4. If Iaminmyhome directory named /home/idallen and empty is an empty e. the command fails because the name cow/././cat does not exist sub-directory,what is true after this command line: ./pig ; mv ./empty/../pig ../idallen/cow 11. What is the absolute pathname of the Unix/ password (account) file? /etc/passwd /bin/passwd /usr/passwd a. the directory empty nowcontains only a file named cow a. b. c. /lib/passwd /var/passwd b. the command fails because path ../idallen/cow does not exist d. e. empty/.. cow c. the directory nowhas a file named in it 12. Which of these statements is true? d. the command fails because path ./empty/../pig does not exist e. there is a second copyofthe file pig in the file named cow a. Unix commands must be entered in lower-case letters. b. To delete a word from the shell command line, type [CTRL]-[D] 5. What is the output of this successful command sequence? c. To indicate End-of- (no input), type [CTRL]-[C]. /home/dir ; one ; mkdir two ; d. To erase an entire line of typing, type [CTRL]-[D]. a. /home/dir/one/two b. /home/dir/one e. Unix commands can be entered in upper-case or lower-case letters; theyare c. /home/dir/two d. /two equivalent. e. /home/dir

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -3- ?? minutes CST 8207 −Ian Allen − Fall 2012 -4- ?? minutes

13. If my current directory is /home,and my is /home/xx,which 19. The -v option to the command does what? command copies the password file into my home directory under the name foo? a. turns on the translation of unprintable characters a. ../etc/passwd ../xx/foo b. turns offthe translation of unprintable characters b. cp xx/../../etc/passwd xx/foo c. selects lines that do not contain a match for the supplied pattern c. cp ../../etc/passwd /xx/foo d. prints the version number of the grep command d. cp ../home/xx/../etc/passwd ./xx/./foo e. selects lines that do not contain unprintable characters e. cp xx/../etc/passwd ../home/xx/foo 20. In which section of the manual do you find standard commands? 14. If you type the command grep pattern,which key sequence will send an EOF a. 2 b. 4 c. 8 d. 1 e. 3 and takeyou back to the command prompt? a. [CTRL-R] b. [CTRL-D] c. [CTRL-C] 21. If Iaminmyhome directory named /home/myhome and sub is an empty sub- d. [CTRL-L] e. [CTRL-U] directory,what is true after this command line: touch ./fil ; mv sub/../fil ../myhome/cat 15. What is the result of this exact command line: cat /bin hello a. the directory sub/.. nowhas a file named cat in it a. the names of the pathnames "/bin" and "hello" will be displayed, if theyexist; b. the command fails because the path ../myhome/cat does not exist otherwise, error messages c. the directory sub nowcontains only a file named cat b. the twotextstrings "/bin" and "hello" will be displayed d. there is a second copyofthe file fil in the file named cat c. file "/bin" will be copied to "hello"; the names will be displayed as well e. the command fails because the path sub/../fil does not exist d. all the files under "/bin" with the name "hello" will be displayed e. the contents of the files "/bin" and "hello" will be displayed, if possible; 22. When doing an ls -a,the output pathname that is a double dot (..)signifies otherwise, error messages what? a. Afile or directory with double links. 16. Which Unix command sequence deletes a directory and everything inside it? b. The current directory. a. -all dir b. deltree -all dir c. Ahidden file. c. -r dir d. rm -r dir d. The parent directory. e. rmdir -all dir e. The ROOTdirectory.

17. Howmanyarguments and options are there to the command: 23. Howmanyarguments and options are there to the command: ls -li foobar -wc / a. Tw o command line arguments, one of which contains twobundled options. a. Tw o options, no arguments. b. Tw o arguments, one of which is a single option and the other is a pathname. b. Tw o arguments, no options. c. Tw o arguments, no options. c. Athree-letter file name and a /sort switch option argument. d. Tw o options, no arguments. d. Tw o arguments, one of which is a single option and the other is a pathname. e. One argument, no options. e. Tw o command line arguments, one of which contains twobundled options.

18. If my current directory is /home,and my home directory is /home/me,which 24. What command can you use to remove a directory that isn’tempty? command copies the password file into my home directory under the name foo? a. del -r dir b. deldir -r dir a. cp ../../etc/passwd /me/foo c. rmdir -r dir d. mv -r dir b. cp ./me/../etc/passwd ../home/me/foo e. rm -r dir c. cp me/../../etc/passwd me/foo d. cp ../home/me/../etc/passwd ./me/./foo e. cp ../etc/passwd ../me/foo

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -5- ?? minutes CST 8207 −Ian Allen − Fall 2012 -6- ?? minutes

25. If Iaminmyhome directory named /home/ian and mt is an empty sub- 32. Which Unix command sequence deletes a directory and everything inside it? directory,what is true after this command line: a. deltree -all dir b. erase -r dir touch ../ian/cat ; cp ./mt/../cat ./mt/../dog c. rmdir -all dir d. erase dir a. the directory mt is still empty e. rm -r dir b. the command fails because the path ./mt/../cat does not exist c. there is a second copyofthe file named cat in the file dog 33. What is your HOME directory? d. the directory mt nowcontains twofiles a. This is where "root" goes when "root" logs in to the system e. the directory mt nowhas a file named dog in it b. The directory that your shell is in now c. The top directory of the Unix/Linux/BSD/OSX file system tree 26. Which of these commands always returns you to your account home directory? d. The directory named /home a. cd home b. cd c. cd /home/.. e. The directory into which you are placed when you first log in d. cd /home e. cd .. 34. In an empty directory,what happens after this command line: 27. Toleave a shell and let the terminal windowclose, type: touch a b c ; mv a b c a. b. q c. quit a. an error message: mv: target ‘c’ is not a directory d. [CTRL-C] e. bye b. the files a, b,and c are movedtothe current directory c. the files a, b,and c are movedtothe directory c 28. What would you see if you typed this command: cat /foo d. the files a and b are movedinto the directory c a. The contents of your directory named foo e. the files a and b are appended to the file c b. The contents of the file foo located in your home directory c. The contents of your subdirectory named foo 35. If ashell token with a GLOB pattern contains twoslashes, howmanyslashes can be d. The contents of the file foo located in the parent directory in each matched pathname? e. The contents of the file foo located in the ROOTdirectory a. zero, one, or two b. one, two, or more c. one or two d. exactly two e. twoormore 29. What is the current directory? a. This is where "root" goes when "root" logs in to the system 36. In adirectory that contains only the file single,what happens after this b. The directory named .. (dot dot) command: mv single double c. The directory that your shell (or anyUnix process) is in now a. the command fails because "single" is not a directory d. The directory named /current b. there is only the file named "double" in the directory now e. The directory into which you are placed when you first log in c. there is a second copyofthe file "single" in the file named "double" d. an empty file named "double" is created 30. If my current directory is /home,and my home directory is /home/me,which e. the command fails because the name "double" does not exist command copies the password file into my home directory under the name foo? a. cp ../etc/passwd ./me/foo 37. HowdoIsearch for the string xyz in the text display output from the man b. cp ../home/me/../etc/passwd ./me/./foo command? c. cp ../etc/passwd ../me/foo a. @xyz d. cp ../../etc/passwd /me/foo b. use the mouse to select "Search" in the menu e. cp ./me/../etc/passwd ../home/me/foo c. search xyz d. /xyz 31. Which command line would showthe index(inode) number of a file? e. xyz a. find -i file b. ls -l file c. ls -i file d. cat -i file e. cat -l file

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -7- ?? minutes CST 8207 −Ian Allen − Fall 2012 -8- ?? minutes

38. If my current directory is /home,which of these pathnames is equivalent to the 46. Which command shows the name of the current computer: pathname /home/a/b/c? a. users b. c. w a. /a/b/c b. ./home/a/b/c c. ../home/b/c d. hostname e. comname d. ../a/b/c e. ./a/b/c 47. If /etc/passwd is a file name, which pathname always leads to the same file? 39. If my current directory is /home,which of these pathnames is equivalent to the a. /etc/../../passwd b. /etc/passwd/../.. pathname /home/a/b/c? c. ././etc/passwd d. /etc/passwd/./. a. ../home/b/c b. ../home/a/b/c e. /./../etc/./passwd c. /a/b/c d. ../a/b/c e. ./home/a/b/c 48. What do you do to erase an entire line of typing in the shell? a. type [CTRL-W] 40. The output of the find command is: b. select the line with the mouse and use the DEL key a. arecursive list of users logged in to the system c. type [CTRL-U] b. finds lines in a file matching a pattern d. type [CTRL-C] c. arecursive list of pathnames e. type [CTRL-D] d. finds patterns in a file corresponding to lines e. account names matching a pattern 49. Giventhe pathname a/b/c,the of this pathname is: a. a/b b. b c. a d. c e. b/c 41. If you type the command cat,which key sequence will send an EOF and takeyou back to the command prompt? 50. In the output of the command ls -a,adot that begins aname signifies what? a. [CTRL-R] b. [CTRL-I] c. [CTRL-C] a. Aname that is hidden. d. [CTRL-U] e. [CTRL-D] b. The current directory. c. Aname with an unprintable character. 42. In the output of the command ls -ai,the one-character name . signifies what? d. The parent directory. a. Acurrent file. e. Acurrent file. b. Aname with an unprintable character. c. Aname that is hidden. 51. If you type the command 60,which key sequence will interrupt it and take d. The current directory. you back to the command prompt? e. The parent directory. a. [CTRL-D] b. [CTRL-U] c. [CTRL-R] d. [CTRL-L] e. [CTRL-C] 43. What is the output of this successful command sequence? cd /usr/bin ; mkdir dir ; touch bar ; pwd 52. What does quoting mean on a shell command line? a. /usr/bin/dir b. /usr/bin/bar c. /home/bar a. turning offthe special meaning of shell meta-characters d. /home/dir e. /usr/bin b. typing a "control" character using the [CTRL] key c. setting the PS1 variable to be your shell prompt 44. The option to ls that shows hidden names is: d. using a leading tilde ("˜") on a pathname to mean your HOME directory a. -a b. -1 c. -i d. -R e. -l e. using more than one pathname argument to a command, e.g. rm a b c

45. If /bin/bash is a file name, which pathname always leads to the same file? 53. Which pathname almost always leads to the same file named: /etc/passwd? a. ./../bin/bash b. /bin/bash/. a. /etc/./etc/../passwd b. ./etc/passwd c. /bin/bin/../bash d. /../bin/./bash c. /etc/../etc/passwd d. ../etc/passwd e. /bin/../bash e. /etc/passwd/.

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -9- ?? minutes CST 8207 −Ian Allen − Fall 2012 -10- ?? minutes

54. What command can you use to delete a directory? 61. Which of these statements is true? a. rmdir b. erase c. delete a. To erase an entire line of typing, type [ALT]-[DELETE]. d. deldir e. mvdir b. To indicate End-of-File (no more input) to a program, type [CTRL]-[D]. c. The file command creates a new, empty file in the current directory 55. What is the result of this exact command line: ls /bin hello d. Command apropos is an exact synonym for command man. a. the names of the pathnames "/bin" and "hello" will be displayed, if theyexist; e. To interrupt a Unix process from the keyboard, type [CTRL]-[D]. otherwise, error messages b. file "/bin" will be copied to "hello"; the names will be displayed as well 62. What command displays the sizes of files in the current directory? c. all the files under "/bin" with the name "hello" will be displayed a. cat -s b. ls -p c. ls -l d. the contents of the files "/bin" and "hello" will be displayed, if possible; d. -l e. ps -s otherwise, error messages e. the twotextstrings "/bin" and "hello" will be displayed 63. Howmanyarguments and options are there to the command: -jy 2001 56. Which of these statements is true? a. Tw o command line arguments, one of which contains twooptions. a. To indicate End-of-File (no more input), type [CTRL]-[E]. b. Tw o arguments, one of which is a single option and the other is a pathname. b. To delete a word from the shell command line, type [CTRL]-[D] c. Asingle numeric option and a three-letter file name. c. To erase an entire line of typing, type [CTRL]-[E]. d. Tw o arguments, no options. d. Unix commands can be entered in upper-case or lower-case letters; theyare e. Tw o options, no arguments. equivalent. e. Unix commands must be entered in lower-case letters. 64. The output of the whoami command is: a. your userid 57. Which of these characters is not ashell GLOB meta-character? b. the current directory a. ] b. # c. [ d. ? e. * c. alist of users logged in to the system d. your HOME directory 58. What do you do to erase an entire line of typing in the shell? e. alist of accounts in the password file a. select the line with the mouse and use the BACKSPACE key b. type [CTRL-W] 65. If foo is a sub-directory that contains only the file single,what happens after c. select the line with the mouse and use the DEL key this command: mv ./foo/single foo/../double d. type [CTRL-D] a. the directory foo nowcontains only a file named double e. type [CTRL-U] b. there is a second copyofthe file single in the file named double c. the command fails because the name double does not exist 59. In amanual page SYNOPSIS section, square brackets ([])mean: d. the command fails because the name foo/../double does not exist a. no special meaning b. something that is optional e. the directory foo is nowempty c. an arithmetic expression d. aGLOB pattern matching a list e. something that is repeated 66. If /etc/passwd is a file name, which pathname always leads to the same file? a. /etc/passwd/../.. b. /../etc/./passwd 60. Howmanyarguments and options are there to the command: c. /etc/passwd/. d. ./etc/passwd ls -ls /cat e. /etc/../../passwd a. Athree-letter file name and a /cat switch option argument. b. Tw o command line arguments, one of which contains twobundled options. c. Tw o arguments, one of which is a single option and the other is a pathname. d. Tw o options, no arguments. e. Tw o arguments, no options.

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -11- ?? minutes CST 8207 −Ian Allen − Fall 2012 -12- ?? minutes

67. What is the output of this successful command sequence? 74. Which Unix command sequence deletes a directory and everything inside it? cd /home/myhome ; mkdir foo ; mkdir bar ; pwd a. rm -r dir b. deltree dir a. /home/myhome/foo/bar b. /home/myhome/bar c. erase -r dir d. erase dir c. /bar d. /home/myhome e. rmdir -all dir e. /home/myhome/foo 75. The basic purpose of a shell is: 68. If foo is a directory that contains only the file single,what happens after this a. to expand pathnames command: mv foo/single foo/double b. to format hard drives a. an empty file named double is created c. to program system administration backup procedures b. there is a second copyofthe file single in the file named double d. to find and run commands c. the command fails because the name double does not exist e. to search for inside text files d. the command fails because single is not a directory e. there is only the file named double in the directory now 76. In which section of the manual do you find super- and admin commands? a. 4 b. 1 c. 3 d. 2 e. 8 69. Which command belowisthe best way to find a line containing a question mark (?)inthe file /etc/passwd? 77. If my current directory is /etc,which of these pathnames is equivalent to the file a. search ’?’ /etc/passwd b. find ’?’ /etc/passwd name /etc/passwd? c. grep ’./?’ /etc/passwd d. grep ’?’ /etc/passwd a. /passwd b. ./passwd e. grep /etc/passwd ’?’ c. ./etc/passwd d. ../etc/passwd/. e. ../passwd 70. If /bin/bash is a file name, which pathname always leads to the same file? a. /bin/bash/. b. /../../bin/bash 78. In an empty directory,what happens after this command line: c. ./bin/bash d. /bin/../bash mkdir a b c ; mv a b c e. /bin/bash/.. a. an error message: mv: target ‘c’ is not a directory b. the directories a and b are appended to the directory c 71. What would you type to find the string tony in the file /etc/passwd? c. the directories a, b,and c are movedtothe directory c a. cat tony /etc/passwd d. the directories a, b,and c are movedtothe current directory b. find /etc/passwd -name tony -print e. the directories a and b are movedinto the directory c c. find /etc/passwd -user tony -print d. grep /etc/passwd tony 79. The option to ls that shows inode (index) numbers is: e. grep tony /etc/passwd a. -i b. -R c. -l d. -a e. -1

72. If foo is a sub-directory that contains only the file pig,what happens after this 80. Tochange your own account password, use this exact command line: command: mv foo/pig foo/././dog a. $passwd root a. the command fails because the name dog does not exist b. $passwd b. there is a second copyofthe file pig in the file named dog c. $passwd cst8207 c. the directory foo nowcontains only a file named dog d. $passwd options LOGIN d. the directory foo is nowempty e. $passwd cst8207.idallen.ca e. the command fails because the name foo/././dog does not exist 81. If /bin/bash is a file name, which pathname always leads to the same file? 73. If my current directory is /bin,which of these pathnames is equivalent to the file a. /./bin/./bash b. /bin/bash/. name /bin/ls? c. /bin/../bash d. /bin/bin/../bash a. ../bin/ls/. b. /root/bin/ls c. ls/. e. ./bin/bash d. ./bin/ls e. ../../bin/ls

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -13- ?? minutes CST 8207 −Ian Allen − Fall 2012 -14- ?? minutes

82. In amanual page SYNOPSIS section, ellipsis (three dots) (...)mean: 88. Which command belowisthe best way to find a line containing an asterisk (*)in a. something that is optional b. the parent directory the file named foo? c. something that is repeated d. no special meaning a. grep foo "*" b. grep ./* foo e. ahidden directory c. grep foo [*] d. grep * foo e. grep ’*’ foo 83. When doing an ls -a,the output pathname that is a double dot (..)signifies what? 89. If you type the command cat,which key sequence will send an EOF and takeyou a. Ahidden file. b. The parent directory. back to the command prompt? c. Apathname with double links. d. The current directory. a. [CTRL-U] b. [CTRL-R] c. [CTRL-D] e. The ROOTdirectory. d. [CTRL-L] e. [CTRL-C]

84. What is the result of this exact command line: echo /bin hello 90. If ashell GLOB pattern fails to match anything, what happens by default? The a. all the files under "/bin" with the name "hello" will be displayed shell: b. the names of the pathnames "/bin" and "hello" will be displayed, if theyexist; a. givesanerror message and does not execute otherwise, error messages b. returns the closest match to the pattern c. the twotextstrings "/bin" and "hello" will be displayed c. givesawarning message but continues d. the contents of the files "/bin" and "hello" will be displayed, if possible; d. removesthe pattern and passes nothing otherwise, error messages e. passes the pattern unchanged to the command e. file "/bin" will be copied to "hello"; the names will be displayed as well 91. What is the output of this successful command sequence? 85. The purpose of the PS1 shell variable is: cd /tmp ; mkdir foo ; mkdir bar ; pwd a. to list your suspended jobs a. /bar b. /tmp/bar c. /tmp/foo b. to protect your HOME directory from access d. /tmp e. /tmp/foo/bar c. to allowaccess to the ROOTdirectory d. to find patterns inside a text file 92. Which command line lists all possible utilities available for compiling programs? e. to set the shell prompt a. grep compile /etc/ b. apropos compile c. man compile d. find compile 86. In the output of the command ls -a,the one-character name . signifies what? e. locate compile a. Acurrent file. b. Aname with an unprintable character. 93. In the output of the command ls -i -a,adot that begins apathname signifies c. The parent directory. what? d. The current directory. a. Aname that is hidden. e. Aname that is hidden. b. An inode (index) numbered file. c. Aname with an unprintable character. 87. Which Unix command line deletes a directory and everything inside it? d. The parent directory. a. rmdir -r dir b. rm -r dir e. The current directory. c. rm -all dir d. deltree -all dir e. rmdir -all dir 94. What does the -v option to the grep command do? a. turns on the translation of unprintable characters b. selects lines that do not contain a match for the supplied pattern c. turns offthe translation of unprintable characters d. selects lines that do not contain unprintable characters e. prints the version number of the grep command

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes CST 8207 −Ian Allen − Fall 2012 -15- ?? minutes CST 8207 −Ian Allen − Fall 2012 -16- ?? minutes

95. If Iaminmyhome directory named /home/me and x is an empty sub-directory, 101. The option to ls that shows which names are directories is: what is true after this command line: a. -i b. -l c. -1 d. -a e. -R touch ./x/fil ; mv x/./fil x/../../me/./y a. there is a second copyofthe file fil in the file named y 102. What would you see if you typed this command: cat /users b. the directory x nowcontains only a file named y a. The contents of the file users located in the ROOTdirectory c. the directory x is still empty b. The contents of your subdirectory named users d. the command fails because the path x/../../me does not exist c. The contents of the file users located in the parent directory e. the command fails because the path x/./fil does not exist d. The contents of your directory named users e. The contents of the file users located in your home directory 96. The command that creates a directory and all parent directories is: a. mkdir -p a/b/c b. rm -r a/b/c 103. What is the output of this successful command sequence? c. touch a/b/c d. rmdir -r a/b/c cd /tmp ; mkdir one ; mkdir two ; pwd e. mkdir -r a/b/c a. /tmp/one/two b. /tmp/one c. /two d. /tmp/two e. /tmp 97. What is the output of this successful command sequence? cd /home/foo ; touch dir ; mkdir bar ; pwd 104. The shell expands a leading tilde (˜)inapathname (e.g. ˜/foo)tobe: a. /home/foo b. /home/foo/bar a. the ROOTdirectory b. the current directory c. /home/foo/dir/bar d. /home/foo/dir c. the parent directory d. your HOME directory e. /bar e. the directory /root

98. Howmanyarguments and options are there to the command: 105. What can you do to get back (redo) the last command you typed? ls -al /etc a. Type [ALT]-[F2] b. Use the "UpArrow"key. a. Athree-letter file name and an /etc switch option. c. Use the "PageUp"key. d. Type [CTRL]-[ALT]-[UP] b. Tw o arguments, one of which is a single option and the other is a pathname. e. Type [CTRL]-[BACKSPACE] c. Tw o options, no arguments. d. Tw o arguments, no options. 106. The output of the tree command is: e. Tw o command line arguments, one of which contains twobundled options. a. arecursive list of users logged in to the system b. the tree of files under the ROOTdirectory 99. If Iaminmyhome directory named /home/myhome and dir is an empty sub- c. the tree of users logged in to the system directory,what is true after this command line: d. the tree of files under your HOME directory touch new ; mv ./dir/../new ../myhome/old e. an indented, recursive list of directories and their contents a. the command fails because the path ../myhome/old does not exist b. the command fails because the path ./dir/../new does not exist 107. Which of these is the most secure password? c. there is a second copyofthe file new in the file named old a. secrets b. Canada c. apple15 d. the directory dir nowcontains only a file named old d. Easy10! e. Madonna e. the parent directory of dir nowhas a file named old in it

100. What happens when you try to change to the parent directory of ROOT, e.g. cd / ; cd .. a. the shell asks you to retype this invalid directory b. the shell issues a warning, but changes to the parent c. you go to the parent directory containing your C: drive d. the shell issues an error message and does not change e. the shell current directory is still ROOT; nochange

107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes 107 M/C Questions CST 8207 Practice Test #1 - 0% ?? minutes