Linux Networking Command Pallette🌸:
command | description |
reference |
---|---|---|
ifconfig | Display and manipulate route and network interfaces. |
$ ifconfig |
ip | It is a replacement of ifconfig command. Use ip link show command to display all network interfaces on the system. |
$ ip link show |
ip route show | Use the IP route to print or display the routing table. |
$ ip route show |
ping -c 3 google.com | By default, ping runs in an infinite loop. To send a defined number of packets, use -c flag |
$ ping -c 3 google.com |
ss -t -a | ss command with -t and -a flags to list all TCP sockets. This displays both listening and non-listening sockets. ss gets details about network sockets. |
$ ss -t -a |
iftop | Monitors stats related to bandwidth. |
$ iftop |
dig [domain] | Show DNS information about a domain using the dig command |
$ dig [domain] |
dig -x [ip_address] | Do reverse lookup of an IP address |
$ dig -x [ip_address] |
lastlog | The lastlog command is used to find the details of a recent login of all users or of a given user. |
$ lastlog |
firewalld | CLI tool to configure rules of Firewall. |
$ firewalld |
tcpdump | Packet sniffing and analyzing utility used to capture, analyze and filter network traffic. |
$ tcpdump |