==================================================== # Contents of the CST8207-15F Final Exam - Fall 2015 ==================================================== 1. symlink 2. tarball 3. different files 4. Can user u in group g 5. Can user u in group g 6. Can user u in group g 7. Can user u in group g 8. Can user u in group g 9. Can user u in group g 10. Can user u in group g 11. Create a symbolic link 12. Dereference the following symlink 13. File a contains 20 lines. File b contains 30 lines. How many lines 14. File a contains 2 lines. File b contains 3 lines. How many lines 15. File a contains 2 lines. File b contains 3 lines. How many lines 16. File a contains 2 lines. File b contains 3 lines. How many lines 17. File a contains 2 lines. File b contains 3 lines. How many lines 18. File a contains 3 lines. File b contains 4 lines. How many lines 19. File a occupies one disk block. How many disk blocks are in use 20. File a occupies one disk block. How many disk blocks are in use 21. File a occupies one disk block. How many disk blocks are in use 22. File a occupies one disk block. How many disk blocks are in use 23. File x contains 9 lines, each of which is the one‐digit line number of 24. File x contains 9 lines, each of which is the one‐digit line number of 25. File x contains ten lines. File y contains twenty lines. How many lines 26. Given an existing file, what is the output on your screen 27. Given an existing file, what is the output on your screen 28. Given my directory x and my file x/f owned by me, which permissions 29. Given my directory x and my file x/f owned by me, which permissions 30. Given the pathname 31. Given this long listing: 32. Given this successful command line 33. Give the minimum number of directories 34. How do I search for 35. How do you execute the program 36. How many arguments and options are there to the command 37. How many arguments are passed to the command by the shell 38. How many arguments are passed to the command by the shell 39. How many arguments does the shell pass to this echo command 40. How many lines are in file after this 41. How many lines are in file after this 42. If a shell GLOB pattern fails 43. If a shell token with a GLOB pattern 44. which pathname always leads to the same file? 45. If x is a program 46. If x is a program 47. If x is a program 48. If x is a sub‐directory 49. If directory x contains 50. If directory x contains 51. If files occupy one disk block, how many disk blocks will the system free 52. If files occupy one disk block, how many disk blocks will the system free 53. If files occupy one disk block, how many disk blocks will the system free 54. If files occupy one disk block, how many disk blocks will the system free 55. If x is a sub‐directory that contains only the file y, what happens 56. If x is a sub‐directory that contains only the file y, what happens 57. If x is a sub‐directory that contains only the file y, what happens 58. If I have a directory named 59. If I mount one file system 60. If my current directory is 61. If my current directory is 62. If the current directory 63. ls -l shows a symbolic link 64. If your PATH variable contains 65. which CTRL key 66. which CTRL key 67. a user‐defined alias 68. In a directory containing one file named x, what is the output 69. In a directory containing one file named x, what is the output 70. In a manual page SYNOPSIS section 71. In a manual page SYNOPSIS section 72. In an empty directory, how many arguments are passed 73. In an empty directory, how many lines are in file 74. In an empty directory, how many words are in file 75. In an empty directory, what is output on your screen 76. In an empty directory, what is output on your screen 77. In an empty directory, what is output on your screen 78. In an empty directory, what is output on your screen 79. In an empty directory, what is output on your screen 80. In an empty directory, what is output on your screen 81. change the permissions 82. Rewrite as a simplified absolute path 83. the system crontab 84. The minimum permissions you need to 85. The minimum permissions you need to 86. The minimum permissions you need to 87. The minimum permissions you need to 88. The minimum permissions you need to 89. The minimum permissions you need to 90. :x: 91. shadow password file 92. The signal sent to a foreground process 93. Which of the following signals 94. To "throw away" (hide) standard error 95. Under what directory are 96. User u is in groups g1 and g2. User 2 is in group g3. 97. User u is in groups g1 and g2. User 2 is in group g3. 98. User u is in groups g1 and g2. User 2 is in group g3. 99. User u is in groups g1 and g2. User 2 is in group g3. 100. User u is in groups g1 and g2. User 2 is in group g3. 101. User u is in groups g1 and g2. User 2 is in group g3. 102. User u is in groups g1 and g2. User 2 is in group g3. 103. User u is in groups g1 and g2. User 2 is in group g3. 104. User u is in groups g1 and g2. User 2 is in group g3. 105. User u is in groups g1 and g2. User 2 is in group g3. 106. User u is in groups g1 and g2. User 2 is in group g3. 107. User u is in groups g1 and g2. User 2 is in group g3. 108. User u is in groups g1 and g2. User 2 is in group g3. 109. User u is in groups g1 and g2. User 2 is in group g3. 110. User u is in groups g1 and g2. User 2 is in group g3. 111. User u is in groups g1 and g2. User 2 is in group g3. 112. User u is in groups g1 and g2. User 2 is in group g3. 113. User u is in groups g1 and g2. User 2 is in group g3. 114. User u is in groups g1 and g2. User 2 is in group g3. 115. User u is in groups g1 and g2. User 2 is in group g3. 116. User u is in groups g1 and g2. User 2 is in group g3. 117. User u is in groups g1 and g2. User 2 is in group g3. 118. User u is in groups g1 and g2. User 2 is in group g3. 119. What command can you use to delete 120. What command displays the kernel 121. What displays on your screen given this command: 122. What is in file x after this: 123. What is the correct syntax 124. What is the link count of 125. What is the link count of 126. What is the link count of 127. What is the output of this in an empty directory 128. What is the output of this in an empty directory 129. What is the output on your screen after this: 130. What is the output on your screen of this 131. What is true about this output 132. What is true about this output 133. to change the permissions 134. What permissions are given to x after this: 135. What permissions are given to x after this: 136. What value umask 137. What value umask 138. When an at job runs, the current 139. When a personal crontab job runs, the current 140. Which command line creates a directory 141. Which command line displays all the 142. Which command line displays all the 143. Which command line displays all the 144. Which command line outputs only lines 145. Which command usually goes in your 146. Which crontab time specification executes at 147. A crontab time specification of 148. A pathname that is not an absolute pathname (after all shell expansions): 149. Which option to ls displays 150. system logging 151. a compressed tar archive 152. What would be the output of the following command line: 153. What would be the output of the following command line: 154. What would the following command do 155. A shell script named x is executed as follows: 156. Given the following shell script statement, 157. If x=1 and y=2 then what is the output of the following command line: 158. If a script named x contains a loop that starts 159. If a shell script x is called this way 160. If a shell script named x contains the line: 161. If x=y then which one of the following case patterns will match 162. If x=y then which one of the following case patterns will match 163. If variable a might contain nothing 164. In a shell case structure 165. the name of the script itself 166. the number of script arguments 167. What is the output (if any) of this program fragment? 168. Which command line correctly compares 169. Which command line correctly searches 170. A shell script first line 171. If the line 172. A grep (basic) regular expression matching only lines that 173. A grep (basic) regular expression matching only lines that 174. A grep (basic) regular expression matching only lines that 175. A grep (basic) regular expression matching only lines that 176. A grep (basic) regular expression matching only lines that 177. A grep (basic) regular expression matching only lines that 178. A grep (basic) regular expression matching only lines that 179. A grep (basic) regular expression matching only lines that 180. A grep (basic) regular expression matching only lines that 181. Did you write the Test Version number on the Scantron Form?