?? ????? ?????????? ????????
?? ????? ?????????? ????????
It’s a good practice to update your package lists before installing new software or running commands that rely
on package availability. Please use sudo apt update before executing the following commands.
ifconfig
1 ifconfig Display network interface information
ifconfig -a
ip address
Show and manipulate routing, network
2 ip ip address show
devices, interfaces, and tunnels.
ip a
route
route -n
Manipulate routing tables:
route add default gw 192.168.1.1
Display or manipulate the IP routing Add a new route:
3 route table route add -net 192.168.2.0 netmask
255.255.255.0 gw 192.168.1.1
Delete a route:
route del -net 192.168.2.0 netmask
255.255.255.0
in/harunseker/ 1
This command provides a summary of socket
statistics:
ss -s
dig google.com
dig google.com +short
9 dig DNS lookup utility
dig +short A google.com
dig +short MX google.com
tcpdump -i eth0
Capture and display packets on a
tcpdump -i eth0 tcp port 80
13 tcpdump network.
Capture and display packets in ASCII:
Dump traffic on a network
tcpdump -A -i eth0
in/harunseker/ 2
Secure copy (remote file copy
16 scp program) scp file.txt
Copy files between hosts on a network user@remote:/path/to/destination
iftop
Display bandwidth usage on an Real-time console-based network bandwidth
20 iftop
interface monitoring tool:
sudo iftop -n
nc -l 8080
Arbitrary TCP and UDP connections Utility for reading from and writing to network
29 nc
and listens connections:
nc -zv 192.168.1.1 22
in/harunseker/ 3
Visual representation of incoming and
32 nload
outgoing traffic nload
fping -a -g 192.168.1.1
34 fping Quickly ping multiple hosts
192.168.1.254
in/harunseker/ 4