Still using these obsolete Linux commands? They might be popular from the olden days but perhaps it is time to look for alternatives.

  • HeartyOfGlass@piefed.social
    link
    fedilink
    English
    arrow-up
    53
    ·
    20 hours ago

    Listed programs:

    • scp - “potentially deprecated”
    • e/fgrep - replaced with grep flags
    • net-tools, which includes
      • netstat
      • arp
      • route
      • iptunnel *nameif
    • ifconfig
    • iwconfig
    • iptables
    • pkjqpg1h@lemmy.zip
      link
      fedilink
      English
      arrow-up
      75
      ·
      20 hours ago

      Replacement:

      • scprsync or sftp

      • egrep --> grep -E

      • fgrep --> grep -F

      • netstat --> ss

        • arp --> ip n
        • route --> ip route
        • iptunnel --> ip tunnel
        • nameif --> ip link
      • ifconfig --> ip

      • iwconfig --> iw

      • iptables --> nftables

    • KindaABigDyl@programming.dev
      link
      fedilink
      arrow-up
      30
      ·
      edit-2
      19 hours ago

      They can take ifconfig from my cold, dead hands. I will not learn ip

      scp too. What even is an rsync? BS that’s what!

    • ken@discuss.tchncs.de
      link
      fedilink
      arrow-up
      13
      ·
      edit-2
      17 hours ago

      Just to be clear, most of these (think about egrep/fgrep for 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.