Live data from Hacker News

Show HN: I wrote a modern Command Line Handbook

commandline.stribny.name

21–30 of 115 posts

Re: Show HN: I wrote a modern Command Line Handbook

#23

It makes me wonder – what's that one command or concept you CLI vets wish you'd learned way earlier that totally changed your game, something that might be in that 'next 20%'? Curious about those 'aha!' moments!

Get really comfortable with find and grep. They’re incredibly powerful. perl -pe is way easier than awk.

Re: Show HN: I wrote a modern Command Line Handbook

#26

It makes me wonder – what's that one command or concept you CLI vets wish you'd learned way earlier that totally changed your game, something that might be in that 'next 20%'? Curious about those 'aha!' moments!

One of my favorites from the book is to alias "xdg-open" to "open" because I never remember the command. So now I can just type "open X" to open a file system location or file in a normal GUI program when needed. It is a small thing but I use it a lot.

Something that I didn't put in the book because I learned it only recently is the use of "notify-send", aka you can send yourself a system notification from the command line or script (at least it workd for me in Gnome). For instance once a task is finished:

> echo "when finished send notification" && notify-send "system notification"

Pretty cool if you ask me!

Re: Show HN: I wrote a modern Command Line Handbook

#27

Example pages here: https://drive.google.com/file/d/1PkUcLv83Ib6nKYF88n3OBqeeVff...

I consider myself reasonably proficient in the shell, but I learned something just from your sample pages (process substitution). Purchased!

Thanks!

Re: Show HN: I wrote a modern Command Line Handbook

#28
This is excellent! Thank you for posting and best wishes for your success with this!

I'm teaching a class next year that'll have college-level students learning to use the command line and this looks perfect. Nowadays most 'learn the shell' resources online seem to focus on how to write scripts, without explaining how to use it interactively. Given this will be (for many) their first experience with a command line stuff like "type your command, then press enter", or "Up arrow to go back through your history" are a necessary foundation for them. Not to mention stuff like Job Control and using AI to help you create the more complicated commands that folks need to do - nicely done!

Plus, the book is inexpensive enough that they can still afford other resources too :)

Definitely gonna recommend this next year :)

Re: Show HN: I wrote a modern Command Line Handbook

#29

Example pages here: https://drive.google.com/file/d/1PkUcLv83Ib6nKYF88n3OBqeeVff...

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.
Post reply on HN