Lurker News
TLDR: I wrote a handbook for the Linux command line. 120 pages in PDF. Updated for 2025. Pay what you want.

A few years back I wrote an ebook about the Linux command line. Instead of focusing on a specific shell, paraphrasing manual pages, or providing long repetitive explanations, the idea was to create a modern guide that would help readers to understand the command line in the practical sense, cover the most common things people use the command line for, and do so without wasting the readers' time.
The book contains material on terminals, shells (compatible with both Bash and Zsh), configuration, command line programs for typical use cases, shell scripting, and many tips and tricks to make working on the command line more convenient. I still consider it "an introduction" and it is not necessarily a book for the HN crowd that lives in the terminal, but I believe that the book will easily cover 80 % of the things most people want or need to do in the terminal.
I made a couple of updates to the book over the years and just finished a significant one for 2025. The book is not perfect. I still see a lot of room for improvement, but I think it is good enough and I truly want to share it with everyone. Hence, pay what you want.
EXAMPLE PAGES: https://drive.google.com/file/d/1PkUcLv83Ib6nKYF88n3OBqeeVff...
https://commandline.stribny.name/

Comments (109) 30 threads

Show all comments

Showing thread 23 of 30

JLO647 replies#
Honestly I would’ve liked to fork over cash for a book like this but the deal breaker for me is that it’s in PDF format. I like to read all of my books on a Kindle (with koreader installed) so epub files that can be resized to fit its weird dimensions are a must.
petr25102018#
Noted. I will try to provide alternative formats. Not sure how it will go with the code examples, but I shall try.

Edit: One reason why I picked PDF is that I expect the readers to actually follow the examples in their own terminal while going through the book. So in that sense I was thinking about reading it on the desktop.

InsideOutSanta#
Yeah, same. On a phone or smaller e-reader, regular PDFs designed for normal book size are often unreadable.
username2231 reply#
That's a big ask. I've written a couple of books, and PDF/print vs. ePub/webpage is a decision I had to make up front. For anything with more than the most basic formatting (e.g. a novel), the design and layout are different enough that one of them will turn out looking like crap. Given the audience, I probably would have chosen ePub for this one, but the book's done now.

Also, a TOC and sample chapter would be great. A lot more people will be likely to pay if they know what they're getting.

petr25102018#
Honestly I haven't tried yet. Maybe Asciidoctor (Which I used) has it figured out. It would at least need to have good enough output for the code examples, otherwise it would probably be a non-starter.

I added links to example pages (which include TOC) to the Gumroad page and here, but yeah I should have put it on the homepage.

rmahan#
Have you tried pdf reflow with koreader? I find it works pretty well
reaperducer#
Honestly I would’ve liked to fork over cash for a book like this but the deal breaker for me is that it’s in PDF format. I like to read all of my books on a Kindle

When I made my purchase, the options were Download and Send to Kindle. It's not ePub, but it's something.

kelvinjps10#
You can use calibre and convert it, most of the time the result is very good.
dtnewman1 reply#
For what it’s worth I would have purchased if this was available in physical form (I’m weighing purchasing anyway, but my personal hunch is I’d pay $20-30 for physical copy and probably $10-20 for pdf).

Amazon makes it quite easy to publish books that get printed on demand, and they accept pdf files as inputs.

petr251020181 reply#
Thanks for the input. I have made several updates to the book in the past and this would be lost in print, but as the book matures and I incorporate feedback it can be interesting to try offering a print version. Perhaps print-on-demand type of thing.
dtnewman1 reply#
Amazon does print on demand. I have a book published there that I sell at cost and it’s about $8 shipped. Print quality is pretty good.

If you make changes, you just upload a new template and you’re all set.

Continue this thread — 1 reply