Still using these obsolete Linux commands? They might be popular from the olden days but perhaps it is time to look for alternatives.
Still using these obsolete Linux commands? They might be popular from the olden days but perhaps it is time to look for alternatives.
Listed programs:
scp- “potentially deprecated”e/fgrep- replaced withgrepflagsnet-tools, which includesnetstatarprouteiptunnel*nameififconfigiwconfigiptablesReplacement:
scp→rsyncorsftpegrep-->grep -Efgrep-->grep -Fnetstat-->ssarp-->ip nroute-->ip routeiptunnel-->ip tunnelnameif-->ip linkifconfig-->ipiwconfig-->iwiptables-->nftablesAnd 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.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).
I am guilty of using scp. Glad to see that there is a reimplementation going on.
netstat got Nazi 😮 /s
Seriously who thought that
ssis a good command name.deleted by creator
Ich think it’s perfekt.
I don’t even want to know where this “rail car” is going 😫
They can take
ifconfigfrom my cold, dead hands. I will not learnipscptoo. What even is anrsync? BS that’s what!We welcome you in BSD world
ifconfigactually uses a deprecated kernel interface and just can’t do the thingsipcan.Not with that attitude it can’t.
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.