Unix Flashcards

1
Q

What is the /etc/hosts file used for?

A

Map names to ip addresses.

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

What are commands to see all network interfaces?

A

“ip link show” in Linux

“ifconfig -a” in FreeBSD

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

What file is used to configure a machines DNS client?

A

/etc/resolv.conf

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

How are IP addresses and other parameters set in unix?

A

ip address command in Linux.

ifconfig command in FreeBSD.

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

What are the commands to examine a machines routing table?

A

ip route show . Linux

netstat - r . FreeBSD

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