Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
CompTIA · Linux+ XK0-006

Shell scripting

Linux+ XK0-006 · Lesson 22 of 28 · 2:59:38

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

In this lesson

Prepare for the Linux+ XK0-006 exam (CompTIA Linux+ V8). In this lesson: script basics and the shebang, variables and exit codes, parameter expansion, command substitution, and subshells, IFS and OFS, conditions and the test command, numeric and string comparisons, case and regular expressions, loops, and functions, with Pinecrest Media, a fictional video streaming company, as the running example. Includes three original practice questions.

Preview the topics
  • A script runs a backup command, then must report whether it worked. Which value holds the result of that command?
  • A report must show the user name and the user ID of each line of /etc/passwd, separated by a comma. Which awk command fits?
  • A deployment script must wait until the catalog web server answers, and try again every five seconds. Which loop fits?