Command line things! A nifty little cheatsheet and good reading for those who miss (or want to learn) linux/unix cli: the art of the command line
Should you find yourself missing the linux environment ever, as many of us are constrained to windows environments in many scenarios (dang msft shops), this is a neat read to remind yourself of things, learn a few new things, etc.
credit: *holloway.com. –*[*jlevy*](https://github.com/jlevy)*,* [*Holloway*](https://www.holloway.com/)*.*
[https://awesomeopensource.com/project/jlevy/the-art-of-command-line](https://awesomeopensource.com/project/jlevy/the-art-of-command-line)
which also reminds me, DO NOT MISS
["In the beginning was the command line..."](https://www.nealstephenson.com/in-the-beginning-was-the-command-line.html)
if you've never read it. Neal Stephenson, the master of metaphor. It's rather dated, but not entirely irrelevant, and a joy to read.
full pdf: [https://people.cs.georgetown.edu/\~clay/classes/spring2010/os/inthebeginning.pdf](https://people.cs.georgetown.edu/~clay/classes/spring2010/os/inthebeginning.pdf)
and a little taste:
It is difficult to explain how Unix has earned this respect without going into mind-smashing technical detail. Perhaps the gist of it can be explained by telling a story about drills.
The Hole Hawg is a drill made by the Milwaukee Tool Company. If you look in a typical hardware store you may find smaller Milwaukee drills but not the Hole Hawg, which is too powerful and too expensive for homeowners. The Hole Hawg does not have the pistol-like design of a cheap homeowner’s drill.
It is a cube of solid metal with a handle sticking out of one face and a chuck mounted in another. The cube contains a disconcertingly potent electric motor. You can hold the handle and operate the trigger with your index finger, but unless you are exceptionally strong you cannot control the weight of the HoleHawg with one hand; it is a two-hander all the way. In order to fight off the counter-torque of the Hole Hawg you use a foot-long chunk of regular galvanized pipe, threaded on one end, with a black rubber handle on the other. If you lose it, you just go to the local plumbing supply store and buy another chunk of pipe.
I myself used a Hole Hawg to drill many holes through studs, which it did as a blender chops cabbage. I also used it to cut a few six-inch-diameter holes through an old lath-and-plaster ceiling. I chucked in a new hole saw, went up to the second story, reached down between the newly installed floor joists, and began to cut through the first-floor ceiling below. Where my homeowner’s drill had labored and whined to spin the huge bit around, and had stalled at the slightest obstruction, the Hole Hawg rotated with the stupid consistency of a spinning planet. When the hole saw seized up, the Hole Hawg spun itself and me around, and crushed one of my hands between the steel pipe handle and a joist, producing a few lacerations, each surrounded by a wide corona of deeply bruised flesh. It also bent the hole saw itself, though not so badly that I couldn’t use it. After a few such run-ins, when I got ready to use the Hole Hawg my heart actually began to pound with atavistic terror.
But I never blamed the Hole Hawg; I blamed myself. The Hole Hawg is dangerous because it does exactly what you tell it to. It is not bound by the physical limitations that are inherent in a cheap drill, and neither is it limited by safety interlocks that might be built into a homeowner’s product by a liability-conscious manufacturer. The danger lies not in the machine itself but in the user’s failure to envision the full consequences of the instructions he gives to it.
A smaller tool is dangerous too, but for a completely different reason: it tries to do what you tell it to, and fails in some way that is unpredictable and almost always undesirable. But the Hole Hawg is like the genie of the ancient fairy tales, who carries out his master’s instructions literally and precisely and with unlimited power, often with disastrous, unforeseen consequences.
​
​
EDIT: so as to not further trigger my friend, we will add a couple of powershell links, since you can have pwsh on linux cli as well
[https://riptutorial.com/Download/powershell.pdf](https://riptutorial.com/Download/powershell.pdf)
[https://static.spiceworks.com/attachments/post/0017/6852/MASTERING\_PS\_eBook.pdf](https://static.spiceworks.com/attachments/post/0017/6852/MASTERING_PS_eBook.pdf)
​
​