Important Network Commands In Linux
Chapter:
Linux Commands
Last Updated:
24-08-2023 17:51:23 UTC
Program:
/* ............... START ............... */
Important Network Commands In Linux
/* ............... END ............... */
Output
ifconfig or ip addr: Displays or configures network interfaces, IP addresses, and related information.
ping: Sends ICMP echo requests to a target host to check network connectivity and measure round-trip time.
traceroute or tracert: Traces the route taken by packets from your computer to a destination host, showing all
intermediate hops.
netstat or ss: Displays network statistics, active connections, listening ports, and routing table information.
nslookup or dig: Resolves domain names to IP addresses and vice versa using DNS queries.
wget or curl: Downloads files from the internet using HTTP, HTTPS, or FTP protocols.
ssh: Initiates a secure remote shell connection to another host for remote management.
scp or rsync: Copies files securely between hosts over SSH.
nmap: Scans hosts and networks to discover open ports, services, and other information.
iptables or firewalld: Configure firewall rules and manage network traffic filtering and NAT.
route or ip route: Manages the routing table, including adding, deleting, or modifying routes.
ifup and ifdown: Used to bring up or shut down network interfaces.
hostname and hostnamectl: Display or change the hostname of the system.
arp: Displays and manages the ARP cache, used for resolving IP addresses to MAC addresses.
iwconfig or iw: Configures wireless network interfaces and displays information about wireless networks.
netcat or nc: A versatile networking utility that can establish various types of network connections.
tcpdump: Captures and analyzes network traffic for troubleshooting and analysis.
sshd: The SSH server daemon that allows secure remote access to the system.
dhclient or dhcpcd: Used to obtain an IP address and other network settings from a DHCP server.
host or hostname: Displays the hostname of the system.
Notes:
-
Remember that many of these commands might require administrative privileges (root or sudo) to execute successfully. Additionally, the specific options and functionalities of these commands can vary between different Linux distributions and versions, so it's always a good idea to consult the respective man pages or documentation for accurate information.