News for hackers. Stuff that matters.
Re:Show HN: I wrote a modern Command Line Handbook by petr25102018 on Thursday May 29, 2025 @11:29AM (#44127014)
Re:Show HN: I wrote a modern Command Line Handbook by justusthane on Thursday May 29, 2025 @02:14PM (#44128668)
I consider myself reasonably proficient in the shell, but I learned something just from your sample pages (process substitution). Purchased!
Re:Show HN: I wrote a modern Command Line Handbook by teddyh on Thursday May 29, 2025 @03:34PM (#44129435)
If you have not skimmed through the manual of bash¹ enough to learn about process substitutions, what makes you think you would read a book?

1. <https://www.gnu.org/software/bash/manual/bash.html>

Re:Show HN: I wrote a modern Command Line Handbook by mtlynch on Thursday May 29, 2025 @04:12PM (#44129840)
Different people prefer different formats for information. Some people prefer to read the manual from start to finish while others learn better seeing the same concepts in a hands-on tutorial.

From reading the sample of OP's book, it seems far more practical and accessible than the bash manual, so I'm not surprised that a lot of people would read OP's book that have no interest in reading the bash manual cover to cover.

Re:Show HN: I wrote a modern Command Line Handbook by cortesoft on Thursday May 29, 2025 @03:59PM (#44129721)
Maybe because they didn't think to?
Re:Show HN: I wrote a modern Command Line Handbook by justusthane on Thursday May 29, 2025 @04:27PM (#44130022)
Because generally a manual is “here is every single detail of this thing”, while a book like this is “here’s an overview of the particularly useful stuff.”

I’ll go to the manual if I’m trying to understand how a particular thing works, or how to do a particular thing, but it’s not as useful to me for feature discovery.

Re:Show HN: I wrote a modern Command Line Handbook by petr25102018 on Thursday May 29, 2025 @02:20PM (#44128729)
Thanks!
Re:Show HN: I wrote a modern Command Line Handbook by jcynix on Thursday May 29, 2025 @02:32PM (#44128833)
Hmm, the example page doesn't convince me, for example

> The diff utility can compare files and print their differences. If we pass it the result of ls commands, we can compare the contents of directories.

No, if you pass the output of ls commands, you might get an error because you'll pass a bunch of files to diff.

And last but not least there's

    diff -r directory-a directory-b
to compare two directories file by file.
Re:Show HN: I wrote a modern Command Line Handbook by petr25102018 on Thursday May 29, 2025 @02:40PM (#44128916)
I wanted to demonstrate the use of the substitution, not the best way to diff directories. Often I tried to create examples that demonstrate multiple concepts or tools at once to save space. But I see your point.
Re:Show HN: I wrote a modern Command Line Handbook by sureglymop on Thursday May 29, 2025 @07:28PM (#44131369)
I think it was about demonstrating process substitution. You don't pass a bunch of files to diff, you pass the output of ls, as a file, to diff.

I actually thought it was awesome to see that. I use this a lot to diff the output of commands and many people don't know about it.

Re:Show HN: I wrote a modern Command Line Handbook by SlackingOff123 on Friday May 30, 2025 @02:00AM (#44133339)
Page 12 of the example pdf ends with "On Linux, the PATH looks something like this:", but then there's no PATH example shown.
Re:Show HN: I wrote a modern Command Line Handbook by pie_flavor on Friday May 30, 2025 @05:25AM (#44134420)
Page 13 isn't in the example pdf. It's a bunch of scattered pages to give you a feel for the whole thing.
Re:Show HN: I wrote a modern Command Line Handbook by petr25102018 on Friday May 30, 2025 @07:00AM (#44134887)
Yes, the linked sample pages are just randomly taken pages from the book PDF, as I put it together quickly for the Show HN. Apologies. I will make a better example when I rework the landing page.
Re:Show HN: I wrote a modern Command Line Handbook by flas9sd on Friday May 30, 2025 @09:42AM (#44136146)
if you add a cover page with http link, an example download read at a later time will find its way back more easily. Looks good!
Re:Show HN: I wrote a modern Command Line Handbook by petr25102018 on Friday May 30, 2025 @12:49PM (#44137982)
Thanks for the suggestions:)