Upload
vkky2k8120
View
224
Download
0
Embed Size (px)
Citation preview
8/12/2019 107-101
1/47
LPI Study Guide
117-101Edition 3.0
www.passitexam.com All rights Reserved
8/12/2019 107-101
2/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q1. You want to set a script to run when your Linux system reboots. What lilo optionshould you use?
A. -RB. -SC. -T
D. -L
Ans.: A
Q2. What lilo.conf parameter is used to specify vga text mode?
A. vgatextB. svgaC. vgaD. vtm
Ans.: C
Q3. What lilo option will list the name and location of available kernels?
A. -qB. -k
C. -vD. -l
Ans.: A
Q4. You want to repeat command number 3 in your history. How would you do this?
A. repeat 3B. !3C. show 3D. #3
Ans.: B
Q5. What syslog.conf facility represents httpd processes?
A. http
8/12/2019 107-101
3/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. daemonC. smtpD. proc
Ans.: B
Q6. You want to find out what files are contained in a tar file. How would you do this?
A. Use the tar command with the -t switchB. Use the tar command with the -r switchC. Use the grep commandD. Use the find command
Ans.: A
Q7. What syslog.conf facility represents Usenet news?
A. usenetB. newsC. uunetD. net
Ans.: B
Q8. What run level represents a system reboot?
A. 6B. 1C. 2D. 5
Ans.: A
Q9. What option can be used with the shutdown command to reboot the system?
A. shutdown -rB. shutdown -yC. shutdown -cD. shutdown -b
8/12/2019 107-101
4/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: A
Q10. What command can be used to cause changes to the inittab file to take effectwithout a system reboot?
A. init qB. init rC. inittab rD. inittab q
Ans.: A
Q11. What syslog.conf facility represents mail processes?
A. procB. daemonC. mailD. smtp
Ans.: C
Q12. Which daemon will send kernel alert messages?
A. alertdB. smtpdC. krnldD. syslogd
Ans.: D
Q13. What syslog.conf facility represents the line printer?
A. ptrB. linepC. lprD. lprinter
Ans.: C
8/12/2019 107-101
5/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q14. What run level represents a power down?
A. 5B. 0C. 1D. 4
Ans.: B
Q15. What option can be used with the shutdown command to skip fsck on reboot?
A. shutdown -fB. shutdown -oC. shutdown -rD. shutdown -s
Ans.: A
Q16. What switch is used with the useradd command to specify a user's initial group?
A. -gB. -iC. -u
D. -ig
Ans.: A
Q17. Which lilo.conf parameter will specify the amount of time the system will waitbefore booting to the default image?
A. waitB. delayC. pauseD. default
Ans.: B
Q18. What daemon controls the syslog?
A. syslog
8/12/2019 107-101
6/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. syslogdC. logdD. sys
Ans.: B
Q19. Which of the following syslog identifiers represents the highest priority?
A. alertB. errorC. criticalD. emerg
Ans.: D
Q20. What command can be used to find the current run level?
A. runlevelB. levelC. show levelD. rlevel
Ans.: A
Q21. Which of the following syslog.conf entries would cause mail error messages tobe sent to the system console?
A. mail error consoleB. mail.err /dev/consoleC. mail. error consoleD. mail.err.console
Ans.: B
Q22. Which of the following can be used to switch your system to run level 3?
A. init 3B. rlevel 3C. level 3D. inittab 3
8/12/2019 107-101
7/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: A
Q23. You want a user's account to expire in ten days. What option used with theuseradd command will allow you to do this?
A. -eB. -uC. -dD. -t
Ans.: A
Q24. You want to find the full path of a certain command. How would you do this?
A. By using the 'where' commandB. By using the 'path' commandC. By using the 'which' command
Ans.: C
Q25. What lilo.conf parameter is used to specify what device should be mounted as
root by default?
A. rootB. driveC. mntrootD. mount
Ans.: A
Q26. Which of the following Linux packages can be used for web caching?
A. qmailB. squidC. apacheD. samba
Ans.: B
8/12/2019 107-101
8/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q27. Which of the following commands can be used to extract a tar file?
A. tar -vfB. tar -xvfC. tar -e
D. tar -v
Ans.: B
Q28. What syslog.conf facility represents login processes?
A. procB. loginC. userD. auth
Ans.: D
Q29. You want to repeat a command that began with the letters 'ab'. How would youdo this?
A. !ab
B. list abC. #abD. show ab
Ans.: A
Q30. Which of the following syslog.conf entries would cause kernel warningmessages to be sent to the system console?
A. kern.console warningB. kern.warning /dev/consoleC. kern.warning.consoleD. kern warning console
Ans.: B
Q31. You want to have the process /etc/myprocess to run when the system enters run
8/12/2019 107-101
9/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
level 2. You want the system to wait until the process completes. Which of thefollowing inittab entries would accomplish this?
A. 7:2:wait:/etc/myprocessB. 2:7:wait:/etc/myprocessC. wait:2:7:/etc/myprocess
D. wait:7:2:/etc/myprocess
Ans.: A
Q32. Which of the following can be used to change a user's home directory?
A. usermod -dB. usermod -hC. usermod -uD. usermod -c
Ans.: A
Q33. What option is used with the useradd command to specify the user's login shell?
A. -sB. -l
C. -uD. -sh
Ans.: A
Q34. What lilo.conf parameter will cause the root file system to be mounted readonly?
A. no-writeB. readC. no-rightD. read-only
Ans.: D
Q35. What is the name of the configuration file used by the syslog daemon?
8/12/2019 107-101
10/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
A. syslog.confB. syslogdC. slog.confD. system.conf
Ans.: A
Q36. Which of the following commands can be used to create a tar archive file inverbose mode?
A. tar -vB. tar -cvfC. tar -cD. tar -vf
Ans.: B
Q37. What syslog.conf facility is used to create timestamps in log files?
A. markB. stampC. timeD. tstamp
Ans.: A
Q38. What file does init processes use as its control file?
A. /etc/inittabB. /etc/procC. /etc/initD. /etc/initproc
Ans.: A
Q39. What run level represents administration mode?
A. 0B. 1C. 6
8/12/2019 107-101
11/47
8/12/2019 107-101
12/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
D. -id
Ans.: A
Q44. What command can be used to show all variables?
A. setB. varlistC. show varD. show
Ans.: A
45. You want to set a 30 second delay before your system boots to the default kernel.Which of the following command lines would do this?
A. lilo -t 30B. lilo -d 30C. lilo delay 30D. lilo 30
Ans.: B
Q46. What command can be used to print out system boot messages?
A. bootmB. bmsgC. messagesD. dmesg
Ans.: D
Q47. What syslog.conf facility represents user processes?
A. authB. procC. userD. u
Ans.: C
8/12/2019 107-101
13/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q48. You want to add information to a previously created tar file. How would you dothis?
A. Use the tar command with the -a switch
B. Use the append commandC. Use the add commandD. Use the tar command with the -r switch
Ans.: D
Q49. What syslog.conf facility represents Unix to Unix copy?
A. ucpB. copyC. uucpD. uuc
Ans.: C
Q50. What syslog.conf facility represents miscellaneous daemons?
A. miscB. procC. kernD. daemon
Ans.: D
Q51. What run level represents multi-user?
A. 3B. 0C. 1D. 5
Ans.: A
Q52. Which of the following syslog.conf entries would cause kernel error messages to
8/12/2019 107-101
14/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
be sent to the system console?
A. kern warning consoleB. kern.error consoleC. kern.warning /dev/consoleD. kern error console
Ans.: C
Q53. What option can be used with the shutdown command to send a warningmessage alerting users that the system will be shut down?
A. shutdown -kB. shutdown -wC. shutdown -aD. shutdown -c
Ans.: A
Q54. You want to have the process /etc/myprocess run when the system enters runlevel 3. Which of the following inittab entries would accomplish this?
A. 5:3:once:/etc/myprocess
B. 3:4:once:/etc/myprocessC. once:3:4:/etc/myprocessD. once:5:3:/etc/myprocess
Ans.: A
Q55. You had a contractor come into your company. You originally set his account toexpire after thirty days. You now need to change this. How can you do this?
A. usermod -eB. usermod -aC. usermod -xD. usermod -d
Ans.: A
Q56. You want there to be 3 grace days after a password expires before an account
8/12/2019 107-101
15/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
becomes disabled. How would you do this?
A. Use the useradd command with the -f switchB. Check the delay option in user adminC. Edit the user's user.conf fileD. Use the useradd command with the -d switch
Ans.: A
Q57. DNS provides ________ to IP address mappings.
A. NETBIOS nameB. host nameC. MAC address
Ans.: B
Q58. Linux is a(n) _________ operating system, meaning the source code is freelyavailable.
A. Open sourcedB. User licensedC. Closed source
D. Open binary
Ans.: A
Q59. You want to uninstall lilo. Which of the following would you do to accomplishthis?
A. lilo -uB. remove liloC. uninstall liloD. lilo -r
Ans.: A
Q60. Which of the following syslog identifiers represents the highes t priority?
A. alert
8/12/2019 107-101
16/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. errorC. criticalD. emerg
Ans.: D
Q61. You want to view a listing of previously entered commands. What commandwould you use?
A. histB. histfileC. showbuffD. history
Ans.: D
Q62. What syslog.conf facility represents kernel processes?
A. userB. procC. daemonD. kern
Ans.: D
Q63. You want to add files to a previously created tar file. You want to replace existingfiles with newer files, how can you do this?
A. Use the append commandB. Use the tar command with the -t switchC. Use the add commandD. Use the tar command with the -u switch
Ans.: D
Q64. Which of the following switches can be used with the tar command to find out thedifference between two tar files?
A. -cB. -v
8/12/2019 107-101
17/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
C. -dD. -t
Ans.: C
Q65. Which of the following syslog identifiers represents the highest priority?
A. noticeB. warningC. errorD. critical
Ans.: D
Q66. What syslog.conf facility represents the cron daemon?
A. crondB. daemonC. cronD. crontab
Ans.: C
Q67. What syslog.conf facility represents user authentication processes?
A. authB. procC. userD. login
Ans.: A
Q68. What command be used to find the systems previous run level?
A. runlevelB. levelC. rlevel previousD. show level previous
Ans.: A
8/12/2019 107-101
18/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q69. What run level represents basic multi-user?
A. 2B. 0
C. 1D. 5
Ans.: A
Q70. You have just added the following line to your syslog.conf file: lpr.info/dev/console. But, line printer messages are not being sent to the console. What ismost likely the problem?
A. after modifying the syslog.conf file, the syslog daemon needs to be restarted.B. the entry is formatted incorrectlyC. the syslog daemon reads it configuration information from the syslogd file
Ans.: A
Q71. Which of the following are required in the /etc/passwd file when creating a useraccount? (Choose all that apply)
A. login nameB. useridC. default groupD. password ageE. minimum password length
Ans.: A,B,C
Q72. What option can be used with the shutdown command to cancel a pendingshutdown?
A. shutdown -cB. shutdown -xC. shutdown -nD. shutdown -u
Ans.: A
8/12/2019 107-101
19/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q73. You want to repeat the last command you entered. How would you do this?
A. #B. !!C. #l
D. ##
Ans.: B
Q74. Do changes to the inittab file require a reboot in order to take effect?
A. NoB. Yes
Ans.: A
Q75. What switch is used with the usermod command to change a user's secondarygroups?
A. -GB. -groupC. -d
D. -U
Ans.: A
Q76. What option is used with the useradd command to specify the user's homedirectory?
A. -dB. -hC. -uD. -a
Ans.: A
Q77. What option is used with the useradd command to specify the home directory?
A. -d
8/12/2019 107-101
20/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. -qC. -fD. -a
Ans.: A
Q78. What switch is used with the usermod command to change a user's secondarygroups?
A. -GB. -groupC. -dD. -U
Ans.: A
Q79. Select all the ways of exiting and saving a vi session.
A. :wqB. :wC. :ZZD. Shift ZZE. :x
F. :exit
Ans.: A,D,E
Q80. You want to set a script to run when your Linux system reboots. What lilo optionshould you use?
A. -RB. -SC. -TD. -L
Ans.: A
Q81. What is the configuration file for the xscreensaver?
A. xscreensaver.conf
8/12/2019 107-101
21/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. .xscreensaverC. xsaver.confD. xdm-config
Ans.: B
Q82. What operation of the make utility cannot normally be performed as a normaluser?
A. mrproperB. cleanC. depD. dependsE. install
Ans.: E
Q83. What is the function of the .Xdefaults file?
A. Provides the defaults for new users X programsB. A default user X profile used as a templateC. User customizations for programsD. KDE default user configuration file
Ans.: C
Q84. What entry in the X configuration file specifies where the fonts are located for theX system?
A. FontsB. FilesC. FontPathD. Devices
Ans.: C
Q85. A user named Bob needs to execute a system script file. What rights does theuser need?
A. Read, Write and Execute for all
8/12/2019 107-101
22/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. Execute only for userC. Read-only for user, Execute for groupD. Read and Execute in the same permission set
Ans.: D
Q86. What is the entry in the XF86Config file that specifies the fonts are on the localmachine? Choose two.
A. unix/:-1B. unix/:7100C. tcp/:45D. udp/:80E. font/:-1
Ans.: A,B
Q87. What section of the XF86Config file contains the entry to set the path for fontsused?
A. FontsB. FilesC. Ttype
D. ATME. FontPath
Ans.: B
Q88. When a user executes the command "ps ax", what is shown on the console?Choose all that apply.
A. Processes user-related informationB. Processes without controlling terminalsC. Processes used by the XFree86 systemD. All regular processesE. Processes on remote machines
Ans.: B,D
Q89. To change all lower case characters in a file to upper case pick the command:
8/12/2019 107-101
23/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
A. tr 'a-z' 'A-Z' fileB. tr [a-z] [A-Z] < fileC. tr "a-z" "A-Z" fileD. tr 'a-z' 'A-Z' < fileE. tr {a-z} {A-Z} > file
Ans.: D
Q90. Which of the following commands will duplicate the contents of the /A directoryin the existing and empty directory /B?
A. mv /A/* /BB. mv /A/ /BC. mv /A /BD. mv /A/* .
Ans.: A
Q91. What will the command "kill -HUP 1354" do?
A. Kill the process 1354 destructivelyB. Kill the process 1354, allowing it to clean up
C. Restart the process, re-reading its config filesD. Restart the process, resetting its associated modem
Ans.: C
Q92. You need to have all the output from the executable myprog written to a text filenamed file1.out. No output should be sent to the console. Which of the commandslisted will accomplish this?
A. myprog > file1.out 2>&1B. myprog > file1.out 1>&2C. myprog > file1.out 1>/dev/nullD. myprog 1&2>file1.outE. myprog 1>/dev/null > file1.out
Ans.: C
8/12/2019 107-101
24/47
8/12/2019 107-101
25/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q97. On an ext2 partition what portion is reserved for the root user?
A. 100 cylindersB. No less than 500 blocksC. None
D. 5%E. 1/32nd of the total space
Ans.: D
Q98. What are the default permissions for the Red Hat /etc/passwd file?
A. 644B. 640C. 400D. 641E. 440
Ans.: A
Q99. What are the default permissions for the Red Hat /etc/shadow file?
A. 644B. 640C. 400D. 641E. 440
Ans.: C
Q100. What are the default permissions for the Debian /etc/passwd file?
A. 644B. 640C. 400D. 641E. 440
Ans.: A
8/12/2019 107-101
26/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q101. What are the default permissions for the Debian /etc/shadow file?
A. 644B. 640C. 400
D. 641E. 440
Ans.: B
Q102. Which of the following directories would be the least likely to need backing up?Choose two.
A. /usrB. /etcC. /homeD. /tmpE. /swap
Ans.: D,E
Q103. Which of the following will copy file1.txt to file2.txt? Choose two.
A. cat file1.txt > file2.txtB. cat file1.txt | file2.txtC. cp file1.txt > file2.txtD. cp file1.txt file2.txtE. cpio < file1.txt > file2.txt
Ans.: A,D
Q104. When you create a file the permissions show as 654. What value is the umasklikely set at?
A. 012B. 002C. 123D. 022
Ans.: A
8/12/2019 107-101
27/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q105. When you create a directory you see the permissions set to 600. What umaskvalue would cause this to happen?
A. 177
B. 066C. 244D. 155E. 333
Ans.: A
Q106. You need to display all files in the current directory that start with a "a" and endwith a "v", regardless of their length or use of delimiters. Choose the best answer.
A. ls a*vB. ls a.vC. ls a-vD. ls [a-v]
Ans.: A
Q107. What command with switches will display the disk utilization for all mounted filesystems?
A. dfB. vmstatC. duD. topE. free
Ans.: A
Q108. Which command will show the number of free and used inodes for yoursystem's mounted file systems?
A. du -iB. df -iC. ls -iR /D. freenodes
8/12/2019 107-101
28/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: B
Q109. Which of the commands will show you only the middle 10 lines of a 30 line textfile named textfile?
A. head -n 11-20 textfileB. head -n 20 textfile | tailC. tail -n 11-20D. cat textfile | pr -n 11-20E. nl -n 11-30 textfile
Ans.: B
Q110. Which command will display in reverse order a file that is numbered from 1 toEnd of File?
A. cat file | nl | prB. cat file | nl | tacC. cat file | tac | nlD. cat file | pr -n | reverseE. None of the above
Ans.: B
Q111. What command will show the first 10 lines of a file by default?
A. headB. catC. tacD. nlE. tail
Ans.: A
Q112. What command will show the last 10 lines of a file by default?
A. headB. psC. tac
8/12/2019 107-101
29/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
D. prstatE. tail
Ans.: E
Q113. What is the result of the following command?
# cat 'echo "$TEST
A. A syntax errorB. The value of $TESTC. cat followed by the value of $TESTD. echo followed by the value of $TESTE. echo followed by $TEST
Ans.: A
Q114. What is the result of the command:
# kill 9 13459
A. Kill PID 13459 with a signal 15B. Kill PID 13459 with a signal 1
C. Kill PID 13459 with a signal 9D. None of the above
Ans.: D
Q115. How can you execute two commands, the second one being executed only ifthe first returns a nonzero exit status?
A. command1 || command2B. command1 && command2C. command1 $$ command2D. command1 @@ command2
Ans.: A
Q116. What command will easily convert tabs in files to spaces?
8/12/2019 107-101
30/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
A. convertB. expandC. trD. sed
Ans.: B
Q117. What does the command "foo < bar | foobar" do?
A. foo reads bar as stdin, pipes output to foobarB. foo and bar are fed to foobar as stdinC. foo's output is sent to bar, output is written to foobarD. None of the above
Ans.: A
Q118. What will the command "cd ~test" do?
A. Changes directory to the user test's home directoryB. Changes to a directory named test in the current user's home directoryC. Changes to directory /etc/testD. Produces a syntax errorE. None of the above
Ans.: A
Q119. You want to move all files in /dir1 to /dir2 that begin with a and end with v. Whatis the correct command to do this?
A. mv /dir1/a*v /dir2B. mv -r /dir1/a.v /dir2C. move /dir1/a?v /dir2D. ls a*v | cp /dir2
Ans.: A
Q120. What do the following command's characters do?
# cmd > file.out 2>&1
8/12/2019 107-101
31/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
A. Sends the stdout of cmd to file.outB. Sends the stdout and stderr of cmd to file.outC. Sends the stderr to the bit bucket and stdout of cmd to file.outD. None of the above
Ans.: B
Q121. Regardless of the version of Linux, which of the following help start and stopservices on demand? Choose two.
A. xinetdB. inetdC. sambaD. nfsE. amd
Ans.: A,B
Q122. What steps need to be performed to make a new disk accessible to users?
A. fdiskB. mkfsC. mount
D. statE. quotaon
Ans.: A,B,C
Q123. When the system is mounted all file systems in the /etc/fstab are mountedexcept those with what in the option column?
A. nomountB. noautoC. noatimeD. nohup
Ans.: B
Q124. What environment variable will set the path for added libraries?
8/12/2019 107-101
32/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
A. LD_LIBRARY_PATHB. LIBPATHC. LPATHD. LIBE. None of the above
Ans.: A
Q125. What switch will set the foreground color in X?
A. fgB. foregroundC. xfgD. fregrndE. None of the above
Ans.: A
Q126. Which one of the following best describes the order in which X Window files areexecuted or read?
A. startx -> xinit -> xinitrc -> XclientsB. xinit -> startx -> xinitrc -> Xclients
C. xinitrc -> xinit -> startx -> XclientsD. Xclients -> xinit -> xinitrc -> startx
Ans.: A
Q127. Which keystrokes will move the cursor 3 lines down and 4 characters to theright?
A. 3j4lB. 3k4mC. 3h4kD. 3l4kE. 3m4k
Ans.: A
Q128. What two files are used to configure a user's environment that was created with
8/12/2019 107-101
33/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
the default options?
A. ~/.profile, ~/.bashrcB. /etc/profile, ~/.bashrcC. ~/.bash_profile, ~/.bashrcD. /etc/.login, ~/.login
E. None of the above
Ans.: C
Q129. What file is used to configure the XDM daemon?
A. xdm-configB. xdm.confC. xdmcfgD. xdaemon.confE. None of the above
Ans.: A
Q130. The screensize is already configured in X on a system. The user wants tochange this. What file should the user edit manually to accomplish this?
A. /etc/xf86configB. /usr/bin/xf86setupC. /etc/X11/XF86ConfigD. /etc/screensize
Ans.: C
Q131. When executing a command that produces output to the screen yo get an exitcode of 0. What happened?
A. The program executed properlyB. The program encountered an errorC. The program requires more inputD. The program has returned standard inputE. The program terminated with a syntax error
Ans.: A
8/12/2019 107-101
34/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q132. Which directory is used to store undelivered user email by default?
A. /var/spool/sendmail/usermailB. /var/spool/mailC. /var/spool/mailqueue
D. /var/spool/sendmail/username
Ans.: B
Q133. Which utility would be used to verify the checksum of a downloaded archivefile?
A. verifyB. chksumC. md5sumD. chkrpmE. pkgchk
Ans.: C
Q134. With a Linux 2.2 Kernel-based machine configuration of 133 MHz, 32 MB RAMand a 1 GB HD, how much swap should be configured?
A. 512 MBB. 256 MBC. 128 MBD. 64 MBE. 32 MB
Ans.: D
Q135. What is the filename including full path of the file used to configure library pathsettings for a system?
A. /usr/lib/lib.so.1B. /etc/lib.confC. /etc/ld.so.confD. /usr/lib/modules/modules.confE. None of the above
8/12/2019 107-101
35/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: C
Q136. You set a variable's value with the command "export TEST=snuffy" and thenafter executing the following script file, you type the command "echo $TEST".
scriptfile1 #!/bin/bash
USER=testmeTEST=$USER
What is the variable's value that is returned?
A. snuffyB. testmeC. emptyD. TESTE. variable undeclared
Ans.: A
Q137. A directory contains to files:
#ls
ratas saran jacaw cabal cabin
You issue the command "ls | grep .a[^b]a.", what files are returned by the command?Choose all that apply.
A. ratasB. jacawC. saranD. cabalE. cabin
Ans.: A,B,C
Q138. Which of the following will allow both the commands to execute, regardless oftheir exit status?
A. command1 | command2B. command1 $ command2
8/12/2019 107-101
36/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
C. command1 & command2D. command1 ; command2E. command1 ^ command2
Ans.: D
Q139. Which of the following will cause command2 not to execute if command1 fails?
A. command1 & command2B. command1 && command2C. command1 || command2D. command1 | command2E. command1 ; command2
Ans.: B
Q140. A user needs to search a file for lines that contain the asterisk (*) character.Which grep search command will accomplish this? Choose all that apply.
A. grep \* textfileB. grep '*' textfileC. grep "*" textfileD. grep \ textfile
E. grep "'*'" textfile
Ans.: A,B,C
Q141. You have booted a desktop Linux system and logged in. When you type "startx"a mouse error occurs almost immediately. What's the most likely cause of theproblem?
A. A reboot is neededB. The gpm malfunctioned and must be reloadedC. The wrong mouse protocol is selectedD. The wrong mouse mode is setE. A modeline is incorrectly set
Ans.: C
Q142. What line in the /etc/inittab file sets the runlevel a machine will enter when a
8/12/2019 107-101
37/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
graphical login is desired?
A. id:5:initdefaultB. si:5:sysinit:/etc/rc.d/rc.sysinitC. x:5:respawn:/etc/X11/prefdm -nodaemonD. d)# 5 - X11
Ans.: A
Q143. What environment variable is used to remotely display another machine's Xsession on yours?
A. DISPLAYB. XSESSIONC. SCREEND. TTYE. None of the above
Ans.: A
Q144. You want to configure user quotas for the /home filesystem. You've installed thequota packages. What else needs to be done to enable the filesystem's quotas?Choose all that apply.
A. Add usrquota to the /etc/fstab options columnB. Run the quotaon commandC. Run the quotacheck -avug commandD. Edit the user's quota settingsE. Remount the file system
Ans.: A,B,C,D,E
Q145. What file should you edit to exclude directories from being indexed by theslocate command?
A. /etc/slocatedb.confB. /etc/default/slocateC. /etc/slocated.confD. /etc/updatedb.confE. /etc/sysconfig/updatedb.conf
8/12/2019 107-101
38/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: D
Q146. You need to create a symbolic link in the current user's home directory namedtestdir to the file /data/foobar. Choose the command that will accomplish this.
A. link .testdir /data/foobarB. ln /data/foobar $HOME/testdirC. ln -s /data/foobar ~/testdirD. file --link ./testdir /data/foobarE. None of the above
Ans.: C
Q147. Which of the following file system types causes the least impact whenupgrading an Ext2 file system?
A. Ext3B. ReiserFSC. JFSD. XFSE. VFS
Ans.: A
Q148. What command can find the program file "bar" and its associated man pagesand any existing source files, but not return all files that have "bar" in the commandname or path?
A. whereisB. findC. locateD. aproposE. whatis
Ans.: A
Q149. According to the Filesystem Hierarchy Standard, what directory trees areconsidered optional on a system's root filesystem? Choose all that apply.
A. /mnt
8/12/2019 107-101
39/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. /rootC. /usrD. /varE. /opt
Ans.: C,D,E
Q150. What command with options will show the currently mounted filesystems usagein kilobytes?
A. df -kB. df -hC. du -kD. du -hE. du -s
Ans.: A
Q151. You need to alter the permissions on the directory /home/mrking and all itscontents to math the following permissions:
drwxr--r--
Which of these commands with options and arguments will accomplish this? Choosetwo.
A. chmod 0744 /home/mrking -RB. chmod 744 /home/mrking/*C. chmod -R u=rwx,g=r,o=r /home/mrkingD. chmod u+rwx,g+r,o+r /home/mrking
Ans.: A,C
Q152. What is the simplest and most direct command to check the integrity of an Ext2file system?
A. fsck.ext2B. fsck -t ext2C. e2fsckD. ext2fsckE. None of the above
8/12/2019 107-101
40/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: C
Q153. If a file is symlinked to with a link name of file2 and that file is deleted, whathappens to the contents of the file?
A. The contents still exist and can be reached with file2B. The contents are gone, leaving file2 orphanedC. The file can be retrieved with undelete -f file2D. File2 is another name to the original and the contents are still there
Ans.: B
Q154. Which utility on a system will report any excessive file system space remainingwith very few inodes still available?
A. fsckB. debugfsC. syncD. showfilesE. softlinks
Ans.: A
Q155. What options will allow a normal user to mount and then unmount a file systemwithout needing assistance from the root user?
A. user and users in the /etc/fstabB. user and users in the /etc/defaultC. user and users in the /etc/vfstabD. user and users in the /etc/mnttabE. usrquota and grpquota in the /etc/fstab
Ans.: A
Q156. What two things does the /etc/fstab file contain references to?
A. File SystemsB. Mount PointsC. User Options
8/12/2019 107-101
41/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
D. File System DefaultsE. File System Permissions
Ans.: A,B
Q157. Which of the following are executed ONLY during a Login session?
A. /etc/profileB. /etc/bashrcC. ~/.bashrcD. ~/.bash_profileE. ~/.bash_logout
Ans.: A,D
Q158. Which of the following are executed during a non-login shell?
A. /etc/profileB. /etc/bashrcC. ~/.bash_profileD. ~/.bashrcE. ~/.bash_logout
Ans.: B,D,E
Q159. In which file are you likely to find the global setting for the umask und ulimit?
A. /etc/profileB. /etc/bashrcC. /etc/bash_profileD. ~/.bashrcE. ~/.bash_profile
Ans.: A
Q160. In which file are you likely to find the settings for umask, path and ulimit on aper user basis?
A. /etc/profileB. /etc/bashrc
8/12/2019 107-101
42/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
C. ~/.bash_profileD. ~/.bashrc
Ans.: C
Q161. Which of the following is true about the XF86Config file? Select all that apply.
A. Can set the screen resolution settingsB. Can set the bits per pixel (color depth) settingC. Includes keyboard and mouse selectionsD. Includes information on which window manager to runE. Contains information on where fonts are located
Ans.: A,B,C,E
Q162. What is the correct syntax to remove testpackage entirely from a Debiansystem including configuration files?
A. dpkg -r testpackageB. dpkg --remove testpackageC. dpkg --kill testpackageD. dpkg -R testpackageE. dpkg --purge testpackage
Ans.: E
Q163. How do you use dpkg to verify the status of an installed package testpackage?Choose two.
A. dpkg -s testpackageB. dpkg -S testpackageC. dpkg -stat testpackageD. dpkg --stat testpackageE. dpkg --status testpackage
Ans.: A,E
Q164. Which pair of dpkg options are equivalent and what do they do?
A. -C and --configure - they reconfigure an unpackaged package
8/12/2019 107-101
43/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
B. -C and --clear - they erase existing information about what packages are availableC. -A and --audit - they update information about what packages are availableD. -C and --audit - they provide resource consumption information on installedpackagesE. -C and --audit - they search for partially installed packages
Ans.: E
Q165. Which is a valid /etc/fstab entry?
A. fs1:/proc /mnt/fs1 nfs defaults 9 9B. /mnt/fs1 fs1:/proc nfs defaults 0 0C. fs1:/home /mnt/fs1 nfs defaults 0 0D. /mnt/home fs1:/home nfs defaults 0 0E. /home:fs1 /mnt/fs1 nfs defaults 0 0
Ans.: C
Q166. What will happen when the following command is issued?
rpm -Uvh file
A. The rpm file will be verified
B. The installed package will be upgraded with the package in file, with verbose outputC. The installed package may be upgraded with the package called file, givingverbose output and hash marks to show installation progressD. An error will occur as a package specifier was not included in the command line
Ans.: C
Q167. Which of the following modems cannot be used on linux systems?
A. ISDN TAB. Cable modemsC. Analogue modemsD. PCI modemsE. Winmodems
Ans.: E
8/12/2019 107-101
44/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Q168. When partitioning a disk with more than 1024 cylinders, which of the followingcould affect the systems ability to boot?
A. Location of LILO on diskB. Location of /boot on diskC. Location of /var on disk
D. Disk transfer rateE. Disk seek time
Ans.: B
Q169. What happens when ldconfig is executed?
A. The binary index file (cache) of library locations is rebuiltB. The text index file of library locations is rebuiltC. make is run to rebuild the libraries who's source code has changedD. The disk is scanned for libraries to include in the indexE. Nothing unless the libraries have been recompiled since ldconfig was last run
Ans.: A
Q170. Where is the quota information for users of volume /home stored?
A. /etc/sysconfig/quota/quota.home.userB. /etc/quota/quota.home.userC. /home/quota.home.userD. /home/quota.userE. /home/quota.home.group
Ans.: D
Q171. What is the purpose of setting the SUID? Choose all that apply.
A. Allows any user to run an executable program with the permissions of the owner ofthe programB. Allows any user to run a program with the permissions of the group of the programC. Everyone can edit the files that are created, but only root and owner can deletethemD. To keep programs that are needed constantly in non-swappable RAME. To cause a program opened in one X virtual pane to follow the user's focus to otherpanes
8/12/2019 107-101
45/47
8/12/2019 107-101
46/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: A,C,D,E
Q176. Which command cannot normally be executed by a non-root user whencompiling an application?
A. makeB. makefileC. ./configureD. make install
Ans.: D
Q177. What is the correct format for a proper command in the shell?
A. option argument commandB. command option argumentC. argument command option
Ans.: B
Q178. What is the result of the following command?
command > file1.out 2>&1
A. Redirects stderr to file1.outB. Redirects the stderr to the same location as the stdoutC. Redirects stdout to the screen and stderr to file1.outD. Redirects all the output to the same location as the stderr
Ans.: B
Q179. What will the command "kill -HUP 1354" do? Select all that apply.
A. The same as kill -9 1354B. The same as kill 15 1354C. The same as kill -15 1354D. The same as kill -SIGHUP 1354E. The same as kill -1 1354
8/12/2019 107-101
47/47
Save Time. Save Money. Study Faster. Study Smarter. -------- www.PassITExam.com
Ans.: D,E
Q180. What would the command "rpm --allmatches rpmname" do?
A. Remove all packages named allmatches
B. Remove all packages with the package name rpmnameC. Remove all packages regardless of name
Ans.: B
Q181. Which command will output the exit status of the previous command (a 1 or a0)?
A. echo $?B. echo $1C. echo $EXITD. exitstatus
Ans.: A