Unix Network Commands Flashcards

1
Q

arp

A

address resolution protocol used to display and control mac address to IP address

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

What does “arp -a “ does?

A

displays current options

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

What does “arp -n” does?

A

displays iP as numbers instead of symbols

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

What does “arp -i” does?

A

specifies that the arp command should be limited to the interface

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

What does “arp -d” does?

A

deletes entry

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

What does “arp -s” does?

A

added entry

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

What does “arp -s tmp “ does?

A

makes the entry temporary

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

What does “arp -s reject” does?

A

traffic to the destination specified will be rejected. sender will be notified

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

What does “arp -s blackhole” does?

A

traffic to the destination specified will be rejected. sender will not be notified.

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

dig

A

used to resolve FQDN to Ip address

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

host

A

used to resolve FQDN to IP and IP to FQDN

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

ifconfig

A

display host configuration about those interfaces. This could also update the configuration

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

traceroute

A

prints out the route packets trace to network host

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

netstat

A

display various information about current connections

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

What does “netstat -a “ does?

A

displays all host active Ip-based sessions

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

What does “netstat - b “ does?

A

shows the names of the programs

17
Q

What does “netstat -r” does?

A

shows the routing table

18
Q

What does “netstat -s” does?

A

shows the statics

19
Q

ping

A

used to test network reachability

20
Q

what does “ping -c” does?

A

the number of pings to send

21
Q

what does “ping -d” does?

A

don’t fragment bit

22
Q

what does “ping -s” does?

A

let you pick which host to send from if machine has more than one host.

23
Q

whois

A

search the directory service for information about a client

24
Q

iptables

A

used to set up and maintain and inspect packed used to filter traffic for ip4/6

25
Q

what does iptables -a mean?

A

add a rule

26
Q

what does iptables -c mean?

A

mean to check a rule

27
Q

what does iptables -j mean?

A

tell what to do if a packet match

28
Q

what does iptables -d mean?

A

delete a rule

29
Q

What are the 3 chains in IPtable

A

INPUT, OUTPUT, FOWARd

30
Q

tcpdump

A

dumps network traffic.