Re:Show HN: Oh-heck, a terminal command for when you forget ...
by mikestew on Friday March 18, 2022 @09:52AM
(#30722237)
I’ll save some clicking: $4/month. But, yeah, not idea what TOS or privacy policy is.
Re:Show HN: Oh-heck, a terminal command for when you forget ...
by kps on Friday March 18, 2022 @10:22AM
(#30722621)
oh-heck "Bring up the network interface. Goddamit Linux where did ifconfig go? Why do you have to NIH everything?"
Re:Show HN: Oh-heck, a terminal command for when you forget ...
by nvr219 on Friday March 18, 2022 @06:15PM
(#30728230)
I aliased ifconfig to this:
echo "Local IPs: "
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
systemd-resolve --status | grep -A 2 Servers | sed 's/\ //g'
ip route show
curl --silent ipinfo.io | grep -E '\"ip|hostname|city' | sed 's/\"//g'
Hope this helps
Re:Show HN: Oh-heck, a terminal command for when you forget ...
by 411111111111111 on Friday March 18, 2022 @04:19PM
(#30727020)
Tbf, 'ip addr' is even easier to remember as far as I'm concerned
Re:Show HN: Oh-heck, a terminal command for when you forget ...
by sleepyxuras91 on Friday March 18, 2022 @06:47PM
(#30728594)
'ip a' works too
Re:Show HN: Oh-heck, a terminal command for when you forget ...
by zwayhowder on Friday March 18, 2022 @07:49PM
(#30729154)
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 ...
by pmarreck on Friday March 18, 2022 @08:47PM
(#30729659)
How would one add this if it's missing?
I'm sure these are just oversights but it leaves a very bad taste in my mouth!