• We did not send an email asking for donations - please read this post.

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

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,472
Reaction score
1,195
Credits
10,700
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.
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,553
Reaction score
1,170
Credits
9,870
I knew most of them, but there's always one or two you miss somewhere. :)
 
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,472
Reaction score
1,195
Credits
10,700
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
 
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,472
Reaction score
1,195
Credits
10,700

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
771
Reaction score
305
Credits
6,582
Glad I don't need to learn egrep and fgrep when grep still works fine!
 
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,472
Reaction score
1,195
Credits
10,700

Fanboi

Well-Known Member
Joined
Apr 16, 2021
Messages
499
Reaction score
407
Credits
6,114
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.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top