9. Networking in Linux Flashcards

1
Q

What is the command to have the hostname of the linux computer?

A

hostname

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

What is the command to have the private ip address of the linux computer?

A

hostname -i

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

What are the commands to have the information about the network interface the computer have?

A

ip address or ifconfig

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

What is the ip address with the command ip address (with private range) with network mask?

A

inet

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

What is the MAC address with the command ip address ?

A

link/ether

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

What is the command to have the default routing table for the computer?

A

ip route

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

What are the commands to verify connectivity with a remote server?

A

ping or traceroute

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

What is the command to perform dns lookup?

A

nslookup

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

What is the command to get information of the owner of a specific domain?

A

whois

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

What is the purpose of ssh?

A

To connect remotly to another computer.

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

What is the protocol used by ssh?

A

TCP

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

What is the port used by ssh?

A

22

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

What is the name of the package of ssh server?

A

openssh-server

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

What is the command to check if the ssh server is running or not?

A

service ssh status

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

What is the command to start the ssh server?

A

service ssh start

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

Can I create a ssh connection via root user by default? (Yes or no)

A

No.

17
Q

What is the command to connect to a ssh server with bash or powershell?

A

ssh -p [port] username@domainname

18
Q

What is the command to get the content of a webpage from a website?

A

curl

19
Q

What is the command to download files from internet?

A

wget

20
Q

What is the color of png file on ubuntu?

A

purple