
LPI Linux Essentials (010-160)
Domain 3Objective 3
3.3 Turning Commands into a Script (weight: 4) LINUX-ESSENTIALS Practice Questions (Page 4)
Part of the Topic 3: The Power of the Command Line domain, which makes up ~16% of our current practice bank. Linux Professional Institute does not publish an official question count, but from its 60-minute exam (~25–40 total, ~4–6 in this domain), expect 1–2 from this objective — we provide 36 practice questions to prepare you well beyond it. (estimate)
36questions here
8free pages
9concepts
Questions 16–20
- 16
Which of the following correctly captures the output of the 'date' command into a variable named 'today'?
Select an answer first - 17
What is the purpose of command substitution in a shell script?
Select an answer first - 18
In a Bash script, which keyword is used to start a conditional block that executes commands only if a condition is true?
Select an answer first - 19
A junior admin at a marketing firm creates a script to automate daily report generation. The script must be run by other team members who are not familiar with the command line. The admin writes the script with a shebang line and saves it as 'daily_report.sh'. What additional step is required so that team members can run it by typing './daily_report.sh'?
Select an answer first - 20
A user has a script named 'backup.sh' in their home directory. They want to run it from any directory without typing the full path. The script is executable. What should they do?
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. “LINUX-ESSENTIALS” is a trademark of its owner, used for identification only.