Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Linux Professional Institute logo

LPI LPIC-1:Linux Administrator (101-500)

Domain 5Objective 2

105.2 Customize or Write Simple Scripts LPIC-1 Practice Questions (Page 3)

Part of the Topic 105: Shells and Shell Scripting domain, which makes up ~5% of our current practice bank. Linux Professional Institute does not publish an official question count, but from its 90-minute exam (~35–60 total, ~2–3 in this domain), expect 1–2 from this objective — we provide 30 practice questions to prepare you well beyond it. (estimate)

30questions here
6free pages
12concepts

Questions 11–15

  1. 11foundation · easy

    What is the exit status of a command that succeeds?

    Select an answer first
  2. 12foundation · easy

    Which quoting character prevents variable expansion and command substitution?

    Select an answer first
  3. 13foundation · easy

    How do you call a function named 'greet' in a shell script?

    Select an answer first
  4. 14application · medium

    A script must count down from 10 to 1 and print each number. Which loop correctly implements this?

    Select an answer first
  5. 15application · medium

    A script is failing intermittently. The administrator wants to trace each command as it executes and stop the script immediately if any command returns a non-zero exit status. Which set of shell options should be enabled at the top of the 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. “LPIC-1” is a trademark of its owner, used for identification only.