Networking Commands
Networking Commands
1. ip a
2. Ping
It is used to test network connectivity between two devices by
sending ICMP (Internet Control Message Protocol) Echo Request
packets.
$ ping 10.184.40.163
3. ifconfig
Shows and configures the network interfaces on the current
system.
$ ifconfig wlo1
4. ifquery
Checks the current setup and settings of network
interfaces.
$ ifquery --list
5. nmcli
Reports the network status, manages and configures the
network connections and controls the NetworkManager tool.
$ arp
7. arp -a
$ arp -a
8. netstat
Shows active network connections, routing information, and
other network statistics.
$ netstat -antp
Lists all active network connections and the processes using
them.
9. trace route
It is used to trace the path that packets take from your computer
to a destination (like a website or server).
$ traceroute www.google.com
10. telnet
This command is used to establish a remote connection to
another computer or server over the Telnet protocol.
$ telnet 10.184.49.18 22
Connects to the SSH server on 10.184.49.18 via Telnet.
11. iperf
iperf is a command-line tool used to test network bandwidth,
speed, and performance between two systems. It helps measure
network throughput, latency, and packet loss in a controlled
manner.
$w
13. ss
The ss -ntulp command is used to display detailed information
about network connections and listening ports on a Linux
system.
$ ss -ntulp
14. Nslookup
The nslookup command is used to query DNS (Domain Name
System) records and find IP addresses or domain information.
$ nslookup google.com
15. host
The host command is used to perform DNS lookups in Linux. It
helps in querying IP addresses, domain names, mail servers (MX
records), and other DNS records.
$ host google.com
16. dig
$ dig google.com
17. whois
Retrieves information about domain ownership from various
WHOIS servers.
$ whois google.com
18. CPU info
To check CPU Information
$ cat /proc/cpuinfo
19. Memory info
To Check Memory Information
$ cat /proc/meminfo
20. speedtest
Runs a speed test to measure download/upload speeds
$speedtest-cli
21. tarcepath
The command identifies paths and latencies from source to
destination, mapping the router and network hops.
$ tracepath 192.168.1.28
22. wget
The wget command downloads files from the web using HTTP,
HTTPS, or FTP protocols. The tool is simple to use for file
downloads.
$ wget https://example.com/file.zip
23. mtr
24. top
The top command is a network monitoring utility. Use the
command to view network connections and bandwidth usage in
real time.
$ top
25. tcpdump
$ sudo iptables -L
27. Ssh
The ssh [email protected] command is used to securely
connect to a remote system via SSH (Secure Shell). It allows you
to log into a remote server and execute commands as if you were
physically present.
$ ssh [email protected]
28. scp
The scp (Secure Copy) command is used to copy files securely
between a local and a remote system using SSH (Secure Shell)
encryption.
scp <source_file>
<user>@<remote_host>:<destination_path>