Basic network commands
Used to display the current route tables on a host, can be used to add or remove routes, used by the local host to determine where to send traffic
Route
Leverages SSH (Secure shell) for authentication and encryption and used to securely copy files between servers
SCP
Which network protocol provides a secure way to access a remote computer over an unsecured network? a) HTTP b) TCP c) SSH d) UDP
SSH
Which protocol provides remote access over encrypted connections? 1) FTP 2) SSH 3) DNS 4) ICMP
SSH
Displays packets that are being transmitted over the network system, is a form of protocol analyzer, and shows the contents of network packets in human-readable form
TCPDUMP
Allows a user to manage accounts and devices remotely, Can be encrypted to secure data from eavesdropping, and Can be encrypted, as well
TELNET/SSH
Transfers a file from either a client to a server or from a server to a client, uses UDP instead of TCP, typically used on reliable (local) networks
TFTP
Displays the path taken by a packet from its source to its destination, can be used by any user, regardless of privileges, and primarily used in windows
TRACEPATH
If I want to measure latency between more than two devices, what network command do I use?
TRACEROUTE/TRACERT
Used to trace the route an IP packet takes to a destination, displays each hop's IP address and the time it takes to receive the packet, used for Linux and Windows systems, and useful in troubleshooting performance and connectivity issues.
TRACEROUTE/TRACERT
What protocol is used for sending short messages, called datagrams, and is less reliable than TCP? a) TCP b) UDP c) SNMP d) DNS
UDP
Most often used to look up who owns a domain or block of IP addresses on the Internet, returns information including name, email, address, and physical address, privacy options may hide this information from being returned, primarily used in Linux
WHOIS
Which command is used to display and modify entries in the ARP cache? a) arp b) ping c) nslookup d) ssh
arp
What does the address resolution protocol (ARP) cache map? 1) IP address to network destinations 2) I) address to MAC addresses 3) MAC addresses to interfaces 4) MAC addresses to ICMP
2
Which command should be run in Linux to ping an IP address 192.168.0.15 eight times before it automatically terminates the process? 1) Ping -w 192.168.0.15 2) Ping -s 192.168.0.15 3) Ping -i 192.168.0.15 4) Ping -c 192.168.0.15
4
Displays the IP to physical (MAC) address mappings for hosts that have been discovered. Used to add, remove, or modify entries in the cache, and discovers addresses by broadcasting to the network and noting the reply from the owner
ARP (Address resolution protocol)
What protocol is used to automatically assign IP addresses and other network configuration information to devices on a network? a) DHCP b) SNMP c) SMTP d) HTTP
DHCP
Used to retrieve the entire DNS response message used for lookups and display answers from the query uses the OS resolver libraries, and native to Linux
DIG
Which protocol is used to obtain domain name or IP address mapping information by querying DNS servers? a) FTP b) SSH c) DNS d) SNMP
DNS
Displays information about a user or users on a remote system, includes information such as last login time and username, and primarily used in Linux
FINGER
Copies the files from one host to another host, the data is unencrypted unless a secure sockets layer is used, and transfer uses TCP used on the internet and other wide-area networks
FTP
What protocol is used for transferring files between a client and a server on a computer network? a) POP3 b) SMTP c) HTTP d) FTP
FTP
Which protocol is used for transferring hypertext documents on the World Wide Web? a) FTP b) SSH c) HTTP d) SNMP
HTTP
Used to configure the kernel network interfaces, implemented at the time of booting to configure the necessary interfaces, used for debugging or tuning the system, and primarily used in Linux
IFCONFIG
Provides the user with IP, subnet mask, and default gateway for each network adapter, can be used to release all connection's and renew all adapter, and primarily used in Windows
IPCONFIG
A server administrator is tasked to harden the database servers, and one of the requirements is to document any firewall ports that are open and closed. Which native Windows command line utility should the administrator use?
NETSTAT
Displays information about active ports, useful troubleshooting and capacity management, Displays routing information for network adapters, available in Windows, MacOS, and Linux.
NETSTAT
An organization needs to perform an analysis to identify vulnerabilities such as open firewall ports, unauthorized operating systems or device types, and weak passwords. Which tool is recommended?
NMAP
Scans networks to find hosts and open ports, helps determine what is deployed on a network, and not native to either Linux or Windows but can be used with both
NMAP
Displays some DNS information, troubleshoots DNS problems, useful in displaying names to IP address mappings, and native to both Windows and Linux
NSLOOKUP
Test connectivity to other hosts, sends an ICMP echo request to a host and listens for the reply, useful in troubleshooting connectivity issues, and measures latency between two devices
PING
What command is used to test the reachability of a host on an IP network and measure round-trip time? a) traceroute b) ipconfig c) ping d) nslookup
Ping
Which command displays the configuration of network interfaces on your system? Can pick more than one option. a) ifconfig b) ipconfig c) netstat d) route
ifconfig/ipconfig
What command displays network connections, routing tables, interface statistics, and more? a) arp b) netstat c) route d) telnet
netstat
Which command is used to establish a connection to a remote host using the Telnet protocol? a) ssh b) telnet c) ftp d) ping
telnet