Prose Supplements - Shop now
Buy used:
$8.72
FREE delivery March 28 - April 3. Details
Or fastest delivery Thursday, March 27. Details
Used: Good | Details
Condition: Used: Good
Comment: Used book in good condition. May have some wear to binding, spine, cover, and pages. Some light highlighting markings writing may be present. May have some stickers and or sticker residue present. May be Ex-lib. copy. May NOT include discs, or access code or other supplemental material. We ship Monday-Saturday and respond to inquiries within 24 hours.
Access codes and supplements are not guaranteed with used items.
Kindle app logo image

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.

Read instantly on your browser with Kindle for Web.

Using your mobile phone camera - scan the code below and download the Kindle app.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

The Linux Command Line: A Complete Introduction 1st Edition

4.7 4.7 out of 5 stars 623 ratings

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.

There is a newer edition of this item:


From the Publisher

Copy of The Linux Command Line , 2nd Edition on black background with No Starch Press logo

Spread of Linux Command Line on yellow background with info on ReadLine

'Excellent'

"This excellent Linux command line book is more than cubicle decoration, it's a secret superpower."

—Ken Hess, Red Hat

Copies of The Linux Command Line, 2nd edition on black background

'Highly Effective'

"For those looking to master the Linux command line and get an essential understanding of the core Linux command-line tools, this book is a highly effective and useful guide."

—Ben Rothke, RSA Conference

"Spread of Linux Command Line on yellow background with info on Shell Functions"

'THE Beginner's Guide'

"I can honestly say I have found THE beginner's guide to Linux."

—Jayson Broughton, Linux Journal

About the Author

William Shotts has been a software professional and avid Linux user for more than 15 years. He has an extensive background in software development. He is also the creator of LinuxCommand.org, a Linux education and advocacy site featuring news, reviews, and extensive support for using the Linux command line.

Who Should Read This Book

This book is for new Linux users who have migrated from other platforms. Most likely you are a “power user” of some version of Microsoft Windows. Perhaps your boss has told you to administer a Linux server, or you’re entering the exciting new world of single board computers (SBC) such as the Raspberry Pi. You may just be a desktop user who is tired of all the security problems and wants to give Linux a try. That’s fine. All are welcome here.

No Starch Press logo. A black circle with a white iron and a star in the center.

About the Publisher

No Starch Press has published the finest in geek entertainment since 1994, creating both timely and timeless titles like Python Crash Course, Python for Kids, How Linux Works, and Hacking: The Art of Exploitation. An independent, San Francisco-based publishing company, No Starch Press focuses on a curated list of well-crafted books that make a difference. They publish on many topics, including computer programming, cybersecurity, operating systems, and LEGO. The titles have personality, the authors are passionate experts, and all the content goes through extensive editorial and technical reviews. Long known for its fun, fearless approach to technology, No Starch Press has earned wide support from STEM enthusiasts worldwide.

Editorial Reviews

Amazon.com Review

Praise for The Linux Command Line

"I can honestly say I have found THE beginner's guide to Linux."
—Linux Journal

"Anyone who reads this book and makes use of the examples provided will not be able to avoid becoming a Unix command line pro by the time they've hit the end of the book."
—ITworld

"The most approachable tome on the subject."
—Linux Magazine

"If you’re new to the command line there is definitely a lot that you can learn from this book."
—Ubuntu Musings

"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, web software engineer and author

Review

"Anyone who reads this book and makes use of the examples provided will not be able to avoid becoming a Unix command line pro by the time they've hit the end of the book. It provides an excellent introduction to the command line that takes students from knowing nearly nothing to using impressively sophisticated commands."
—Computerworld

Product details

  • ASIN ‏ : ‎ 1593273894
  • Publisher ‏ : ‎ No Starch Press, Incorporated; 1st edition (January 17, 2012)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 480 pages
  • ISBN-10 ‏ : ‎ 9781593273897
  • ISBN-13 ‏ : ‎ 978-1593273897
  • Item Weight ‏ : ‎ 1.98 pounds
  • Dimensions ‏ : ‎ 8.5 x 1.09 x 11 inches
  • Customer Reviews:
    4.7 4.7 out of 5 stars 623 ratings

About the author

Follow authors to get new release updates, plus improved recommendations.
William E. Shotts
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Customer reviews

4.7 out of 5 stars
623 global ratings

Review this product

Share your thoughts with other customers

Customers say

Customers find the book easy to use and informative. They say it provides a good foundation for learning Linux skills like bash scripting and the kernel. The book is considered a great value for the price, with clear language and examples that make it easier for them to understand. Many customers find it effective in teaching Linux command line concepts and operating systems effectively. However, opinions differ on the pacing - some find it fast and engaging, while others feel it's too slow.

AI-generated from the text of customer reviews

184 customers mention "Ease of use"168 positive16 negative

Customers find the book easy to use and a great reference for learning the proper commands to navigate around Linux. It provides enough detail on commands and ideas to feel comfortable, yet doesn't overwhelm with too many details. Readers describe it as an engaging, complete, and informative introductory text that has ever been written. They mention it's easier to use this book than Google.

"...Then it teaches you some cool tricks you can only do in the command line (and aren't that difficult) like making a folder for each of the letters A-..." Read more

"...Along the way, you will learn how the navigate and manipulate the terminal as well as learn how the terminal interacts with devices such as hard..." Read more

"...This is the most engaging, complete, and informative introductory text that has ever been written for the Linux command line...." Read more

"...It is well written, engaging for a technical text, and assumes no prior knowledge which if you've tried to learn Linux so far you know it's like..." Read more

44 customers mention "Learning material"43 positive1 negative

Customers find the book's learning material engaging and useful. It provides a good foundation for learning advanced Linux skills like Bash scripting and the kernel. The stories and facts provide insightful context, keeping readers interested and productive at work. The topics complement each other in a way rarely seen in books of this type. Overall, it's a great refresher for those who have been away from the OS.

"...Topics are presented from the ground up and conveyed in conversational manner that truly captivates...." Read more

"...There are many hands-on exercises, which is the best way to learn. The book arrive in prime condition and very well wrapped. 10/10." Read more

"...This is the book to being more productive at office, understand what the heck is going on when you sit next to your senior developer who does all..." Read more

"...Even so, the author's never condescending and breaks all the information into easily digestible chunks...." Read more

24 customers mention "Linux knowledge"24 positive0 negative

Customers find the book helpful for learning and using Linux. It provides fast answers and commands for all users, including beginners. They describe it as a great introduction and general command line reference. The book makes Linux easy by breaking things down into simple steps.

"...shell scripting which is just as valuable because it allows me to manipulate the terminal...." Read more

"...This book would be great for anyone new to Linux or as a reference manual for the more experienced." Read more

"I love using this book to help me normalize the command line in Linux...." Read more

"...The book is great for comparing Linux to Mac OSX as long as you have a mac to checkout the differences between Unix which is compared heavily and..." Read more

9 customers mention "Value for money"9 positive0 negative

Customers appreciate the book's value for money. They say it's worth purchasing and a great seller.

"...and want a better understanding, this is an excellent guide at a great price...." Read more

"...So go for it, cheaper than college." Read more

"...bought many Linux books here on Amazon and this is one of the best for the price. Even though it's a few years old, it's still relevant." Read more

"...Definitely worth purchase." Read more

8 customers mention "Language clarity"8 positive0 negative

Customers appreciate the book's language clarity. They find the lessons clear and concise, conveyed in a conversational manner that truly captivates them. The examples are great and the cover speaks volumes for them.

"...Topics are presented from the ground up and conveyed in conversational manner that truly captivates...." Read more

"...He's a clear and concise in how he approaches each lesson...." Read more

"...The tone is fairly conversational. It's very "Here, try this."..." Read more

"...Clear, concise, very well written. Very practical, I've been able to apply this book to a Liniux project of great importance to my company...." Read more

7 customers mention "Functionality"7 positive0 negative

Customers find the book useful for learning how to operate a Linux system effectively. They say it's well-written and works with most Linux releases. The book explains how the shell works and is a good introduction to the Linux OS.

"...Line and read it every day and you will be proficient in operating any nix system effectively at least by the end of the month...." Read more

"...from my inexperienced point of view, is the fact that his examples worked perfectly and I didn't wreck my computer...." Read more

"...this particular book goes - it's very well written & works well with most releases of Linux ..." Read more

"very excellent for Linux command users and explains how does the shell works ." Read more

12 customers mention "Pacing"8 positive4 negative

Customers have different views on the book's pacing. Some find it fast and easy to understand, with short chapters that progress naturally. They appreciate the time-saving features and mention it saves hours learning to properly use the command line. Others mention issues with the construction quality, binding, and overall quality.

"...And there's something about the way it's written, the language, the pacing, the occasionally joke that is just rare enough that it catches you off..." Read more

"...Good chapter progression etc. However, the physical back-binding is falling apart and the overall quality of the book itself is a bit..." Read more

"...if you are fairly comfortable in Linux Editor, think about the time saving features that go beyond the basic functionality that most of us do...." Read more

"...command line more and more now, and am beginning to see how it can be faster and more convenient for a lot of computing tasks...." Read more

6 customers mention "Author style"4 positive2 negative

Customers have mixed opinions about the author's style. Some find it helpful for an introduction to command line, with clear writing and no condescending tone. Others feel the book is too verbose and the syntax can be unintuitive.

"...Even so, the author's never condescending and breaks all the information into easily digestible chunks...." Read more

"...4 took 3 days because I'd never written bash scripts and the syntax can be unintuitive, like the difference between [] and [[]] or ${! versus ${#...." Read more

"...It is about "The Linux Command Line". The author presents his experience well and the writing is happy and complete...." Read more

"...The authors real world experience is clearly presented in a easy to read manner...." Read more

Good book but its a fake!
5 out of 5 stars
Good book but its a fake!
The content is awesome but, just found out the one I received is not from No Strech Press publishing. The spine and back cover are blank. If you open the book, the last page will have the publishing print of what the full cover will look like.Lesson learned: Just buy this/all books from No Stech Press website, yea it might cost more but at least you are supporting the author and publisher directly. Meet NSP at DefCon, super cool and you can tell they are legit and not in this just for profit.Amazon: Get your stuff together, We know you sell a lot of stuff but you started with books, at least get that right!
Thank you for your feedback
Sorry, there was an error
Sorry we couldn't load the review

Top reviews from the United States

  • Reviewed in the United States on August 18, 2014
    This has been an amazing book. It should have been the first thing I ever read on Linux. You might think that it's a specialist book of some kind - after all, it is only about the command line. But the command line is where it's at and the author doesn't assume you know anything about Linux. It's actually a complete introduction to Linux and at each step of the way you have a new skill you can start to apply or just something to screw around with on your computer. I mean, there's nothing in Linux that can't be done on the command line. Graphical user interfaces are just a pretty presentation of what's going on underneath. Some people might grumble at "having to learn the command line" but honestly it feels very powerful once you get the handle on it (not as hard as you'd think) and I think linux actually makes doing stuff in the terminal much more fun, intersting, and powerful than in Windows or OSX.

    It starts out with navigating folders and files, copying and what-not like you could do through menus and right clicking on a GUI. Then it teaches you some cool tricks you can only do in the command line (and aren't that difficult) like making a folder for each of the letters A-Z (it happens to be sudo mkdir {A..Z} so again, not as hard as you might think). Or maybe you want to find a folder on your computer whose third letter is either a p or a q - you can't quite remember. There's a chapter on permissions which allows you to, say, make a file that is only accessible to users in the group "teachers," or maybe you just want to turn a text document (say you compiled something from C) into something your computer knows can be run. It tells you how to alter the command prompt to display pretty pictures or show a clock. There's a chapter on the very cool way Linux installs programs. It will even teach you some very basic computer programming concepts, enough to start customizing your linux, and how to install a program from source code (again, it's easier than you think).

    So it really runs the gamut of all the basics of how Linux works and I think by actually typing in the commands yourself, you gain a much better understanding of the system and how it works. There are other books I'm reading about operating systems and not a lot of it really stuck or made sense until I started reading this book and messing with things myself through commands and editing files (and editing config files makes you feel like a computer wizard when you're starting out). And there's something about the way it's written, the language, the pacing, the occasionally joke that is just rare enough that it catches you off guard. My only criticism would be that the "Gentle Introduction to Vim" could have been a little more gentle. Perhaps by spacing it out over a couple of chapters to let it sink in rather than trying to remember all of the keyboard shortcuts that make vim what it is all in one chapter. But it's a minor point compared to how much I feel like I've learned reading this book.
    61 people found this helpful
    Report
  • Reviewed in the United States on September 25, 2015
    First of all, I would like to say that I normally don't right reviews, and I'd rather just read what others have to say about a product. This time though,I felt like this product was more than deserving of a review because of the amount of knowledge I gained from it. When I began this book, I was barely able to navigate through a terminal let alone understand what I was doing. Now that I am almost done with this book, I have a much better understanding of how the terminal as well as Linux works! I have also learned some shell scripting which is just as valuable because it allows me to manipulate the terminal.

    If you would like to look at the table of contents, you can view all of the stuff that you will learn. For the most part, the book starts out with the basics and works its way up to a level where you can start writing basic shell scripts. Along the way, you will learn how the navigate and manipulate the terminal as well as learn how the terminal interacts with devices such as hard drives and printers and how you can control those devices. That description is just the tip of the iceberg if you are a beginner to Linux.

    I would recommend this book to anyone who is looking to build a better understanding of linux or the terminal! If you are having a hard time understanding how a terminal works, this book will help you find your way! It is a must read for any beginner who is trying to make a switch from Windows to Linux.
    2 people found this helpful
    Report
  • Reviewed in the United States on May 3, 2015
    Back in 2014 I had a university requirement to earn my Linux+ before graduation. The amount of material covered in the official study guide seemed overwhelming, was just too bland, and expected a baseline of knowledge that I frankly did not have at the time. I was beginning to dread my approaching deadline and started to look for alternative learning materials. That's when I found this book.

    This is the most engaging, complete, and informative introductory text that has ever been written for the Linux command line. Topics are presented from the ground up and conveyed in conversational manner that truly captivates. This book does NOT read like a dry textbook.

    Oddly enough, another benefit is that the book does not have a list of topics that it MUST cover. Since the text has not been geared towards a particular exam, William E. Shotts, Jr. can address fundamental topics that are necessary to understand, but not explicitly covered in the Linux+ exam objectives. These extra topics are what will allow you to transition into the more advanced topics of the Linux+ without feeling overwhelmed.

    I would recommend this to anyone who has ever shown an interest in Linux. It does not matter what age, it does not matter what background, this book can equip you with the tools necessary to dive head first into what will hopefully become your new lifelong obsession with the Linux command line.
    5 people found this helpful
    Report
  • Reviewed in the United States on January 27, 2019
    I bought 3 books from Starch Press to jump into managing my Linux OS and THIS one has been the BEST one to help me start out. It is well written, engaging for a technical text, and assumes no prior knowledge which if you've tried to learn Linux so far you know it's like getting stuck at a brick wall of infinite text made of arcane advances. I would give 5 stars if the book had been in better condition but the content is excellent. The book came in with every other word highlighted and useless comments scribbled in every page. I am not a dainty steward of my books and I annotate, not even conservatively, but the prior owner of this book left no page untouched. That's just not a good way to study and I hope you treat your books nicely to share with others, especially a book as nice as this one.
    One person found this helpful
    Report
  • Reviewed in the United States on March 4, 2025
    Awesome book. Very well written. The author really know Linux in-depth and is able to explain many important topics in a easy to understand way. There are many hands-on exercises, which is the best way to learn. The book arrive in prime condition and very well wrapped. 10/10.

Top reviews from other countries

Translate all reviews to English
  • Angelo
    5.0 out of 5 stars A Great Addition to Your Reference Shelf
    Reviewed in Canada on June 28, 2018
    Great book, I haven't finished it through yet but so far it has been a great reference for command line.
  • Julien
    5.0 out of 5 stars Très bonne introduction au terminal
    Reviewed in France on September 8, 2019
    The linux command line est plutôt exhaustif, et largement suffisant pour savoir utiliser régulièrement Bash et créer ses scripts.
    Report
  • Ernestino
    5.0 out of 5 stars Libro
    Reviewed in Italy on January 24, 2019
    Ottimo veloce e rapido
    Consigliato
  • CHRISTIAN ALVES GONZALEZ
    5.0 out of 5 stars Excelente primera guia de referencia
    Reviewed in Spain on January 14, 2019
    Un trabajo excelente para entender como usar la linea de comandos de Linux, para cualquier tarea de manutención de servidores que sea necesaria y mucho mas.

    Recomendado 100%!
  • Harshit saxena
    5.0 out of 5 stars The Best introduction to the command line
    Reviewed in India on June 6, 2017
    The Book you should buy for linux command line interface. I want to understand the unix based system to be good at it , i am studying Hacking so i need to understand Kali linux so i just bought this book ," if you're new to the command line , there is definitely a lot that you can learn from this book .