Deprecated Linux Commands You Should Not Use Anymore (And Their Alternatives)

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,567
Reaction score
1,284
Credits
11,462
Hi, everyone! Hope you're all having a nice life! :)
I just bumped into this while checking my feed https://itsfoss.com/deprecated-linux-commands/ and thought I'd share here.
An excerpt:
Believe it or not, you might be using a deprecated Linux command.
Or at least try to use it.
It’s not really your fault. You are either habitual of using those commands or learned them through old, obsolete tutorials on the web.
This is especially true for networking commands as several of them have been replaced or going to be replaced with newer commands.
 


I knew most of them, but there's always one or two you miss somewhere. :)
 
Net-tools is still in the Debian 11 Repos - I have it installed and so is scp
 
Net-tools is still in the Debian 11 Repos - I have it installed and so is scp
Yeah. Well, I guess the author uses "deprecated" as in "obsolete", and that there are newer up-to-date alternatives, not that it means that it's been "taken out" of distro's repos, and in fact the post says:
You may still find a few of them in your distribution. It’s possible that your distribution is still providing it for backward compatibility or has created a new implementation underneath or plans to remove it in the newer versions
In that post, for scp they provided this link Deprecating scp, and it says
the release announcement also stated that the scp protocol is "outdated, inflexible and not readily fixed" and recommended migrating away from scp.
As for net-tools, they provided this https://wiki.linuxfoundation.org/networking/net-tools where you can see this:
1657303210117.png
 
Glad I don't need to learn egrep and fgrep when grep still works fine!
 
I seem to remember Debian dropping ifupdown in 8 but reinstating it later. Anyway, working with ip and love it long time now.
nftables is much welcome since syntax looks pretty much the same.
Have always used rsync, so no loss, always just used grep, don't even know what fgrep/egrep's purpose is and now never will. I mean there are more sophisticated tools by default anyway (sed can search and replace an entire file with one line).
As for iwconfig, no loss, been using wpa_supplicant for ages, too. Basically nothing there affects me adversely.
 

Staff online


Top