Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I say this as someone who has been heavily using the command line for the last decade, even if you "know" how to use a CLI decently well, go read this if you haven't. From only a couple minutes of reading I found not one, but two new tidbits that I never even considered looking up. This information will completely change my daily levels of frustration when using a CLI. Very, very high ROI link.


What were the two tidbits for you?

Some notable ones for me:

* curl cheat.sh/command will give a brief "cheat sheet" with common examples of how to use a shell command.

* `sort -h` can sort the output of `du -h`

* https://www.gnu.org/software/datamash/

* https://catonmat.net/ldd-arbitrary-code-execution


> `sort -h` can sort the output of `du -h`

Not read the article yet, but this is something that is new to me but probably shouldn't be. Hopefully I'll remember it next time it might be useful!

Also scanning the sort documentation for other bits I'd not remembered/known, I notice --parallel=n – I'd just assumed sort was single-threaded, where it is not only capable of multicore sorting but does so by default. Useful to know when deciding when to do things concurrently by other means.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: