Command Line Tools Flashcards

1
Q

Ping

A

Used to test the reachability between two systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ipconfig / ifconfig / ip

A

Displays TCP/IP + Network adapter information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

nslookup / dig

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

traceroute / tracert

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

arp

A

Helps you determine a mac address based on an IP address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

netstat

A

Used to examine the TCP/IP connections on a given host

Lists all open ports and current network connections

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

telnet

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

tcpdump

A

Allows you to capture packets from the command line

Unix/Linux = tcpdump
Windows = WinDump

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

nmap

A

Used as a Port scanner to find devices and identify open ports

Can also be used to identify what OS is being used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

TTL

A

Specifies the number of hops that a packet takes

TTL 1 is the first router, TTL 2 is the second router, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

arp -a

A

View your local arp table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

netstat -a

A

Displays all active TCP connections and the TCP/UDP ports on which the computer is listening

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

netstat -b

A

Displays the executables that are being used to create network traffic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

netstat -n

A

Does not revolve names, only shows IP addresses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

hostname

A

Used to view the FQDN and IP address of a device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

netstat -r / route print

A

Used to view a devices routing table

Windows = route print
Linux, macOS, windows = netstat -r

17
Q

show interface

A

Allows you to view the interfaces on a device with detailed information such as VLAN, duplex, speed, etc.

18
Q

Show config

A

Allows you to view a devices configuration

19
Q

show route

A

Allows you to view the routing table

20
Q

netstat -e

A

Displays ethernet statistics