The Linux Command Line – Free Book, PDF Download & Persian Translation
The Linux Command Line by William Shotts is a free, beginner-friendly book that teaches the Linux shell, Bash scripting and everyday system administration. This site hosts its Persian translation by Mohammad Mehdinejad, published with the author’s permission, which you can download as a free PDF or read online. The original English edition is available at linuxcommand.org.
What is The Linux Command Line about?
The command line is the most powerful way to work with Linux: a few commands can manage files, install software, inspect the network and automate repetitive work. This book teaches that skill from the ground up. It starts with the shell and file-system navigation, moves on to permissions, processes, environment configuration and everyday tools, and finishes with shell scripting.
Book details
- Title
- The Linux Command Line
- Persian title
- خط فرمان لینوکس
- Author
- William Shotts
- Persian translator
- Mohammad Mehdinejad
- Language of this edition
- Persian
- Edition
- First edition
- License
- CC BY-NC-ND 3.0
- Format
- PDF and online version
- Price
- Free
Table of contents of The Linux Command Line
The book is organized into four parts, each covering a key area of working with the command line:
- Part 1 – Learning the ShellShell basics, navigating the file system, exploring the system, managing files, permissions, processes and I/O redirection.
- Part 2 – Configuration & the EnvironmentEnvironment variables, the vi(m) editor and customizing the shell prompt.
- Part 3 – Common Tasks & Essential ToolsPackage management, networking, searching, archiving, regular expressions, text processing, printing and compiling.
- Part 4 – Writing Shell ScriptsWriting scripts, conditionals and loops, functions, arrays, debugging and positional parameters.
Who is this book for?
If you want to feel at home in the terminal, the book starts at beginner level and is useful for:
- Computer science and IT students
- New Linux users
- System and network administrators
- Developers
- Open source enthusiasts
Why read The Linux Command Line?
Start from zero
No Linux background needed; general computer literacy is enough.
Examples and exercises
Every chapter pairs explanations with real-world examples you can try immediately.
Complete Bash coverage
Part four covers shell scripting: conditionals, loops, functions, arrays and debugging.
Free and legal
Published with the author’s permission under the CC BY-NC-ND 3.0 license.
How to learn the Linux command line with this book
- Prepare a Linux environment: install Ubuntu or another distribution, use a virtual machine, or WSL on Windows.
- Download the PDF or open the online version and start with Part 1.
- Run every command in a terminal as you read; practice beats passive reading.
- Review with the guides on Linux permissions and the Vim editor.
- Finish with Bash scripting and automate your own repetitive tasks.
License and copyright
The Persian translation is published with the author’s permission under the Creative Commons Attribution–NonCommercial–NoDerivatives 3.0 license (CC BY-NC-ND 3.0). Non-commercial sharing with attribution is allowed; selling the book or creating derivative works without the author’s permission is not. You can also read the English original at linuxcommand.org.
Linux tutorials & guides
Bash Scripting Tutorial
Complete Bash scripting tutorial for Linux. Learn variables, conditionals, loops, functions, arrays, error…
Essential Linux Commands
Complete and simple guide to essential Linux commands including navigation, file management, permissions,…
Linux Networking
Complete and simple guide to Linux networking concepts and key commands including ip, ping, netstat, ssh, scp, and…
Package Management in Linux
Complete guide to package management in Linux with apt, yum, dnf, and pacman. Install, remove, update, and search…
Permissions Management in Linux
Complete guide to permissions management in Linux including chmod, chown, chgrp, numeric and symbolic permissions,…
Vim Editor Tutorial
Complete Vim editor tutorial for Linux including modes (Normal, Insert, Visual), navigation, editing, search,…
Frequently asked questions about The Linux Command Line
Start learning the Linux command line today
Download the free PDF or read the book online.