Live data from Hacker News

Show HN: Oh-heck, a terminal command for when you forget other terminal commands

oh-heck.dev

111–120 of 132 posts

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#112
post #28

Earlier quoted context omitted.

oh-heck "Bring up the network interface. Goddamit Linux where did ifconfig go? Why do you have to NIH everything?"

Tbf, 'ip addr' is even easier to remember as far as I'm concerned

'ip a' works too

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#113
Slightly related is https://cheat.sh/ [0], which returns real-world examples of how to use a given command.

The results are nicely formatted and color-coded. Give it a try in your terminal:

  curl https://cheat.sh/rsync
I've found it to be really handy for things like awk, rsync, ssh, and others with byzantine parameters. Not to mention it's free.

[0] https://github.com/chubin/cheat.sh

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#114

Earlier quoted context omitted.

Tbf, 'ip addr' is even easier to remember as far as I'm concerned

'ip a' works too

I was so happy when I discovered this. As a UNIX and Linux user for my entire career I was so surprised that something built into every Cisco, Juniper, Arista etc etc network device wasn't built into many cli tools on Linux.

I know I can create aliases and whatnot, but I'm a consultant, when I was still hands on with the tools I'd log into 30+ different customer's environments every year. Many were isolated from the Internet and whilst I did carry my dotfiles around on a USB (Along with some binaries of useful tools that are so often lacking on enterprise systems) I couldn't always use them.

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#115
post #108

Earlier quoted context omitted.

aliased as 'duck' to be work-friendly

Where do you work that anyone would care you use a command called « fuck »?

Damn, imagine working at a place where at the end of each day, the management goes through your shell history and includes it in a "performance review".

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#116

> But, Mike! What happens if I can't remember the oh-heck commands? > Well, first, calm yourself, you fool. Once you've regained your composure, just type `oh-heck` into Terminal and follow the steps you numbskull. I think that they're trying to be clever, but I prefer to not be insulted by my tools.

Personally I like getting insulted by my tools. I always put `Defaults insults` in my /etc/sudoers file so every time I enter the wrong password, I get insulted. I wish more tools supported this. I think computing in general is fun, and wish more tools had fun things like this. $ sudo whoami [sudo] password for user: Your mother was a hamster and your father smelt of elderberries! [sudo] password for user: Your mind…

TIL.

Reminds me of the days installing sl on FreeBSD servers. Someone typos the most common and basic of commands and they watch a steam locomotive journey across their screen. It even has different versions based on common ls switches.

And I just found it's still available. https://www.cyberciti.biz/tips/displays-animations-when-acci...

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#117

i usually just put commands that I know I'm going to use again in a text file so I can reference them later.

this fails to embody the 3 great virtues of a programmer

Yeah, but it's also practical, so who's really winning here?

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#118

Slightly related is https://cheat.sh/ [0], which returns real-world examples of how to use a given command. The results are nicely formatted and color-coded. Give it a try in your terminal: curl https://cheat.sh/rsync I've found it to be really handy for things like awk, rsync, ssh, and others with byzantine parameters. Not to mention it's free. [0] https://github.com/chubin/cheat.sh

man ?

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#119

Earlier quoted context omitted.

'ip a' works too

I was so happy when I discovered this. As a UNIX and Linux user for my entire career I was so surprised that something built into every Cisco, Juniper, Arista etc etc network device wasn't built into many cli tools on Linux. I know I can create aliases and whatnot, but I'm a consultant, when I was still hands on with the tools I'd log into 30+ different customer's environments every year. Many were isolated from the…

How would one add this if it's missing?

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#120
post #6

And here's a command that tries to fix up a mistake after you type it. Like this one, it's also named like what you might say afterwards. https://github.com/nvbn/thefuck

aliased as 'duck' to be work-friendly

Mormon boss, eh
Post reply on HN