Which of the following commands can be used to create a USB storage media from a disk image?
Show answerHide answer
Correct answer: B
dd
LPIC-1 Exam 101, Part 1 of 2, version 5.0
Free 101-500 mock exam questions 21–30, each with the answer and an explanation.
20 questions · 33 minutes · free, no sign-up
Which of the following commands can be used to create a USB storage media from a disk image?
Correct answer: B
dd
In compliance with the FHS, in which of the directories are man pages found?
Correct answer: A
/usr/share/man
What is the difference between the i and a commands of the vi editor?
Correct answer: B
i (insert) inserts text before the current cursor position whereas a (append) inserts text
after the cursor.
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
Correct answer: E
rmdir ~/\\dir
What does the + symbol mean in the following grep regular expression:
grep '^d[aei]\+d$' /usr/share/dict/words
Correct answer: A
Match the preceding character set ([aei]) one or more times.
What happens after issuing the command vi without any additional parameters?
Correct answer: D
vi starts in command mode and opens a new empty file.
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Answer: jobs
Which of the following files, located in the user home directory, is used to store the Bash
history?
Correct answer: A
bash_history
Explanation:
QUESTIONNO: 26
Which Bash environment variable defines in which file the user history is stored when
exiting a Bash process? (Specify ONLY the variable name.)
Which of the following commands will print the last 10 lines of a text file to the standard output?
Correct answer: D
tail -n 10 filename
Which of the following statements is correct regarding the command foo 1> bar?
Correct answer: B
The stdout from the command foo overwrites the file bar.
Full-length mocks with the same number of questions and the same time limit as the real 101-500 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.
Get full 101-500 mock exam