Advertisement
Typhoon

Linux Questions

Mar 24th, 2015
2,933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.40 KB | None | 0 0
  1. #####################
  2. QUESTION 1 (1/1 point)
  3. The kernel is defined as:
  4.  
  5. The graphical user interface on top of the operating system
  6. The glue between the hardware and applications - correct
  7. The software libraries needed to run the system All of the above
  8.  
  9. #####################
  10. QUESTION 2 (1/1 point)
  11. Which statements are true about the Linux Boot Loader:
  12.  
  13. It is executed before Linux
  14. It gives us more control on how we boot the system
  15. It can be used to select operating systems or kernels
  16. All of the above - correct
  17.  
  18. #####################
  19. QUESTION 3 (1/1 point)
  20. If the display manager is not started by default in the default runlevel, you can start the X-Window System by:
  21.  
  22. Running the startx command from the command-line - correct
  23. Running the runX command from the command-line
  24. Running the X –begin command from the command-line
  25.  
  26. #####################
  27. QUESTION 4 (1/1 point)
  28. To change your desktop background:
  29.  
  30. Edit the desktop-background file
  31. Right-click on the desktop, select Change Desktop Background and select a wallpaper - correct
  32. Double-click the desktop, select an available wallpaper and click on Save
  33. Try a different Linux distribution
  34.  
  35. #####################
  36. QUESTION 5 (1/1 point)
  37. For best coordination between multiple Linux systems, you should set the date and time:
  38.  
  39. Manually as close as possible to each other
  40. Manually, but the various systems' time only needs to be synchronized within a few minutes
  41. Using the Network Time Protocol (NTP) so that machines are automatically very close to the same time - correct
  42. Manually every time you boot the system
  43.  
  44. #####################
  45. QUESTION 6 (1/1 point)
  46. Display settings allow you to change things like:
  47.  
  48. The date and time
  49. Network settings
  50. Screen resolution and multiple screens configuration - correct
  51. Whether or not to use a graphical interface
  52.  
  53. #####################
  54. QUESTION 7 (1/1 point)
  55. One of the reasons you should learn text mode operations is:
  56.  
  57. Your server may not have the overhead for a graphical user interface (GUI) - correct
  58. Linux does not include a graphical user interface (GUI)
  59. A particular command may not be installed on your system
  60. You are not competent if you can't do everything from a command line
  61.  
  62. #####################
  63. QUESTION 8 (1/1 point)
  64. To move around the file system tree from one directory to another you can use:
  65.  
  66. ls
  67. cd - correct
  68. ps
  69. mv
  70.  
  71. #####################
  72. QUESTION 9 (1/1 point)
  73. To remove a directory named data and all of its files, including sub-directories, in that directory, use:
  74.  
  75. rmdir data
  76. rm –f data
  77. rm –rf data - correct
  78. remove data
  79.  
  80. #####################
  81. QUESTION 10 (1/1 point)
  82. The Linux manual pages can be read using:
  83.  
  84. manual
  85. man - correct
  86. doc
  87. command /?
  88.  
  89. #####################
  90. QUESTION 11 (1/1 point)
  91. Many programs have built-in help; to access this, use:
  92.  
  93. The -h or --help option - correct
  94. The --info option
  95. The -m or --man option
  96. The –doc option
  97.  
  98. 12. Which of the following compares two files line by line and reports differences?
  99.  
  100. cp
  101. rsync
  102. patch
  103. diff
  104.  
  105. #####################
  106. QUESTION 13 (1/1 point)
  107. Which of the following is useful for creating a backup of a disk Master Boot Record (MBR)?
  108.  
  109. d2d
  110. dd - correct
  111. bzip2
  112. file
  113.  
  114. #####################
  115. QUESTION 14 (1/1 point)
  116. In order to execute a Linux command as the root user, what should you prefix it with?
  117.  
  118. su (as in su ls /etc)
  119. time (as in time ls /etc)
  120. strace (as in strace ls /etc)
  121. sudo command (as in sudo ls /etc) - correct
  122.  
  123. #####################
  124. QUESTION 15 (1/1 point)
  125. The_________environment variable lists the directories in which the shell looks for executable programs and scripts.
  126.  
  127. $PATH - correct
  128. $HOME
  129. $PS1
  130. $SHELL
  131.  
  132. #####################
  133. QUESTION 16 (1/1 point)
  134. Which command is used to set the Linux file permissions to make the file named data, readable and writable by the owner and group owner of the file, but not accessible by any others?
  135.  
  136. chown 660 data
  137. chmod 660 - correct
  138. chgrp 670 data
  139. chmod 777 data
  140.  
  141. #####################
  142. QUESTION 17 (1/1 point)
  143. An easy to use text-based editor that utilizes on-screen prompts is:
  144.  
  145. edit
  146. cat
  147. edln
  148. nano - correct
  149.  
  150. #####################
  151. QUESTION 18 (1/1 point)
  152. The command-mode key stroke(s)______within vi will delete the characters from the cursor to the end of the word.
  153.  
  154. D
  155. dw - correct
  156. d$
  157. rl
  158.  
  159. #####################
  160. QUESTION 19 (1/1 point)
  161. Encrypted account passwords are found in the file,_________, and are typically encrypted using the__________algorithm.
  162.  
  163. /etc/passwd; SHA-512
  164. /etc/password; SSH-512
  165. /etc/shadow; SHA-512 - correct
  166. /etc/shadow; HASH-256
  167.  
  168. #####################
  169. QUESTION 20 (1/1 point)
  170. The root account:
  171.  
  172. Has authority over the entire system
  173. Requires extreme caution when using because small mistakes can lead to disasters
  174. Should be used carefully; think before pressing the Enter key and run complex commands in a safe way, first, to ensure mistakes aren’t made
  175. All of the above
  176.  
  177. #####################
  178. QUESTION 21 (1/1 point)
  179. IP addresses are divided into two parts:
  180.  
  181. Address and octets
  182. TCP and IP
  183. Network and host - correct
  184. Class A and B
  185.  
  186. #####################
  187. QUESTION 22 (1/1 point)
  188. To confirm that a remote host is online and responding and to measure network latency between machines at the same time , one can use:
  189.  
  190. nslookup
  191. ip addr show
  192. dig
  193. ping
  194.  
  195. #####################
  196. QUESTION 23 (1/1 point)
  197. How would you use sed to replace all the occurrences of the word "tiger" with "lion" in the file named data?
  198.  
  199. sed ‘s/tiger/lion/’ data
  200. sed ‘s/lion/tiger/’ data
  201. sed -i ‘s/tiger/lion/g’ data - correct
  202. sed –i ‘r/lion/tiger/’ data
  203.  
  204. #####################
  205. QUESTION 24 (1/1 point)
  206. The command "wc –l data" will print out the number of :
  207.  
  208. lines in the file data - correct
  209. words in the file data
  210. characters in the file data
  211. bytes in the file data
  212.  
  213. #####################
  214. QUESTION 25 (1/1 point)
  215. Which of following could you use to check the status of all your printers?
  216.  
  217. status –a
  218. lp status –all
  219. lprm my-printers
  220. lpstat –a - correct
  221.  
  222. #####################
  223. QUESTION 26 (1/1 point)
  224. Why should we use shell scripts?
  225.  
  226. They combine long, possibly repetitive commands into one simple command
  227. They allow you to create new commands and share these procedures among several users
  228. They automate tasks and reduce risk of errors
  229. All of the above - correct
  230.  
  231. #####################
  232. QUESTION 27 (1/1 point)
  233. Your shell script uses an "if" statement to see if the word "yes" was entered. This "if" statement looks like:
  234.  
  235. if ( $RESPONSE = "yes" ) ; then
  236. if [ RESPONSE = "yes" ) ; then
  237. if [ $RESPONSE == "yes" ] ; then - correct
  238. if ( RESPONSE = "yes" ) ; then
  239.  
  240. #####################
  241. QUESTION 28 (1/1 point)
  242. Your shell script needs to test to see if a directory, document, exists; a way to do this is:
  243.  
  244. [ -e document ]
  245. [ document –gt 0 ]
  246. [ -d document ] - correct
  247. [ -s document ]
  248.  
  249.  
  250. #####################
  251. QUESTION 29 (1/1 point)
  252. Which of the following can be used to show which processes are using most of the CPU or memory resources on your system:
  253.  
  254. most
  255. big
  256. lots
  257. top - correct
  258.  
  259. #####################
  260. QUESTION 30 (1/1 point)
  261. The ssh command provides a way to:
  262.  
  263. Exit your login shell cleanly
  264. Silently copy files from one directory to another
  265. Connect securely to remote systems - correct
  266. Check the process status of your shell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement