Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
CompTIA logo

CompTIALinux+

Domain 1Objective 5

Shell Operations XK0-006 Practice Questions (Page 1)

Part of the System Management domain, which accounts for 23% of the XK0-006 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~8–14 in this domain), expect 1–2 from this objective — we provide 14 practice questions to prepare you well beyond it. (estimate)

14questions here
3free pages
8concepts
23%of the exam

Questions 1–5

  1. 1foundation · easy

    Which command sets an environment variable named `MYVAR` to the value `hello` for the current shell session?

    Select an answer first
  2. 2foundation · easy

    Which symbol is used to redirect the contents of a file as standard input to a command?

    Select an answer first
  3. 3application · easy

    A developer needs to temporarily change the default text editor used by git to nano for the current session only, without affecting other terminals or future sessions. Which command should the developer run?

    Select an answer first
  4. 4expert · hard

    A system administrator notices that a custom script located in /usr/local/bin is not found when run by a non-login shell (e.g., a script invoked from cron). The admin confirms /usr/local/bin is in the PATH for interactive shells. What is the most likely reason and the correct fix?

    Select an answer first
  5. 5application · medium

    An admin runs a script that produces verbose output. The admin wants to save the output to a log file while still seeing it on the screen, and also wants to capture any error messages. Which command accomplishes this?

    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 CompTIA. “XK0-006” is a trademark of its owner, used for identification only.