0% found this document useful (0 votes)
15 views4 pages

?? ????? ?????????? ????????

The document provides a list of essential network commands along with their descriptions and examples for usage in a Linux environment. It emphasizes the importance of updating package lists using 'sudo apt update' before executing commands. The commands cover various functionalities such as displaying network information, manipulating routing tables, and performing DNS lookups.

Uploaded by

dadaluffy4321
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)
15 views4 pages

?? ????? ?????????? ????????

The document provides a list of essential network commands along with their descriptions and examples for usage in a Linux environment. It emphasizes the importance of updating package lists using 'sudo apt update' before executing commands. The commands cover various functionalities such as displaying network information, manipulating routing tables, and performing DNS lookups.

Uploaded by

dadaluffy4321
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/ 4

in/harunseker/

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.

No Command Description Example

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

Send ICMP ECHO_REQUEST to ping google.com


4 ping
network hosts ping -c 4 google.com

Print the route packets trace to


5 traceroute
network host traceroute google.com

Print network connections, routing


6 netstat
tables, interface statistics netstat -an

in/harunseker/ 1
This command provides a summary of socket
statistics:
ss -s

This command displays TCP, UDP, listening,


and process information:
ss -tulpn

7 ss Display socket statistics


This command shows all TCP sockets,
including both listening and non-listening
sockets:
ss -t -a

Show listening sockets:


ss -l

8 hostname Show or set the system's host name hostname

dig google.com
dig google.com +short
9 dig DNS lookup utility
dig +short A google.com
dig +short MX google.com

Query Internet name servers


10 nslookup
interactively nslookup google.com

11 host DNS lookup utility. host google.com

Administration tool for IPv4 packet


12 iptables
filtering and NAT sudo iptables -L

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

14 sshd OpenSSH daemon service sshd restart

15 telnet User interface to the TELNET protocol telnet google.com 80

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

17 wget Non-interactive network downloader wget http://example.com/file.zip

Command line tool for transferring


18 curl
data with URL syntax curl http://example.com/api

19 iptraf Interactive color IP LAN monitor iptraf

iftop
Display bandwidth usage on an Real-time console-based network bandwidth
20 iftop
interface monitoring tool:
sudo iftop -n

Network exploration tool and security


21 nmap
scanner nmap -sP 192.168.1.0/24

22 lsof List open files lsof -i :80

Display or change ethernet card


23 ethtool
settings ethtool eth0

24 arp Display or modify the ARP cache arp -a

Control the system hostname and


25 hostnamectl
related settings hostnamectl status

26 resolvconf Manage DNS information resolvconf -u

27 mtr Network diagnostic tool mtr google.com

28 iwconfig Configure a wireless network interface iwconfig

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

Generate, manage, and convert


30 ssh-keygen
authentication keys for ssh ssh-keygen -t rsa

nmcli connection show


Command-line client for
31 nmcli List available Wi-Fi networks:
NetworkManager
nmcli device wifi list

in/harunseker/ 3
Visual representation of incoming and
32 nload
outgoing traffic nload

Tool for measuring TCP and UDP


33 iperf
bandwidth performance iperf -c server_ip

fping -a -g 192.168.1.1
34 fping Quickly ping multiple hosts
192.168.1.254

Text User Interface for controlling


35 nmtui
NetworkManager nmtui

in/harunseker/ 4

You might also like