First Edition 1.0

The Linux Command Line

Free book by William Shotts · PDF download, online reading and Persian translation

William Shotts

Translated by Mohammad Mehdinejad
The Linux Command Line book cover – Persian translation of William Shotts' classic
FreeCC BY-NC-ND 3.0PDF · OnlineBash · Vim · SSH

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 Shell
    Shell basics, navigating the file system, exploring the system, managing files, permissions, processes and I/O redirection.
  • Part 2 – Configuration & the Environment
    Environment variables, the vi(m) editor and customizing the shell prompt.
  • Part 3 – Common Tasks & Essential Tools
    Package management, networking, searching, archiving, regular expressions, text processing, printing and compiling.
  • Part 4 – Writing Shell Scripts
    Writing 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

  1. Prepare a Linux environment: install Ubuntu or another distribution, use a virtual machine, or WSL on Windows.
  2. Download the PDF or open the online version and start with Part 1.
  3. Run every command in a terminal as you read; practice beats passive reading.
  4. Review with the guides on Linux permissions and the Vim editor.
  5. 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

Where can I download The Linux Command Line book for free?
The original English edition is free at linuxcommand.org. On this site you can download the free Persian-translation PDF with the “Download PDF” button, or read it online at linuxcommandline.ir.
Is The Linux Command Line free?
Yes. The book is released under the CC BY-NC-ND 3.0 license, and this Persian translation was published with the author’s permission. Commercial use and derivative works require the author’s consent.
Who wrote it and who translated the Persian edition?
The Linux Command Line was written by William Shotts. The Persian translation is by Mohammad Mehdinejad; the current release is the first edition.
Do I need Linux experience to start?
No. Basic computer literacy is enough; the book explains the shell and Linux concepts from the ground up.
Does the book teach Bash scripting?
Yes. Part four is devoted to writing shell scripts: conditionals, loops, functions, arrays, debugging and positional parameters.
What is in the table of contents?
Four parts: Learning the Shell, Configuration and the Environment, Common Tasks and Essential Tools, and Writing Shell Scripts. See the details on this page.
Is it useful for system administrators and developers?
Yes. Beyond the basics it covers package management, networking, regular expressions, text processing, archiving and backup, and compiling software.
How is this site different from the original English book?
The English original is published by William Shotts at linuxcommand.org. This site provides the Persian translation plus complementary tutorials on Bash, Vim, networking and permissions.

Start learning the Linux command line today

Download the free PDF or read the book online.