
LPI BSD Specialist
Domain 5Objective 6
715.6 Customize or Write Simple Scripts (weight: 2) BSD-SPECIALIST Practice Questions (Page 1)
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 23 practice questions to prepare you well beyond it. (estimate)
23questions here
5free pages
10concepts
Questions 1–5
- 1
A team maintains a shared shell script. New team members often misunderstand the purpose of a complex awk command inside the script. Which action best improves the script's maintainability without changing its behavior?
Select an answer first - 2
Which special parameter in a shell script contains the exit status of the last executed command?
Select an answer first - 3
A script must check whether a file exists and is readable. If it is readable, the script should process it. If not, it should print an error and exit with status 2. The script must also handle the case where the file does not exist. Which condition correctly distinguishes all three cases?
Select an answer first - 4
Which shell construct is used to execute a block of code only if a condition is true?
Select an answer first - 5
Which character begins a comment in a shell script?
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.