FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Books & courses

The free Linux book to read before you SSH into a client’s server

William Shotts’s The Linux Command Line assumes no prior knowledge and covers the pipelines, processes and scripting FDEs need while a client waits on the call.

Cover of The Linux Command Line
The Linux Command Line · William E. Shotts, Jr. · Cover: Open Library
ShareLinkedInFacebookX

In brief

  • The author offers the PDF free under a Creative Commons BY-NC-ND license. The third print edition, from No Starch Press, runs to 544 pages.
  • The book is written for people who know nothing about the command line. The companion tutorial has sections on Permissions, Job Control, I/O Redirection and Expansion.
  • Four habits to keep: combine commands instead of clicking, preview what a wildcard will expand to, read file permissions before asking for sudo, and keep processes alive when SSH drops.
Before-and-after chart with three shell command rows. Expansion: rm *.log becomes echo *.log. Redirection: cmd > out.txt becomes cmd > out.txt 2>&1. Job control: ./import.sh becomes nohup ./import.sh &. In each row, the added part is highlighted in orange.
Three habits drawn from the topics in William Shotts's Learning the Shell tutorial. First, use echo to preview which files a wildcard will match. Second, add 2>&1 so the log file captures error messages too. Third, use nohup so the job keeps running if the SSH session drops.

A 596-page guide to the Linux shell is free to download from its author’s website, and it teaches a skill that FDEs tend to need at the worst moment. You have connected over SSH to a client’s virtual machine to find out why a data pipeline has stopped. The machine has none of your IDE setup or familiar aliases, and someone on the client side is waiting on the call.

How the first few minutes go depends on how fluent you are in the shell. The Linux Command Line by William Shotts teaches that foundation, and the PDF is on his site, LinuxCommand.org.

A book for people starting from zero

A review in Linux Pro Magazine notes that the book assumes no prior knowledge. It is perhaps the most readable book on the subject, according to the review, while still offering enough breadth and depth.

The publisher promises more: a complete course in how Linux really works. The book covers file system navigation, pipelines, processes, Vim and shell scripting.

Its limits are clear too. Shotts says that Adventures with the Linux Command Line, a supplement to the book, is no system administration manual, just a collection of interesting topics such as Midnight Commander, terminal multiplexers, AWK, Vim and SQL.

For an FDE, reading logs, moving files and running jobs come first. Deeper server operations can be learned later from other sources.

Four habits to keep after you close the book

Combine commands instead of clicking. The Learning the Shell tutorial opens by observing that graphical interfaces are useful for many tasks but not suited to all of them. On a client site, that point becomes very concrete.

Take a hypothetical case in which the client reports a full disk. You type df -h to see which partition is full, then du -sh /var/log/* | sort -h | tail -5 to list the five largest log directories. Two commands, and you have an answer while still on the call.

Preview what the shell will make of your command. I/O Redirection and Expansion are two of the tutorial’s ten sections, and both can cause expensive mistakes on someone else’s machine. To send a log to a teammate, cmd > result.txt 2>&1 writes both output and errors to one file. Leave out 2>&1 and the file you send may be missing the very line that reports the error.

Expansion is more dangerous. Before running rm with a wildcard on a client’s machine, run echo with the same wildcard to see which files it will match.

Read file permissions before asking for sudo. Permissions is another section of the tutorial. When you hit “Permission denied” in a client’s data directory, read ls -l to see which user and group own the file before you ask for help. Put a well-aimed question to the client’s IT team and they will respect you more.

Keep processes alive when SSH drops. Job Control rescues you when the SSH session dies in the middle of an import. The safest approach is to detach the command from the session at the start, for example with nohup ./import.sh > import.log 2>&1 &, then follow it with tail -f import.log.

If you have already started it in the foreground, press Ctrl+Z, type bg, then disown. For work that takes hours, opening tmux first is a good habit; terminal multiplexers are also among the topics in Adventures.

What order should you read it in?

If you are new to the command line, or an engineer used to working on macOS and in an IDE, start with the ten sections of Learning the Shell. Type every command on a clean virtual machine as you read.

Then read the book for depth, leaving Adventures until last, when the basic commands have become reflexes. If you already write bash scripts every day, skim it and stop only at the chapters where you still hesitate at the keyboard.

When reading FDE job ads, check whether the work takes place on the client’s infrastructure. If it does, shell skills are worth proving. Replace “proficient in Linux” on your CV with a specific incident: whose machine it was, what you typed and how long it took.

Are you ready to SSH into a client’s machine?

Try these three questions before looking at the answers, then run them on a virtual machine.

Question one: what is the difference between cmd 2>&1 > out.txt and cmd > out.txt 2>&1? Answer: the shell reads redirections from left to right. In the first form, errors are pointed at wherever output is going at that moment, which is the screen, so the file contains only output. The second form captures both in the file.

Question two: in a directory containing a.tmp, b.tmp and config.yaml, what does echo rm *.tmp print? Answer: rm a.tmp b.tmp. If the printed line includes a file you do not want to lose, you have just avoided an incident.

Question three: a script has been running in the foreground for 40 minutes and the network is unstable. How do you avoid losing the job if the SSH session drops? Answer: Ctrl+Z, bg, disown. The most common mistake is to press Ctrl+C by reflex, which throws away all 40 minutes of work.

If you can answer all three fluently, you have the foundation the book promises. If you stumble, go back to the matching section of the tutorial.

Before you download or buy

The free version on LinuxCommand.org is the Seventh Internet Edition, 596 pages long and released under a Creative Commons BY-NC-ND license. The third print edition from No Starch Press has 544 pages, with ISBN 9781718504523, and the publisher says it includes nearly 40 pages of new content.

Release dates vary by format: Apple Books lists the ebook as February 17, 2026, while Penguin Australia lists the paperback as March 3, 2026. Either version will do, as long as you type the commands on a virtual machine before you have to type them on a client’s.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
6 sources
Read next on the roadmap · Stage 1: FoundationsThe free Anthropic course FDEs can teach to client usersIn about three hours, AI Fluency's Delegation and Diligence give a vocabulary, usable with any model, for what to hand an agent and who answers when it errs.