
LPI BSD Specialist
Domain 5Objective 5
715.5 Perform Basic File Editing Operations (weight: 2) BSD-SPECIALIST Practice Questions (Page 6)
Part of the Topic 715: Basic Unix Skills domain, which makes up ~20% of our current practice bank. Linux Professional Institute does not publish an official question count, but from its 90-minute exam (~35–60 total, ~7–12 in this domain), expect 1–2 from this objective — we provide 32 practice questions to prepare you well beyond it. (estimate)
32questions here
7free pages
6concepts
Questions 26–30
- 26
An admin is editing a script and needs to find all occurrences of the word 'localhost' and replace them with '127.0.0.1' throughout the entire file. They are currently in command mode. What is the correct command to perform a global substitution?
Select an answer first - 27
A user has made several changes to a file in vi but now wants to exit without saving any of the changes. They are currently in command mode. What command should they use?
Select an answer first - 28
An admin is editing a system configuration file that is read-only. They need to make a change but do not want to change the file permissions. What is the best way to save their changes?
Select an answer first - 29
A user is editing a file in vi and has made several changes. They want to exit vi and discard all changes. They are currently in insert mode. What should they do?
Select an answer first - 30
A developer is editing a long source code file in vi and needs to move to the beginning of the current line to insert a comment. They are currently in command mode with the cursor in the middle of the line. What is the most efficient way to move to the start of the line and insert text before the first character?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Linux Professional Institute. “BSD-SPECIALIST” is a trademark of its owner, used for identification only.