Posts

Showing posts with the label Basic Linux networking commands

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 ...