CompTIA · Linux+ XK0-006
Shell operations
Linux+ XK0-006 · Lesson 6 of 28 · 38:16
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: environment variables, absolute and relative paths, shell startup files, redirection and pipes, here documents and here strings, tee and xargs, text tools (grep, sed, awk, cut, sort, uniq, wc), history, aliases, and the vi, vim, and nano editors, with Pinecrest Media, a fictional video streaming company, as the running example. Includes three original practice questions.
Preview the topics
- An admin defines an alias for a long rsync command, and wants it in every new interactive terminal that opens on the desktop of a jump host. Which file should hold the alias?
- A nightly job must add both its normal output and its error messages to the end of a log file, without replacing what is already there. Which redirection does that?
- The web team wants to know how many requests each IP address sent, from an access log where the address is the first field of every line. Which pipeline gives the right counts?