Commands Flashcards
What does the ping command do?
Tests reachability and determines round-trip time.
What does the netstat command do?
Provides network statistics on many different operating systems.
What does the netstat -a command do?
Shows all active connections.
What does the netstat -b command do?
Shows binaries (Windows).
What does the netstat -n command do?
Does not resolve names.
What does the traceroute command do?
Determines the route a packet takes to a destination and maps the entire path using tracert (Windows) or traceroute (POSIX).
What does the nslookup command do?
Looks up names and IP addresses from DNS servers, available on both Windows and POSIX-based systems.
What does the dig command do?
Provides more advanced domain information, probably your first choice for domain queries.
What does the arp command do?
Determines a MAC address based on an IP address.
What does the arp -a command do?
Views the local ARP table.
What does the ipconfig command do?
Provides Windows TCP/IP configuration.
What does the ifconfig command do?
Provides Linux interface configuration.
What does the tcpdump command do?
Captures packets from the command line and is available in most Unix/Linux operating systems. It can apply filters, view in real-time, save the data in pcap format, and can be overwhelming to parse and filter.
What does the nmap command do?
Network mapper that finds and learns more about network devices, performs port scans, operating system scans, and service scans.
What does the netcat command do?
“Reads” or “writes” to the network by opening a port and sending or receiving some traffic. It has many different functions, such as listening on a port number, transferring data, scanning ports, and can become a backdoor to run a shell from a remote device.