The Linux Command Line

A Complete Introduction

by William Shotts

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

The Linux Command Line takes you from your very first terminal keystrokes to writing full programs in Bash, the most popular Linux shell (or command line). Along the way you'll learn the timeless skills handed down by generations of experienced, 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.

This open book is licensed under a Creative Commons License (CC BY-NC-ND). You can download The Linux Command Line ebook for free in PDF format (2.2 MB).

Table of Contents

Part 1
Learning the Shell
Chapter 1
What Is the Shell?
Chapter 2
Chapter 3
Exploring the System
Chapter 4
Manipulating Files and Directories
Chapter 5
Working with Commands
Chapter 6
Chapter 7
Seeing the World as the Shell Sees It
Chapter 8
Advanced Keyboard Tricks
Chapter 9
Chapter 10
Part 2
Configuration and the Environment
Chapter 11
The Environment
Chapter 12
A Gentle Introduction to vi
Chapter 13
Customizing the Prompt
Part 3
Common Tasks and Essential Tools
Chapter 14
Package Management
Chapter 15
Storage Media
Chapter 16
Chapter 17
Searching for Files
Chapter 18
Archiving and Backup
Chapter 19
Regular Expressions
Chapter 20
Text Processing
Chapter 21
Formatting Output
Chapter 22
Chapter 23
Compiling Programs
Part 4
Writing Shell Scripts
Chapter 24
Writing Your First Script
Chapter 25
Starting a Project
Chapter 26
Top-Down Design
Chapter 27
Flow Control: Branching with if
Chapter 28
Reading Keyboard Input
Chapter 29
Flow Control: Looping with while / until
Chapter 30
Chapter 31
Flow Control: Branching with case
Chapter 32
Positional Parameters
Chapter 33
Flow Control: Looping with for
Chapter 34
Strings and Numbers
Chapter 35
Chapter 36

Book Details

Computer Science
No Starch Press
ISBN13 Digital
ISBN10 Digital
PDF Size
2.2 MB

Book Hashtags

Related Books

Linux commands Notes for Professionals
The Linux Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow....
Bioinformatics for Evolutionary Biologists
This self-contained textbook covers fundamental aspects of sequence analysis in evolutionary biology, including sequence alignment, phylogeny reconstruction, and coalescent simulation. It addresses these aspects through a series of over 400 computer problems, ranging from elementary to research level to enable learning by doing. Students solve the ...
Linux Appliance Design
Modern appliances are complex machines with processors, operating systems, and application software. While there are books that will tell you how to run Linux on embedded hardware, and books on how to build a Linux application, Linux Appliance Design is the first book to demonstrate how to merge the two and create a Linux appliance. You'll see for ...
The book heavily leans on examples to present features of sed as well as regular expressions one by one. It is recommended that you manually type each example and experiment with them. Understanding both the nature of sample input string and the output produced is essential. You should have prior experience working with command line and bash she...
Data and Text Processing for Health and Life Sciences
This book is a step-by-step introduction on how shell scripting can help solve many of the data processing tasks that Health and Life specialists face everyday with minimal software dependencies. The examples presented in the book show how simple command line tools can be used and combined to retrieve data and text from web resources, to filter and...
Getting the Most from LINQPad Succinctly
LINQPad is a powerful testing tool for all .NET developers that can help them deliver solutions in less time. In Getting the Most from LINQPad Succinctly, returning Succinctly series author José Roberto Olivas Mendoza lays out different ways to extend the functionality built into LINQPad. In this ebook, you'll learn how to use LINQPad to query Ent...