A Complete Introduction
William Shotts

#Linux
#Command_Line
🖱️ ماوس رو بذار کنار.
📖 خط فرمان لینوکس (The Linux Command Line) صرفاً یک کتاب مرجع ساده نیست؛ بلکه یک آموزش کامل درباره اینه که لینوکس واقعاً چطور کار میکنه. از اولین کدهایی که با احتیاط وارد میکنی تا نوشتن اسکریپتهای قدرتمند شل، تو اینجا اعتمادبهنفس و درکی پیدا میکنی که بتونی سیستم رو برای خودت شخصیسازی کنی.
🚀 حالا در ویرایش سوم، این راهنمای پرفروش بهطور کامل با مثالهای مدرن بهروز شده و نزدیک به ۴۰ صفحه محتوای جدید و اسکریپتهای قابل دانلود از LinuxCommand بهش اضافه شده. این کتاب که در بیش از هزار کلاس درس و کتابخانه در سراسر جهان استفاده میشه، به بیش از ۱۵۰,۰۰۰ خواننده کمک کرده تا در استفاده از لینوکس به تسلط و اعتمادبهنفس برسن.
✍️ نویسنده و استاد خط فرمان، ویلیام شاتس (William Shotts)، نهفقط دستورات، بلکه بینش واقعی رو بهت منتقل میکنه. اون از فلسفه خودش پیروی میکنه: «همه چیز رو تا حد ممکن ساده کن، اما نه سادهتر از اون چیزی که هست.»
💡 توی فصلهای کوتاه و قابلفهم این کتاب، یاد میگیری که:
🔹 در سیستمفایل ناوبری کنی، فایلها رو مدیریت کنی و محیط کارت رو پیکربندی کنی.
🔹 دستورات رو به هم متصل کنی، ورودی/خروجی رو تغییر مسیر بدی و از عبارتهای باقاعده (Regular Expressions) استفاده کنی.
🔹 فرآیندها رو کنترل کنی، پکیجها رو مدیریت کنی و با ابزارهای شبکه کار کنی.
🔹 متنها رو با ویم (Vim) ویرایش کنی.
🔹 برای خودکارسازی کارها و ساختن ابزارهای اختصاصی، اسکریپتهای شل بنویسی.
🔹 از ابزارهای اصلی مثل grep، cut، sed و tar برای پردازش دادهها استفاده کنی.
🔹 سیستمفایلها رو مدیریت کنی و برنامهها رو از سورس کد کامپایل کنی.
✅ چه در حال مدیریت سرور باشی، چه در حال مطالعه امنیت سایبری و چه صرفاً کنجکاو درباره کامپیوترت، کتاب The Linux Command Line بهت دانشی میده که با اطمینان کامل به سیستمت فرمان بدی.
📋 فهرست مطالب
بخش اول: یادگیری شل
۱. شل چیست؟
۲. ناوبری
۳. گشتوگذار در سیستم
۴. کار با فایلها و دایرکتوریها
۵. کار با دستورات
۶. تغییر مسیر (Redirection)
۷. دیدن دنیا از نگاه شل
۸. ترفندهای پیشرفته کیبورد
۹. مجوزها (Permissions)
۱۰. فرآیندها
بخش دوم: پیکربندی و محیط سیستم
۱۱. محیط سیستم (The Environment)
۱۲. مقدمهای آرام بر ویم (vi/m)
۱۳. شخصیسازی خط فرمان
بخش سوم: کارهای رایج و ابزارهای ضروری
۱۴. مدیریت پکیجها
۱۵. رسانههای ذخیرهسازی
۱۶. شبکه
۱۷. جستجوی فایلها
۱۸. آرشیو کردن و بکآپ
۱۹. عبارتهای باقاعده (Regular Expressions)
۲۰. پردازش متن
۲۱. قالببندی خروجی
۲۲. چاپ کردن
۲۳. کامپایل کردن برنامهها
بخش چهارم: نوشتن اسکریپتهای شل
۲۴. نوشتن اولین اسکریپت تو
۲۵. شروع یک پروژه
۲۶. طراحی بالا به پایین (Top-Down Design)
۲۷. کنترل جریان: شاخهبندی با if
۲۸. خواندن ورودی کیبورد
۲۹. کنترل جریان: حلقههای while و until
۳۰. عیبیابی (Troubleshooting)
۳۱. کنترل جریان: شاخهبندی با case
۳۲. پارامترهای موقعیتی
۳۳. کنترل جریان: حلقه for
۳۴. رشتهها و اعداد
۳۵. آرایهها
۳۶. موارد خاص و استثنایی (Exotica)
⭐ نقد و بررسی
💬 «این کتاب بهت یاد میده مثل خودِ سیستم فکر کنی؛ نه اینکه فقط اونقدر دستورات مختلف رو امتحان کنی تا بالاخره یکیشون جواب بده.»
— LinuxSecurity.com
🎓 «جامع و خوشخوان. یک منبع عالی برای کسانی که در لینوکس تازهکار هستن و برای متخصصهای قدیمی لینوکس که میخوان عمیقتر بشن.»
— فیلیپ پولسترا، دکترا، نویسنده کتاب Linux Forensics
🌟 تحسینها برای ویرایش دوم کتاب The Linux Command Line:
💎 «این کتاب عالیِ خط فرمان لینوکس، چیزی فراتر از یک وسیله تزئینی برای میز کاره؛ این یک ابرقدرت مخفیه.»
— کن هس، شرکت رد هت (Red Hat)
🛠️ «برای کسانی که بهدنبال تسلط بر خط فرمان لینوکس و بهدست آوردن درکی اساسی از ابزارهای اصلی هستن، این کتاب یک راهنمای بسیار موثر و کاربردیه.»
— بن روتکه، کنفرانس RSA
🏆 «صادقانه میتونم بگم که بالاخره کتاب مرجع و اصلی برای آموزش لینوکس به مبتدیها رو پیدا کردم.»
— جیسون براتون، مجله لینوکس (Linux Journal)
📚 «این دقیقاً همون چیزیه که یک تازهکار لینوکس نیاز داره تا سریع راه بیفته. کتاب فراتر از آموزش ساده ابزارهای خط فرمان میره و وارد دنیای تئوری و نحوه تعامل بخشهای مختلف با هم میشه.»
— نیکلاس سی. زاکاس، یاهو (!Yahoo)
📖 «خوشخوانترین و قابلفهمترین کتاب حجیمی که در این زمینه نوشته شده.»
— فدریکو لوسیفردی، مجله لینوکس (Linux Magazine)
👨💻 درباره نویسنده
👨🏫 ویلیام شاتس (William Shotts) بیش از ۴۰ ساله که در حوزه نرمافزار حرفهای فعالیت میکنه و از سال ۱۹۹۶ یک کاربر و حامی وفادار لینوکس بوده. اون در طول دوران کاریش به عنوان برنامهنویس، مدرس، عکاس و مدیر فنی فعالیت کرده و تیمهایی رو در بخشهای پشتیبانی مشتریان، تضمین کیفیت نرمافزار، مدیریت سیستم و مستندسازی رهبری کرده. اون همچنین خالق سایت LinuxCommand هست؛ سایتی قدیمی که به کاربران کمک میکنه تا بر خط فرمان لینوکس مسلط بشن.
Banish Your Mouse.
The Linux Command Line isn’t just a reference manual. It’s a complete education on how Linux really works. From your first tentative keystrokes to writing powerful shell scripts, you’ll build the confidence and understanding to make your system work for you.
Now in its third edition, this best-selling guide has been fully updated with modern examples, nearly 40 pages of new content, and downloadable scripts from LinuxCommand. Used in more than a thousand classrooms and libraries worldwide, it has helped over 150,000 readers gain fluency and confidence in Linux.
Author and command line guru William Shotts delivers not just commands, but genuine insight, guided by his philosophy: Make everything as simple as possible, but no simpler.
Through short, digestible chapters, you’ll learn to:
Chapter 1: What Is the Shell?
Chapter 2: Navigation
Chapter 3: Exploring the System
Chapter 4: Manipulating Files and Directories
Chapter 5: Working with Commands
Chapter 6: Redirection
Chapter 7: Seeing the World as the Shell Sees It
Chapter 8: Advanced Keyboard Tricks
Chapter 9: Permissions
Chapter 10: Processes
Part II: Configuration and the Environment
Chapter 11: The Environment
Chapter 12: A Gentle Introduction to vi(m)
Chapter 13: Customizing the Prompt
Part III: Common Tasks and Essential Tools
Chapter 14: Package Management
Chapter 15: Storage Media
Chapter 16: Networking
Chapter 17: Searching for Files
Chapter 18: Archiving and Backup
Chapter 19: Regular Expressions
Chapter 20: Text Processing
Chapter 21: Formatting Output
Chapter 22: Printing
Chapter 23: Compiling Programs
Part IV: 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: Troubleshooting
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: Arrays
Chapter 36: Exotica
"It trains you to think like the system thinks---not just run commands until something works."
—LinuxSecurity.com
"Thorough and approachable. A great resource for those new to Linux and for seasoned Linux veterans wanting to dive deeper."
—Philip Polstra, PhD, author of Linux Forensics
Praise for The Linux Command Line, 2nd Edition:
"This excellent Linux command line book is more than cubicle decoration, it's a secret super power."
—Ken Hess, Red Hat
"For those looking to master the Linux command line and get an essential understand of the core Linux command line tools, this book is a highly effective and useful guide."—Ben Rothke, RSA Conference
"I can honestly say I have found THE beginner's guide to Linux."
—Jayson Broughton, Linux Journal
"This is exactly what a Linux beginner needs to get up to speed quickly. The book goes beyond simply walking through all of the command line utilities, and ventures into the realm of theory and how things work together."
—Nicholas C. Zakas, Yahoo!
"The most approachable tome on the subject."
—Federico Lucifredi, Linux Magazine
William Shotts has been a software professional for more than 40 years and a dedicated Linux user and advocate since 1996. Over his career, he’s worked as a programmer, teacher, photographer, and technical manager leading teams in customer support, software quality assurance, system administration, and documentation. He is also the creator of LinuxCommand, a long-running site that helps users master the Linux command line.









