Basic Linux networking commands

Command w : Shows who is currently logged in system

Command who : shows who is on logged in on the server in an shell

Command netstat : Shows all current network connections

Command netstat -apn : Shows all connections to the server, the source and destination ips and ports

Command netstat -rn : Shows routing table for all ips bound to the server

Command top : Shows live system processes in a formatted table, memory information, uptime and other useful info
While in top, Shift + M to sort by memory usage or Shift + P to sort by CPU usage
Command top -u root : Show processes running by user root only

Command route -n : Shows routing table for all ips bound to the server

Command nslookup yahoo.com : Query your default domain name server (DNS) for an Internet name (or IP number) host_to_find

Command traceroute yahoo.com : Have a look how you messages travel to yahoo.com
Command tracepath yahoo.com : Performs a very similar function to traceroute
Command ifconfig : Display info on the network interfaces
Command ifconfig -a : Display into on all network interfaces on server, active or inactive..
Command ping : Sends test packets to a specified server to check if it is responding properly
Command ping yahoo.com : Sends echo requests to yahoo.com
Command mii-tool : Checks what your duplex settings are.
Command arp : Command mostly used for checking existing Ethernet connectivity and IP address
Command hostname : Tells the user the host name of the computer they are logged into.
Command findsmb : Used to list info about machines that respond to SMB name queries. findsmb with no argument would find all machines possible. You can also specify a particular subnet to localize search.
Command host yahoo.com : Performs a simple lookup of an internet address using DNS.
Command dig yahoo.com : The "domain information groper" tool. This example looks up information about yahoo.com such as IP.
Command dig -x 66.94.234.13 : Looks up the address and returns the associated domain name. dig takes a huge number of options (at the point of being too many), refer to the manual page for more information.
Command whois : Used to look up the contact information from the “whois” databases. Also reports IP address and name server of domain as well as creation and expiration dates..
Command ftp : File transfer protocol. Transfers files to another host (insecure)
Command rdesktop : Display remote desktop on Linux Machine. You can use to connect to Windows.

Comments

Popular posts from this blog

Installation of Linux version of XAMPP

How to Install and Enable the SNMP Service