Guaranteed of LX0-103 test question materials and training tools for CompTIA certification for candidates, Real Success Guaranteed with Updated LX0-103 pdf dumps vce Materials. 100% PASS CompTIA Linux+ [Powered by LPI] 1 exam Today!
Q41. CORRECT TEXT - (Topic 3)
Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)
Answer: mkdir, /usr/bin/mkdir
Q42. - (Topic 2)
Which of the following environment variables overrides or extends the list of directories holding shared libraries?
A. LD_LOAD_PATH
B. LD_LIB_PATH
C. LD_LIBRARY_PATH
D. LD_SHARE_PATH
E. LD_RUN_PATH
Answer: C
Q43. - (Topic 3)
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
A. fmt -f 1,4 /etc/passwd
B. split -c 1,4 /etc/passwd
C. cut -d : -f 1,4 /etc/passwd
D. paste -f 1,4 /etc/passwd
Answer: C
88. - (Topic 3)
When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While/tmp/file contains data, why is /tmp/file empty afterwards?
A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
B. The command sed did not match anything in that file therefore the output is empty.
C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.
D. Redirection for shell commands do not work using the > character. It only works using the | character instead.
Answer: C
Q44. - (Topic 3)
Which of the following commands can be used to create a USB storage media from a disk image?
A. gdisk
B. dd
C. cc
D. fdisk
E. mount
Answer: B
Q45. - (Topic 1)
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
A. shutdown -R 1 now
B. shutdown -single now
C. init 1
D. telinit 1
E. runlevel 1
Answer: C,D
Q46. CORRECT TEXT - (Topic 2)
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
Answer: menu.lst, grub.conf, grub.cfg
Q47. - (Topic 3)
What is the output of the following command?
echo "Hello World" | tr -d aieou
A. Hello World
B. eoo
C. Hll Wrld
D. eoo Hll Wrld
Answer: C
Q48. - (Topic 3)
In compliance with the FHS, in which of the directories are man pages found?
A. /usr/share/man
B. /opt/man
C. /usr/doc/
D. /var/pkg/man
E. /var/man
Answer: A
Q49. - (Topic 1)
Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)
A. 0
B. 1
C. 3
D. 5
E. 6
Answer: A,E
Topic 2, Linux Installation and Package Management
Q50. - (Topic 3)
In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
A. By using the command :repeat followed by the number and the command.
B. By specifying the number right in front of a command such as 4l or 2yj.
C. By selecting all affected lines using the shift and cursor keys before applying the command.
D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.
Answer: B