Linux users often stick to familiar commands, but change can be slow. Some classic tools have been replaced by newer alternatives, and it’s essential to keep up with the latest developments. Here are five deprecated Linux commands you should know about:
1. **arp** vs. **ip neigh** or **ip n**: ARP (Address Resolution Protocol) requests used to use the “arp” command, but a decade ago, the new norm shifted to using “ip neigh” or its shorter version, “ip n.” The newer “ip” command is part of the iproute2 package.
2. **ifconfig** vs. **ip a**: ifconfig has been legacy for years and was discontinued long ago. The new standard is “ip a,” which offers modern features and faster configuration options.
3. **iptables** vs. **nftables**: iptables, a long-standing firewall command, was deprecated by RHEL 9 in 2022. nftables took its place as the default firewall tool in Debian 10 in 2019 and found its way into the kernel in 2014.
4. **which**: This command has been replaced by built-in alternatives like “type” (for Bash, Zsh, and others) or simply “-v” for most shells. These new commands are faster, more efficient, and often more convenient.
5. **netstat** vs. **ss**: The classic netstat command is now largely obsolete in favor of the newer “ss” command, which offers improved speed and utility. With features like viewing listening TCP sockets or connection status at various stages, ss has become a go-to tool for network socket information.
Source: https://www.howtogeek.com/stop-using-these-deprecated-linux-commands-and-what-to-use-instead