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 2 of 30

charlie-833 replies#
Cool, couple of comments. The website it a bit broken on mobile (at least for me) since text goes off the screen. Second, it would be good to have some sample pages or at least a page of contents so people can see the level of detail the book is aimed at. I know I could just get the book for free and then pay later but that kind of a faff and I feel bad choosing $0 for these kinds of things.
PeterWhittaker1 reply#
One nit: ^D only exits if the cursor is at the beginning of a line. Enter ^D and the session remains.

Otherwise, looks good! Use of "env" and proper quoting are strong signals!

petr25102018#
Thanks for the clarification. I will see if I can sneak in a note about this in the next update :)
danadam#
page 112

> if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
> ... is an option that starts with one or multiple - characters ...
"one or multiple" is + not *. The regex above will also match "h" and "help" without - character(s).

pipes1 reply#
I agree with all this. I'm on Firefox android, pixel, lose part of the screen too.

I'd love to read a table of contents. I don't want to rip you off with zero dollars!
Anyway, sounds like a great book. Congratulations on completing and "shipping"!

petr25102018#
> I agree with all this. I'm on Firefox android, pixel, lose part of the screen too.

Ah okay, I really wasn't aware. Thanks for reporting.

jaredhallen1 reply#
I am also seeing text off the screen using Brave on Android.
petr251020181 reply#
You are right. It is wrong, will need to look into this.
curtgrimes1 reply#
These two tweaks should improve it (by preventing the largest text and book graphic from overflowing the viewport horizontally on some smaller screen sizes):

  diff --git a/index.html b/index.html
  index a0f978c..040e50e 100644
  --- a/index.html
  +++ b/index.html
  @@ -21,3 +21,3 @@
         h1 {
  -        font-size: 3.8em;
  +        font-size: clamp(2.2em, 7vw, 3.8em);
           margin-bottom: 0;
  @@ -60,2 +60,3 @@
         .hero-img {
  +        max-width: 100%;
           transform: rotate(2deg);

Also, I really like what I see in your book so far and I am already learning things on the first few pages. Thanks!

Continue this thread — 1 reply