“7 deprecated Linux commands you need to stop using - and what to use instead”
Jack Wallen’s list <https://www.zdnet.com/article/linux-commands-deprecated-why-do-not-use/> of commands you shouldn’t be using any more, and what to use instead, is a mixed bag. ifconfig/iwconfig vs ip/iw -- the latter newer ones (part of the Linux “iproute2” suite) offer greater access to all the features of the Linux network stack than the former, older ones, and so are preferable in lots of ways. It is already possible to find setups which don’t have the old commands installed by default; I’m not sure if any distros have actually dropped the option for installing them altogether, but no doubt that will happen at some point. scp -- wrong. rsync, scp and sftp are all different ways of transferring files securely over SSH. scp did use to use its own protocol at one point, but it has been upgraded to use the same underlying protocol as sftp, so it’s perfectly fine to continue using the same command, if that’s what you’re used to. There is no sign that the scp command itself is going to be deprecated at any point, though no doubt the option to fall back to the old protocol for compatibility’s sake is likely to be removed eventually. egrep/fgrep -- it has been true for decades (possibly has always been true for the GNU utilities?) that egrep and fgrep are just synonyms for “grep -E” and “grep -F” respectively. And it is true that the alternative names are finally being deprecated after all these years, so it behooves you to learn to use the “grep” command for all forms. netstat vs ss -- yes, another case of the newer iproute2-based command taking over from the older, traditional command, and offering more features besides. Same remarks as above apply. route vs ip route -- iproute2 again. arp vs ip neighbour/neighbor -- more iproute2.
participants (1)
-
Lawrence D'Oliveiro