EmbeddedRelated.com
Books
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
21days 00hrs 47min 43sec
Learn More →

The Linux Command Line: A Complete Introduction

William E. Shotts Jr. ● 2012

You've experienced the shiny, point-and-click surface of your Linux computer—now dive below and explore its depths with the power of the command line.

The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell. Along the way you'll learn the timeless skills handed down by generations of gray-bearded, mouse-shunning gurus: file navigation, environment configuration, command chaining, pattern matching with regular expressions, and more.

In addition to that practical knowledge, author William Shotts reveals the philosophy behind these tools and the rich heritage that your desktop Linux machine has inherited from Unix supercomputers of yore.

As you make your way through the book's short, easily-digestible chapters, you'll learn how to:

  • Create and delete files, directories, and symlinks
  • Administer your system, including networking, package installation, and process management
  • Use standard input and output, redirection, and pipelines
  • Edit files with Vi, the world's most popular text editor
  • Write shell scripts to automate common or boring tasks
  • Slice and dice text files with cut, paste, grep, patch, and sed

Once you overcome your initial "shell shock," you'll find that the command line is a natural and expressive way to communicate with your computer. Just don't be surprised if your mouse starts to gather dust.


Why Read This Book

You will gain the practical command-line skills to work efficiently on Linux hosts and embedded Linux targets—navigating filesystems, composing pipelines, and automating tasks with Bash. The book teaches real-world techniques (text processing, SSH, scripting) that save time when building, debugging, and deploying firmware and Linux-based devices.

Who Will Benefit

Firmware and embedded engineers, system integrators, and developers who use Linux toolchains or manage embedded Linux devices and need to automate workflows or debug systems from the shell.

Level: Beginner — Prerequisites: None — suitable for complete beginners who are comfortable using a PC; access to a Linux terminal (native or VM) is recommended.

Get This Book

Key Takeaways

  • Navigate the filesystem and manage files and permissions efficiently with core utilities (ls, cp, mv, chmod, find).
  • Compose pipelines and use redirection to combine commands and process data streams.
  • Write maintainable Bash scripts using variables, conditionals, loops, and functions.
  • Use grep, sed, and awk to search, filter, and transform text such as build logs and device output.
  • Automate remote tasks and deployments using ssh, scp (and patterns useful for embedded device workflows).
  • Customize the shell environment and write one-liners to diagnose processes, logs, and system state.

Topics Covered

  1. Introduction: Why the Command Line?
  2. Getting Started with the Shell
  3. Navigation and File Management
  4. Working with Text and Editors
  5. Permissions, Processes, and Job Control
  6. Redirection, Pipes, and Command Chaining
  7. Wildcards, Globbing, and Regular Expressions
  8. Text Processing with grep, sed, and awk
  9. Shell Scripting Basics: Variables and Control Flow
  10. Functions, Script Organization, and Debugging
  11. Working with Remote Systems and Tools (ssh, scp)
  12. Customizing Your Environment and Advanced Bash Features
  13. Appendices: Cheat Sheets and Reference

Languages, Platforms & Tools

BashPOSIX shell (sh)Linux desktop/serverEmbedded Linux distributions (Yocto/Buildroot-based systems)bashcoreutils (ls, cp, mv, find)grepsedawksshscptarmake (brief mentions)

How It Compares

More tutorial-oriented and beginner-friendly than O'Reilly's Learning the bash Shell, and more comprehensive as a learning resource than the concise Linux Pocket Guide, making Shotts a better starting point for novices.

Related Books

Bryant, Randal, O'Hallaron,...