CompTIA LX0-101 Dumps and Practice Tests

CompTIA Linux+ [Powered by LPI] Exam 1: LX0-101 Exam

  • LX0-101 Questions & Answers
  • Exam Code: LX0-101
  • Exam Name: CompTIA Linux+ [Powered by LPI] Exam 1
  • Updated: February 2, 2012
  • Q & A: 383 Q&As

1.You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?
A. mount /dev/cdrom /mnt/cdrom
B. mount/dev/cdrom
C. mount -t cdrom /dev/cdrom /mnt/cdrom
D. mount /mnt/cdrom
E. automount /mnt/hdd /mnt/cdrom
Answer: D

2.With Xorg 7.0, what is the name of the default font server?
A. xfserv
B. xfs
C. fonts
D. xfstt
E. fserv
Answer: B

3.Which command (without options) would you use to display how much space is available on all mounted partitions?
Answer: /BIN/DF

4.What command with all options and/or parameter will send the signal USR1 to any executing process of program apache2?
Answer: KILLALL-SUSR1APACHE2

5.The command echo $! will produce what output?
A. the process id of last background command
B. the exit status of the last command
C. the exit status of the last background command
D. the process id of the current shell
E. the name of the command being executed
Answer: A

6.You are using quota on your system. How can you see disk quota details?
A. repquota
B. quotA. I
C. quota
D. quotacheck
E. quotA. list
Answer: A

7.What is the difference between thE.remove and thE.purge action with the dpkg command?
A. -remove removes the program, -purge also removes the config files
B. -remove only removes the program, -purge only removes the config files
C. -remove removes a package, -purge also removes all packages dependent on it
D. -remove removes only the package file itself, -purge removes all files related to the package
Answer: A

8.What application can be used in place of xhost? Please enter only the name without path.
Answer: XAUTH

9.You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?
A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed, bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed.
Answer: B

10.Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?
A. tr '\r\n' " < userlist.txt > newlist.txt
B. tr -c '\n\r' " < newlist.txt > userlist.txt
C. tr -d \r ˉ < userli st.t xt > newli st.t xt
D. tr \r ˉ \n ˉ userli st.t xt newli st.t xt
E. tr -s ?^ M' ??^J' userl ist. txt n ewl ist. tx
Answer: C

11.You wish to kill a process with a PID of 123. Select the command which exiting.
A. kill-1 123
B. kill-9 123
C. kill-15 123
D. kill-17 123
Answer: C

12.Using vi, you want to save changes to the file myfile with :w!, but vi complains it cannot write to the file.
Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:
A. :!ls-I myfile
B. :\ls-l myfile
C. esc :Is -I myfile
D. :?ls-l myfile
Answer: A

13.Which of these commands allows you to use shared libraries that are in /usr/local/lib?
A. export LD_PRELOAD=/usr/local/lib
B. export LD_LIBRARY_PATH=/usr/local/lib
C. Idconfig /usr/local/lib
D. Idd/usr/local/lib
Answer: B

14.You are looking for an executable file foo. Select the command that would search forfoo within directories set in the shell variable, PATH.
A. locate
B. which
C. find
D. query
E. whereis
Answer: B

15.What does the Filesystem Hierarchy Standard enable? (Select TWO answers)
A. software to predict the location of installed files and directories
B. software to predict the ownership and access rights to files and directories
C. users to predict the location of installed files and directories
D. users to predict how the filesystem should be formatted according to need
Answer: A, C

16.Which program finds only files that are in your PATH?
Answer: /USR/BINyWHICH

17.To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which option need to be added to the corresponding line in /etc/fstab?
A. nouidchk
B. alluser
C. user
D. auto
Answer: C

18.Given the following output:
prompt> myapp
[1]+ Stopped myapp
prompt>
Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?
A. bg myapp
B. continue myapp
C. exec myapp
D. fg myapp
E. myapp &
Answer: A

19.In xorg.conf, which section is concerned with fonts?
A. the Fonts section
B. the Files section
C. the xfsCodes section
D. the Graphics section
E. the modeline section
Answer: B

20.What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
A. cut -d: -f 1,3 /etc/passwd
B. chop -c 1,3 /etc/passwd
C. tac 1-3/etc/passwd
D. fmt -u /etc/passwd
Answer: A

21.You have run out of disk space on a partition. Which of the following would be an easy way to move data to a new partition without reconfiguring the path to the data in existing applications?
A. Run ext2fs ACL.
B. Use a hard link.
C. Use a symbolic link.
D. Use the loopback device.
E. Create a block device offset.
Answer: C
1.You have just added a CD.ROM drive (/dev/hdd) to your system and have added it to yourfstab. Typically you can use which of the following commands to mount media in that drive to /mnt/cdrom?
A. mount /dev/cdrom /mnt/cdrom
B. mount/dev/cdrom
C. mount -t cdrom /dev/cdrom /mnt/cdrom
D. mount /mnt/cdrom
E. automount /mnt/hdd /mnt/cdrom
Answer: D

2.With Xorg 7.0, what is the name of the default font server?
A. xfserv
B. xfs
C. fonts
D. xfstt
E. fserv
Answer: B

3.Which command (without options) would you use to display how much space is available on all mounted partitions?
Answer: /BIN/DF

4.What command with all options and/or parameter will send the signal USR1 to any executing process of program apache2?
Answer: KILLALL-SUSR1APACHE2

5.The command echo $! will produce what output?
A. the process id of last background command
B. the exit status of the last command
C. the exit status of the last background command
D. the process id of the current shell
E. the name of the command being executed
Answer: A

6.You are using quota on your system. How can you see disk quota details?
A. repquota
B. quotA. I
C. quota
D. quotacheck
E. quotA. list
Answer: A

7.What is the difference between thE.remove and thE.purge action with the dpkg command?
A. -remove removes the program, -purge also removes the config files
B. -remove only removes the program, -purge only removes the config files
C. -remove removes a package, -purge also removes all packages dependent on it
D. -remove removes only the package file itself, -purge removes all files related to the package
Answer: A

8.What application can be used in place of xhost? Please enter only the name without path.
Answer: XAUTH

9.You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?
A. foo and bar would both be removed.
B. foo would be removed while bar would remain accessible.
C. foo would be removed, bar would still exist but would be unusable.
D. Both foo and bar would remain accessible.
E. You would be asked whether bar should be removed.
Answer: B

10.Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?
A. tr '\r\n' " < userlist.txt > newlist.txt
B. tr -c '\n\r' " < newlist.txt > userlist.txt
C. tr -d \r ˉ < userli st.t xt > newli st.t xt
D. tr \r ˉ \n ˉ userli st.t xt newli st.t xt
E. tr -s ?^ M' ??^J' userl ist. txt n ewl ist. tx
Answer: C

11.You wish to kill a process with a PID of 123. Select the command which exiting.
A. kill-1 123
B. kill-9 123
C. kill-15 123
D. kill-17 123
Answer: C

12.Using vi, you want to save changes to the file myfile with :w!, but vi complains it cannot write to the file.
Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:
A. :!ls-I myfile
B. :\ls-l myfile
C. esc :Is -I myfile
D. :?ls-l myfile
Answer: A

13.Which of these commands allows you to use shared libraries that are in /usr/local/lib?
A. export LD_PRELOAD=/usr/local/lib
B. export LD_LIBRARY_PATH=/usr/local/lib
C. Idconfig /usr/local/lib
D. Idd/usr/local/lib
Answer: B

14.You are looking for an executable file foo. Select the command that would search forfoo within directories set in the shell variable, PATH.
A. locate
B. which
C. find
D. query
E. whereis
Answer: B

15.What does the Filesystem Hierarchy Standard enable? (Select TWO answers)
A. software to predict the location of installed files and directories
B. software to predict the ownership and access rights to files and directories
C. users to predict the location of installed files and directories
D. users to predict how the filesystem should be formatted according to need
Answer: A, C

16.Which program finds only files that are in your PATH?
Answer: /USR/BINyWHICH

17.To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which option need to be added to the corresponding line in /etc/fstab?
A. nouidchk
B. alluser
C. user
D. auto
Answer: C

18.Given the following output:
prompt> myapp
[1]+ Stopped myapp
prompt>
Which of the following commands will resume executing the stopped process while allowing the user to continue to type commands at the command prompt?
A. bg myapp
B. continue myapp
C. exec myapp
D. fg myapp
E. myapp &
Answer: A

19.In xorg.conf, which section is concerned with fonts?
A. the Fonts section
B. the Files section
C. the xfsCodes section
D. the Graphics section
E. the modeline section
Answer: B

20.What command will print a list of usernames (first column) and their corresponding user id (uid, third column) from /etc/passwd?
A. cut -d: -f 1,3 /etc/passwd
B. chop -c 1,3 /etc/passwd
C. tac 1-3/etc/passwd
D. fmt -u /etc/passwd
Answer: A

21.You have run out of disk space on a partition. Which of the following would be an easy way to move data to a new partition without reconfiguring the path to the data in existing applications?
A. Run ext2fs ACL.
B. Use a hard link.
C. Use a symbolic link.
D. Use the loopback device.
E. Create a block device offset.
Answer: C

Try CompTIA LX0-101 Dumps and Practice Tests Now http://www.lead2pass.com/lx0-101.html