Popular Linux Network Command 2024

1. ping

1
ping google.com

2. traceroute

1
traceroute google.com

3. netstat

1
netstat -tuln

4. ifconfig

1
ifconfig

5. iwconfig

1
iwconfig

6. route

1
route

7. ss

1
ss -tuln

8. hostname

1
hostname

9. dig

1
dig google.com

10. host

1
host google.com

11. arp

1
arp

12. ethtool

1
ethtool eth0

13. mii-tool

1
mii-tool eth0

14. tcpdump

1
tcpdump -i eth0

15. nmap

1
nmap google.com

16. ip

1
ip addr show

17. ‘curl’

1
curl google.com

18. ‘wget’

1
wget google.com

19. ‘nslookup’

1
nslookup google.com

20. ‘telnet’

1
telnet google.com 80

21. ‘ssh’

1
ssh user@server

22. ‘scp’

1
scp file.txt user@server:/path

23. ‘rsync’

1
rsync -avz /path user@server:/path

24. ‘ftp’

1
ftp server

25. ‘sftp’

1
sftp user@server

26. ‘whois’

1
whois google.com

27. ‘iptraf’

1
iptraf

28. ‘iftop’

1
iftop

29. ‘bmon’

1
bmon

30. ‘vnstat’

1
vnstat

31. ‘nethogs’

1
nethogs

32. ‘darkstat’

1
darkstat

33. ‘netcat’

1
netcat -l 1234

34. ‘socat’

1
socat TCP-LISTEN:1234,fork

35. ‘ngrep’

1
ngrep -q -d eth0 'keyword'

36. ‘tcpflow’

1
tcpflow -c -i eth0 port 80

37. ‘tcptrack’

1
tcptrack -i eth0

38. ‘tcptraceroute’

1
tcptraceroute google.com 80

39. ‘traceroute’

1
traceroute google.com

40. ‘mtr’

1
mtr google.com

mtr parameters

  • --report - Report mode
  • --report-cycles - Number of pings sent to determine average
  • --report-wide - Wide report mode
  • --report-csv - CSV report mode
  • --show-ips - Show IP addresses instead of hostnames

41. ‘htop’

1
htop

htop parameters

  • F2 - Setup
  • F3 - Search
  • F4 - Filter
  • F5 - Tree
  • F6 - Sort
  • F7 - Nice
  • F8 - Renice
  • F9 - Kill
  • F10 - Quit

42. ‘iotop’

1
iotop

iotop parameters

  • o - Only show processes or threads actually doing I/O
  • p - Show accumulated I/O instead of bandwidth
  • a - Show accumulated I/O for all processes
  • u - Show accumulated I/O for processes or threads
  • d - Delay in seconds between iterations
  • q - Quit

References