KEMBAR78
Networking Commands | PDF | Ip Address | Domain Name System
0% found this document useful (0 votes)
59 views11 pages

Networking Commands

The document lists various Linux networking commands along with their descriptions and example usages. It covers commands for displaying network information, managing routing tables, monitoring network traffic, and performing DNS lookups. These commands are essential for troubleshooting, monitoring, and managing network configurations in a DevOps environment.

Uploaded by

pajejaj803
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views11 pages

Networking Commands

The document lists various Linux networking commands along with their descriptions and example usages. It covers commands for displaying network information, managing routing tables, monitoring network traffic, and performing DNS lookups. These commands are essential for troubleshooting, monitoring, and managing network configurations in a DevOps environment.

Uploaded by

pajejaj803
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Linux Networking Commands

1. iconfig
- Display nework inerface informaon.
Ifconfig

2. ip
- Show/manipulae roung, devices, policy roung,
and unnels.
ip address show

3. route
- Display or manipulae he IP roung able.
route -n

4. ping
- Send ICMP ECHO_REQUEST o nework hoss.
ping google.com
5. traceroute
- Prin he roue packes race o nework hos.
traceroute google.com

6. netstat
- Prin nework connecons, roung ables, inerface
sascs, masquerade connecons, and mulcas
memberships.
netstat -an

7. ss
- Display socke sascs.
ss -tulpn

8. hostname
- Show or se he sysem's hos name.
Hostname
9. dig
- DNS lookup uliy.
dig google.com

10. nslookup
- Query Inerne name servers ineracvely.
nslookup google.com

11. route
- Manipulae roung ables.
route add default gw 192.168.1.1

12. iptables
- Adminisraon ool for IPv4 packe filering and
NAT.
iptables -L

13. tcpdump
- Dump raffic on a nework.
tcpdump -i eth0
14. sshd
- OpenSSH daemon.
service sshd restart

15. telnet
- User inerface o he TELNET proocol.
telnet google.com 80

16. scp
- Secure copy (remoe file copy program).
scp file.txt user@remote:/path/to/destination

17. wget
- Non-ineracve nework downloader.
wget http://example.com/file.zip

18. curl
- Command line ool for ransferring daa wih URL
synax.
curl http://example.com/api
19. iptra
- Ineracve color IP LAN monior.
Iptraf

20. ifop
- Display bandwidh usage on an inerface.
Iftop

21. nmap
- Nework exploraon ool and securiy scanner.
nmap -sP 192.168.1.0/24

22. lso
- Lis open files.
lsof -i :80

23. ethtool
- Display or change eherne card setngs.
ethtool eth0
24. arp
- Display or modify he ARP cache.
arp -a

25. route
- Display or modify he IP roung able.
Route

26. ss
- Display socke sascs.
ss -s

27. hostnamectl
- Conrol he sysem hosname and relaed setngs.
hostnamectl status

28. resolvcon
- Manage DNS informaon.
resolvconf -u
29. mtr
- Nework diagnosc ool.
mtr google.com

30. iwconfig
- Configure a wireless nework inerface.
Iwconfig

31. nc
- Arbirary TCP and UDP connecons and lisens.
nc -l 8080

32. scp
- Copy files beween hoss on a nework.
scp file.txt user@host:/path/to/destination

33. ssh-keygen
- Generae, manage, and conver auhencaon keys
for ssh.
ssh-keygen -t rsa
34. ss
- Show socke sascs.
ss -t -a

35. tcpdump
- Capure and display packes on a nework.
tcpdump -i eth0 tcp port 80

36. route
- Add a new roue.
route add -net 192.168.2.0 netmask
255.255.255.0 gw 192.168.1.1

37. nmcli
- Command-line clien for NeworkManager.
nmcli connection show

38. dig
- Perform DNS lookups.
dig +short A google.com
39. nload
- Visual represenaon of incoming and ougoing
raffic.
Nload

40. iper
- Tool for measuring TCP and UDP bandwidh
performance.
iperf -c server_ip

41. ping
- Quickly ping mulple hoss.
fping -a -g 192.168.1.1 192.168.1.254

42. ifop
- Real-me console-based nework bandwidh
monioring ool.
iftop -n
43. route
- Delee a roue.
route del -net 192.168.2.0 netmask
255.255.255.0

44. tcpdump
- Capure and display packes in ASCII.
tcpdump -A -i eth0

45. netcat
- Uliy for reading from and wring o nework
connecons.
nc -zv 192.168.1.1 22

46. nmtui
- Tex User Inerface for conrolling NeworkManager.
Nmtui

47. ethtool
- Change he speed/duplex setngs of an Eherne
device.
ethtool -s eth0 speed 100 duplex full
48. ss
- Show lisening sockes.
ss -l

49. host
- DNS lookup uliy.
host google.com

50. nmcli
- Lis available Wi-Fi neworks.
nmcli device wifi list

These commands cover a wide range of neworking


asks and can be useful for roubleshoong,
monioring, and managing nework configuraons in a
DevOps environmen.

You might also like