Command Line Tools Flashcards
Ping
Used to test the reachability between two systems
ipconfig / ifconfig / ip
Displays TCP/IP + Network adapter information
nslookup / dig
Used to discover the IP address / DNS records of a specific domain name
- Names + IP addresses
nslookup is no longer used and is now replaced with the dig command
traceroute / tracert
Allows you to see the path that a packet takes to its destination using ICMP Time to Live exceeded messages.
Increases the TTL by one for each hop it makes until it reaches the destination.
Tracert = Windows
Traceroute = Linux/MacOS
arp
Helps you determine a mac address based on an IP address
netstat
Used to examine the TCP/IP connections on a given host
Lists all open ports and current network connections
telnet
Used to login to devices remotely, no encryption involved
Good to use if you want to check if a port/application is open and is responding to queries
tcpdump
Allows you to capture packets from the command line
Unix/Linux = tcpdump
Windows = WinDump
nmap
Used as a Port scanner to find devices and identify open ports
Can also be used to identify what OS is being used
TTL
Specifies the number of hops that a packet takes
TTL 1 is the first router, TTL 2 is the second router, etc
arp -a
View your local arp table
netstat -a
Displays all active TCP connections and the TCP/UDP ports on which the computer is listening
netstat -b
Displays the executables that are being used to create network traffic
netstat -n
Does not revolve names, only shows IP addresses
hostname
Used to view the FQDN and IP address of a device