9. Networking in Linux Flashcards
What is the command to have the hostname of the linux computer?
hostname
What is the command to have the private ip address of the linux computer?
hostname -i
What are the commands to have the information about the network interface the computer have?
ip address or ifconfig
What is the ip address with the command ip address (with private range) with network mask?
inet
What is the MAC address with the command ip address ?
link/ether
What is the command to have the default routing table for the computer?
ip route
What are the commands to verify connectivity with a remote server?
ping or traceroute
What is the command to perform dns lookup?
nslookup
What is the command to get information of the owner of a specific domain?
whois
What is the purpose of ssh?
To connect remotly to another computer.
What is the protocol used by ssh?
TCP
What is the port used by ssh?
22
What is the name of the package of ssh server?
openssh-server
What is the command to check if the ssh server is running or not?
service ssh status
What is the command to start the ssh server?
service ssh start