Module 12 Live Virtual Machine Labs 1-4 Flashcards
lab 12-1
Which file is used for defining the hostname?
/etc/hosts
/etc/netwrok
/etc/hostname
/etc/names
/etc/hostname
Which command is used to view the full hostname?
hostname -d
hostname -f
hostname
hostname -n
hostname -f
Which command is used to display the hostname and its related information?
sysconfig
show-name
hostname
hostnamectl
hostnamectl
Which command displays the short name of a system?
hostname -d
hostname -s
hostname -n
hostname -f
hostname -s
Which of the following is the correct command to display the hostname?
nmcli general name
nmcli hostname
nmcli general host
nmcli general hostname
nmcli general hostname
lab 12-2
Which command should you use to query databases for information on various components including password, group, hosts, services, and protocols
where
find
which
getent
getent
In a Linux system, which two files are used for name resolution? [Choose two.]
/etc/network
/etc/dns
/etc/resolv.conf
/etc/hosts
/etc/hosts
/etc/resolv.conf
Which file defines the order, files, dns, myhostname?
/etc/nsswitch.conf
/etc/dns
/etc/resolv.conf
/etc/network
/etc/hosts
/etc/nsswitch.conf
Which file defines the order in which the name resolution is to be performed?
/etc/nsswitch.conf
/etc/resolv.conf
/etc/hosts
/etc/dns
/etc/network
/etc/nsswitch.conf
Which command provides more information than the host command and provides information on the nameservers?
netstat
nslookup
dig
host
dig
lab 12-3
Which protocol is the underlying protocol for OpenSSH?
RDP
TLS
SSH
SSL
SSH
What is the service name for SSH?
ssh.confg
ssh
sshd.service
ssh.service
sshd.service
When creating a rule in Iptables, which parameter allows to define a specific port?
–dport
–pport
–serviceport
–port
-dport
lab 12-4
Which two remote connectivity programs are replaced by SSH? [Choose two.]
RDP
telnet
rlogin
http
telnet
rlogin
The _________ file contains the configuration settings for the OpenSSH Server
/etc/ssh/config
/etc/ssh/sshdconfig
/etc/ssh/sshd
/etc/ssh/sshd_config
/etc/ssh/sshd_config