ifconfig
- Display network interface information.
ping
- Send ICMP ECHO_REQUEST to network hosts.
ping amazon.com
route
- Display or manipulate the IP routing table.
route -n
ip
- Show/manipulate routing, devices, policy routing,
and tunnels.
ip address show
traceroute
- Print the route packets trace to network host.
traceroute amazon.com
netstat
- Print network connections, routing tables, interface
statistics, masquerade connections, and multicast
memberships.
netstat -an
hostname
- Show or set the system's host name.
hostname -[option] [file]
Socket Statistics(SS)
- Display socket statistics.
ss [options]
Domain Information Groper(dig)
- DNS lookup utility.
dig [server] [name] [type]
route
- Manipulate routing tables.
route add default gw 192.168.1.1
iptables
- Administration tool for IPv4 packet filtering and
NAT.
iptables -L
tcpdump
- Dump traffic on a network.
tcpdump -i eth0
sshd
- OpenSSH daemon.
service sshd restart
telnet
- User interface to the TELNET protocol.
telnet google.com 80
scp
- Secure copy (remote file copy program).
scp file.txt user@remote:/path/to/destination
wget
- Non-interactive network downloader.
wget http://example.com/file.zip
curl
- Command line tool for transferring data with URL
syntax.
curl http://example.com/api
iptraf
- Interactive color IP LAN monitor.
Iptraf
iftop
- Display bandwidth usage on an interface.
Iftop
nmap
- Network exploration tool and security scanner.
nmap -sP 192.168.1.0/24
lsof
- List open files.
lsof -i :80
ethtool
- Display or change ethernet card settings.
ethtool eth0
arp
- Display or modify the ARP cache.
arp -a
route
- Display or modify the IP routing table.
Route
hostnamectl
- Control the system hostname and related settings.
hostnamectl status
resolvconf
- Manage DNS information.
resolvconf -u
mtr
- Network diagnostic tool.
mtr google.com
iwconfig
- Configure a wireless network interface.
Iwconfig
nc
- Arbitrary TCP and UDP connections and listens.
nc -l 8080
scp
- Copy files between hosts on a network.
scp file.txt user@host:/path/to/destination
ssh-keygen
- Generate, manage, and convert authentication keys
for ssh.
ssh-keygen -t rsa
tcpdump
- Capture and display packets on a network.
tcpdump -i eth0 tcp port 80
nmcli
- Command-line client for NetworkManager.
nmcli connection show
nload
- Visual representation of incoming and outgoing
traffic.
Nload
iperf
- Tool for measuring TCP and UDP bandwidth
performance.
iperf -c server_ip
fping
- Quickly ping multiple hosts.
fping -a -g 192.168.1.1 192.168.1.254
iftop
- Real-time console-based network bandwidth
monitoring tool.
iftop -n
route
- Delete a route.
route del -net 192.168.2.0 netmask
255.255.255.0
tcpdump
- Capture and display packets in ASCII.
tcpdump -A -i eth0
netcat
- Utility for reading from and writing to network
connections.
nc -zv 192.168.1.1 22
nmtui
- Text User Interface for controlling NetworkManager.
Nmtui
ethtool
- Change the speed/duplex settings of an Ethernet
device.
ethtool -s eth0 speed 100 duplex full
ss
- Show listening sockets.
ss -l
nmcli
- List available Wi-Fi networks.
nmcli device wifi list
Top comments (1)
ifconfig
is deprecated. Anything it could do you can and should useip
command for.