r/Hacking_Tutorials • • May 21 '21

Deprecated Linux Command and their Replacement Cheat Sheet.

Post image
785 Upvotes

30 comments sorted by

11

u/BAAM19 May 21 '21

I have always used ifconfig, is this something like new as in this month or something?

Or was it always like this and people still use ifconfig normally?

Also is it a different tool/function or is it the same just different command/naming?

11

u/phazer193 May 21 '21

Deprecated doesn't mean that you can't use it, but at some point in the future you may not be able to as there's a newer alternative.

2

u/BAAM19 May 21 '21

Yeah but when did these changes happen?

1

u/justin-8 May 21 '21

In the early 2000s. Iproute2 came out in the 90s around kernel 2.0 I think? And ifconfig starred down the deprecation path a few years later. But now it is starting to no longer be installed by default, which is why people are finally listening.

1

u/[deleted] May 21 '21

RHEL 7/8 incorporated most of these changes

17

u/[deleted] May 21 '21

Watch me ip

Watch me neigh neigh

3

u/solocupjazz May 21 '21

You already know who it is

1

u/Hank929 May 22 '21

πŸ€£πŸ’―πŸ‘πŸΏπŸ‘πŸΏπŸ‘πŸΏ

2

u/[deleted] May 21 '21

The end is neigh

1

u/Hank929 May 22 '21

πŸ€£πŸ‘πŸΏπŸ‘πŸΏπŸ‘πŸΏπŸ‘πŸΏ

3

u/schmid_di May 21 '21

I think the replacement for "netstat" is not the right type for German Linux users lol

1

u/aggiebill May 22 '21

Who thought they had the right to change netstat?

7

u/TimeVendor May 21 '21

Why change the command?

8

u/Disruption0 May 21 '21

Ifconfig was pretty old .

5

u/Floppy3--Disck May 21 '21

I guess to be more readable

21

u/[deleted] May 21 '21

but it was already readable

4

u/justin-8 May 21 '21

In the case of ifconfig, it was built around specific old concepts, like each network card has a single IP was the big one. A work around back in the day was creating virtual devices each with their own IP, but really, the same device had multiple IPS.

Changing the output format of ifconfig isn’t possible, since so many decades of scripts had been built around parsing the text output of it, so it was essentially set in stone.

IP commands added lots of new features, programmatic output modes so that the user space representation can be changed more easily, support for multiple addresses, proper ipv6 support and much more.

The other commands I don’t know for sure, but I would suspect something similar.

2

u/armageddondrake May 21 '21

Do I have to feel old?

1

u/Racingteamsam May 21 '21

Thanks, for some reason ifconfig didn't work on my new system. Thanks for the cheatsheet

3

u/XFM2z8BH May 21 '21

if you desire ifconfig

Package: net-tools

1

u/[deleted] May 21 '21

Finally. A Linux cheatsheet with a command I don't already know about

I've never used or heard about ip but it looks interesting. I do like that it is more powerful and combines 3 commands into one, but the output does seem more complicated. It even took me a couple of minutes to even realize that ip uses CIDR notation rather that netmask: [value] in ifconfig. I kinda do wish ip would've separated the adapters output with a newline for better readability, but I might be saying that because I'm so used to ifconfig.

1

u/JoshuaBrHack3r May 22 '21

I think some commands like netstat and arp better yet

1

u/[deleted] May 21 '21

Hehehehe neigh 🐴

4

u/[deleted] May 21 '21

[removed] β€” view removed comment

8

u/Shakespeare-Bot May 21 '21

Yond shall holp me, anon i'm studying kali linux :o)


I am a bot and I swapp'd some of thy words with Shakespeare words.

Commands: !ShakespeareInsult, !fordo, !optout

0

u/Python119 May 21 '21

Good bot

1

u/B0tRank May 21 '21

Thank you, Python119, for voting on Shakespeare-Bot.

This bot wants to find the best and worst bots on Reddit. You can view results here.


Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!

0

u/Grimreq May 21 '21

Good bot