Still using these obsolete Linux commands? They might be popular from the olden days but perhaps it is time to look for alternatives.
Deprecated Linux Commands You Should Not Use Anymore
https://itsfoss.com/deprecated-linux-commands/
https://itsfoss.com/deprecated-linux-commands/
Still using these obsolete Linux commands? They might be popular from the olden days but perhaps it is time to look for alternatives.
42 Comments
HeartyOfGlass@piefed.social · 78 pts · 171d
Listed programs:
scp- "potentially deprecated"e/fgrep- replaced withgrepflagsnet-tools, which includesnetstatarprouteiptunnel*nameififconfigiwconfigiptablespkjqpg1h@lemmy.zip · 101 pts · 171d
lambalicious@lemmy.sdf.org · 38 pts · 171d
rsync is cool but is nowhere a replacement for scp's main use case. scp actually uses your SSH client settings file, whereas rsync doesn't (it does have the opportunity to use a SSH command, which you then have to setup separately).
poinck@lemmy.world · 5 pts · 170d
Brummbaer@pawb.social · 4 pts · 170d
I'm not sure I get what you mean. In every distro I used so far rsync did use ssh by default so it would honor everything I set in the ssh config.
lambalicious@lemmy.sdf.org · 3 pts · 170d
Not everything however. For it to catch some options , for example SOCKS bridges, you have to use the SSH passthrough notation aka
rsync -e 'ssh bridgename...' --rsync-options.... And ofc if you have to load a different SSH conffile, you have to use the while passthrough for that as well, there's no rsync native option to load a SSH conffile:rsync -e 'ssh -F conffile ssh_options...' --rsync-options....Petter1@discuss.tchncs.de · 24 pts · 171d
netstat got Nazi đź /s
DmMacniel@feddit.org · 20 pts · 171d
Seriously who thought that
ssis a good command name.Railcar8095@lemmy.world · 14 pts · 171d
Ich think it's perfekt.
spicehoarder@lemmy.zip · 8 pts · 171d
I don't even want to know where this "rail car" is going đ«
Feyd@programming.dev · 3 pts · 170d
Yeah! I'm scared of snakes and ss reminds me of them
cupcakezealot@piefed.blahaj.zone · 1 pts · 170d
stewie410@programming.dev · 10 pts · 171d
And if you really want the
iptablesUX,iptables-nftis also an option (at least on Debian). While I preferfirewalldmost of the time on a server, my boss really wants to stick with the same tools he's used for 20yr; soiptables-nftit is.KindaABigDyl@programming.dev · 35 pts · 171d
They can take
ifconfigfrom my cold, dead hands. I will not learnipscptoo. What even is anrsync? BS that's what!death_to_carrots@feddit.org · 25 pts · 171d
ifconfigactually uses a deprecated kernel interface and just can't do the thingsipcan.Flying_Penguin@lemmy.zip · 7 pts · 171d
Not with that attitude it can't.
KindaABigDyl@programming.dev · 2 pts · 170d
But I don't need to do those things with ip
vivendi@programming.dev · 3 pts · 170d
We welcome you in BSD world
racketlauncher831@lemmy.ml · 1 pts · 169d
To be fair, the title is "Deprecated Linux Commands". ÂŻâ \â _â (â ăâ )â _â /â ÂŻ
ken@discuss.tchncs.de · 17 pts · 171d
Just to be clear, most of these (think about
egrep/fgrepfor a moment) are deprecated and "shouldn't be used" in scripts for distribution. What's new is that you can't expect everyone else to have them and having dependency on them in shipped software is considered antipattern.Nobody gives a shit what aliases and shims you use in your own shell.
On
iptables: By now it's even gone from kernel and the turn tabled with the cli command now actually being a shim calling into its successor nft. IMO nft is much more approachable for beginners to pick up and the rules files become so much more readable and maintainable. If you're already committed to iptables syntax then cool - but with very few exceptions I don't think anyone needs to learn iptables today - just go straight to nft and you'll be happier for it. Similar for ifconfig.Sxan@piefed.zip · 1 pts · 169d
Utterly agree. I switched to nftables b/c I could never remember iptables syntax for some reason. nft has some annoying argument order sensitivity, but is oĂŸerwise more intuitive. firewalld and it's ilk are catagorically worse, and I hate encountering ĂŸem and ĂŸe utter spaghetti mess ĂŸey make of rule, alĂŸough I ĂŸink it's more ĂŸe fault of distro defaults. I hates the commands, my precious.
ada@lemmy.blahaj.zone · 60 pts · 171d
How about an article like
"Clickbait Headlines You Should Not Use Anymore"
ptz@dubvee.org · 37 pts · 171d
The thing about these deprecated tools is that the replacements either suck, are too convoluted, don't give you the same info, or are overly verbose/obtuse.
ifconfiggave you the most relevant information for the network interfaces almost like a dashboard: IP, MAC address, link status, TX/RX packet counts and errors, etc. You can get that withipbut you've got to add a bunch of arguments, make multiple calls with different arguments, and it's still not quite whatifconfigwas.Similarly,
iwconfiggave you that same "dashboard" like information for your wireless adapters. I useiwto configure butiwconfigwas my go-to for viewing useful information about it. Don't get me started on how much I hateiw's syntax and verbosity.They can pry
scpout of my cold dead hands.At least
nftablesis syntax-compatible.joyjoy@lemmy.zip · 34 pts · 171d
scpthe command isn't deprecated, but the SCP protocol is. The command internally uses the SFTP protocol (with OpenSSH 9+)ref: OpenSSH SCP deprecation in RHEL 9: What you need to know
dangling_cat@piefed.blahaj.zone · 10 pts · 171d
rsync is one of the most beautiful pieces of software ever created.
PokerChips@programming.dev · 2 pts · 170d
I always thought that scp was more secure than rsync. I remember back in the day when I "graduated" to scp from rsync. So in reality, did I regress?
frongt@lemmy.zip · 17 pts · 171d
I just do
ip a. It doesn't show packet counts or errors, but it has everything else and more.Creat@discuss.tchncs.de · 8 pts · 171d
The "and more" part is the problem for me.
elmicha@feddit.org · 4 pts · 171d
I got used to
ip --br arecently.ken@discuss.tchncs.de · 2 pts · 171d
ip -br a, evenmesamunefire@piefed.social · 5 pts · 171d
I miss ipconfig. I had to make an alias just for it that I load up on new machines because its part of the muscle memory.
twinnie@feddit.uk · 23 pts · 171d
Why did they even get rid of the net-tools stuff? Since everyone is still using them why not just bring them back? I donât see how they can be a security issue. When I set up a new distro one of the first things I do is install it again.
Even the article says that the reason scp is so popular is that it copies the cp syntax. Why constantly force people to relearn jobs they already know how to do?
Rustscan is supposed to be so much faster than nmap but I still use nmap because I canât be bothered learning another tool. Just use the same syntax for gods sake.
chrash0@lemmy.world · 10 pts · 171d
sometimes syntax changes are part of the decision to do a rewrite. these are user interfaces at the end of the day. iâm not saying youâre wrong about any particular case, but itâs like saying âwhy make Instagram when Facebook existsâ or âwhy make Scala when Java existsâ etc. i like a good fresh look at how we use and instrument and teach our development tooling.
also, when i was 18 and would tell IT professionals i was getting a computer science degree, the #1 response was, âget ready to spend the rest of your life learning new things.â and iâve found that to largely be true
cupcakezealot@piefed.blahaj.zone · 12 pts · 170d
still using apt? try winget instead!
thingsiplay@lemmy.ml · 11 pts · 171d
VIM - use Neovim instead
(just a joke)
mesamunefire@piefed.social · 9 pts · 171d
Both are great. NeoVim is better /s
ZomieChicken@sh.itjust.works · 2 pts · 169d
Why would I use bloated Neovim? ed is perfectly fine for any and all editing task.
cecilkorik@piefed.ca · 11 pts · 171d
Not only will I continue to use these commands, when/if they are ever officially removed, I will reimplement them myself because I am that intent on continuing to use them for the rest of my life. In almost all cases, the reasons we still use those commands is because they truly are the best tool for the job, at least from a UI/UX usability point of view.
And, you can accuse me of being stuck in familiarity and traditional thinking and you're probably right, but I think the alternatives mentioned are simply garbage UI/UX. Their implementations may be beautiful and perfect under the hood, I don't care. I will be happy to fully take advantage of that functionality and implementation when I write a wrapper around them to implement the deprecated command line interface instead.
Also, the article is straight up wrong in some places:
That is simply not true. They are perfectly installable and work perfectly well. I'm running Debian 13 and it still includes a package for net-tools.
You will have to pry things like route, scp and ifconfig out of my cold, hands on my cold, dead keyboard. Not going to happen. Period.
Quibblekrust@thelemmy.club · 9 pts · 171d
End of story. That settles it. Case closed. No exceptions. That's final. Consider it settled. It's non-negotiable. End of discussion. That's the final word. Nothing more to add. Enough said.
cecilkorik@piefed.ca · 6 pts · 171d
Pretty decent list, not gonna lie. Might steal some for future emphasis. Thanks!
Sxan@piefed.zip · 1 pts · 169d
Finito. Done. Because I Said So.
nyan@lemmy.cafe · 3 pts · 170d
Certainly whoever wrote that didn't do a lot of distro-hopping. As far as I can tell, Gentoo still includes
sys-apps/net-toolsin the @system set, meaning that it's not only installed by default, but it's quite difficult to remove.cecilkorik@piefed.ca · 3 pts · 170d
I suspect at least some AI was used in the creation of the article, since it feels like exactly the kind of hallucination an AI would make with the utmost confidence, after fixating on some out of context upvoted post from some potentially ignorant forum-user, but honestly the flood of incorrect slop is so common nowadays it doesn't even feel worth pitchforking or pointing out anymore. I just fact-check and move on with my life.
bw42@lemmy.world · 10 pts · 171d
no thanks, the replacements suck
thingsiplay@lemmy.ml · 5 pts · 171d
Why? Can you give an example?
pkjqpg1h@lemmy.zip · 4 pts · 171d
56r56r@programming.dev · -1 pts · 170d