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
- SetupF3
- SearchF4
- FilterF5
- TreeF6
- SortF7
- NiceF8
- ReniceF9
- KillF10
- Quit
42. ‘iotop’
1 | iotop |
iotop parameters
o
- Only show processes or threads actually doing I/Op
- Show accumulated I/O instead of bandwidtha
- Show accumulated I/O for all processesu
- Show accumulated I/O for processes or threadsd
- Delay in seconds between iterationsq
- Quit
References
- https://www.cyberciti.biz/faq/linux-find-out-default-gateway-ip-address-command/
- https://www.cyberciti.biz/faq/linux-arp-command-examples/
- https://www.cyberciti.biz/faq/linux-route-add/
- https://www.cyberciti.biz/faq/linux-route-delete-command/
- https://www.cyberciti.biz/faq/linux-route-print-command/
- https://www.cyberciti.biz/faq/linux-route-command/
- https://www.cyberciti.biz/faq/linux-route-add/
- https://www.cyberciti.biz/faq/linux-route-delete-command/
- https://www.cyberciti.biz/faq/linux-route-print-command/
- https://www.cyberciti.biz/faq/linux-route-command/
- https://www.cyberciti.biz/faq/linux-route-add/
- https://www.cyberciti.biz/faq/linux-route-delete-command/
- https://www.cyberciti.biz/faq/linux-route-print-command/
- https://www.cyberciti.biz/faq/linux-route-command/
- https://www.cyberciti.biz/faq/linux-route-add/