Commands Flashcards

1
Q

ipconfig:

A

provides basic information about the NIC, such as the IP address, subnet mask, and default gateway

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

ipconfig/all:

A

shows a comprehensive listing of TCP/IP configuration information for each NIC

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

ipconfig/displaydns:

A

shows the contents of the DNS cache

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

ipconfig/flushdns:

A

erase the contents of the DNS cache

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

Linux systems

ifconfig eth0:

A

shows the configuration of the first Ethernet interface (NIC) on a Linux system

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

Linux systems

ifconfig eth0 promisc:

A

enables promiscuous mode on the first Ethernet interface

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

Linux systems

ifconfig eth0 -promisc:

A

disable promiscuous mode

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

Linux systems

ifconfig eth0 allmulti:

A

enables multicast mode on the NIC

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

ip link show:

A

shows the interfaces along with some details on them

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

ip link set eth0 up:

A

enables a network interface

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

ip -s link:

A

Shows statistics on the network interfaces

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

Netstat:

A

displays a listing of all open TCP connections

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

Netstat -a:

A

displays a listing of all TCP and User Datagram Protocol (UDP) ports that a system is listening on, in addition to all open connections

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

Netstat -r:

A

Displays the routing table

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

Netstat -e:

A

displays details on network statistics, including how many bytes the system sent and recieved

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

Netstat -s:

A

displays addresses and port numbers in numerical order. This can be useful if you’re looking for information related to a specific IP address or a specific port

17
Q

Netstat -p protocol:

A

shows statistics on a specific protocol, such as TCP or UDP

18
Q

arp:

A

without a switch, shows help on Windows

without a switch, shows the ARP cache on Linux

19
Q

arp -a:

A

Shows the ARP cache on Windows

20
Q

arp -a 192.168.1.1:

A

Displays the ARP cache entry for the specified IP address