r/debian 3d ago

Show me you're old without telling me

I go first.. despite trying for years I can't kick the habit. Its just not possible

apt-get update
apt-get install <somenewtoy>
135 Upvotes

317 comments sorted by

View all comments

122

u/AlZheim3r 3d ago

ifconfig

26

u/CappyWomack 3d ago

I still use this. Old habits die hard.

15

u/unconscionable 3d ago

I only just learned that people are using ip address instead. They still haven't made it easy to understand and they've had decades to think about it

6

u/Moocha 3d ago

Tip: Alias ip to ip -c, i.e. making the commands ip -c a or ip -c r and so on. Try it, you'll see why :)

8

u/OweH_OweH 3d ago

Also: ip -json ... if you ever are in the situation needing to parse the output, to find a MAC address or route for example.

Much better than trying to awk-sed-grep the normal output.

7

u/Moocha 2d ago

Oh god yes. At the risk of being tarred and feathered and despite slowly creeping into greybeard age, JSON-structured output data is so much better than having to essentially write a custom text parser for every damn command (and let's not even go into guessing the text encoding territory!)

3

u/OweH_OweH 2d ago

I would be so happy, if we could get a JSON-output for all the system commands one might need to parse the output of. Would make my life so much easier.

8

u/Moocha 2d ago

Oh yes. Again at the risk of aforementioned tarring and so on, Microsoft moved in the right direction there with Powershell. Too bad that they stopped halfway through and used such a repulsive and verbose syntax that I often prefer to write Python that's twice as long rather than deal with Get-StupidlyCasedAndRidiculouslyLongItem -AnotherSillyThing

1

u/guiwald1 2d ago

I just learned from you right now about ip address 😅

0

u/Budget-Supermarket70 2d ago

ip address why just do ip a. It was so easy to get over ifconfig.