# 14 ### Pergunta Which of the following would be considered a host? ### Resposta * A printer attached to the network via an IP address --- ### Pergunta A service is… ### Resposta * …a feature provided by one computer to another. --- ### Pergunta A network packet contains … ### Resposta * …the IP address of the source machine. * …the IP address of the destination machine. --- ### Pergunta Only servers have hostnames. ### Resposta * False --- ### Pergunta Which of the following protocols defines how network communication functions? ### Resposta * TCP/IP --- ### Pergunta Which of the following are valid IPv4 addresses? ### Resposta * 10.33.55.77 * 192.105.10.10 --- ### Pergunta Which of the following commands will display the IP address on a Linux system? ### Resposta * ifconfig --- ### Pergunta Which of the following commands will display the routing table? ### Resposta * netstat -r * route --- ### Pergunta Which of the following commands will allow you to log into a remote machine? ### Resposta * ssh --- ### Pergunta What option to the netstat command has information shown as numbers rather than names? ### Resposta * -n --- ### Pergunta Which of the following commands will allow you to log into the machine server1 with the account name nick? ### Resposta * ssh nick@server1 --- ### Pergunta The RSA key fingerprint allows the dig command to connect to remote systems. ### Resposta * False --- ### Pergunta When looking at the primary IPv4 configuration file, if the device was configured to be a DHCP client, then the BOOTPROTO value would be set to none. ### Resposta * False --- ### Pergunta When issuing the service network restart command, which of the following occurs? ### Resposta * …takes down all network interfaces, re-reads all related configuration files and then the networking for the system is restarted. --- ### Pergunta Which of the following files contains the IP addresses of the name servers the system should consult in any attempt to resolve names to IP addresses? ### Resposta * /etc/resolv.conf --- ### Pergunta Which of the following commands can be used to display socket statistics, and supports all major packet and socket types? ### Resposta * ss --- # 15 ### Pergunta Which files contain user account information? ### Resposta * /etc/shadow * /etc/passwd --- ### Pergunta Which user can view the /etc/shadow file? ### Resposta * The root user --- ### Pergunta Which command will display the UID, GID and groups your current user belongs to? ### Resposta * id --- ### Pergunta Each user belongs to at least one group. ### Resposta * True --- ### Pergunta Which command will display the users that are currently logged in to the system? ### Resposta * who --- ### Pergunta he sudo command allows regular users to… ### Resposta * …execute commands as another user. --- ### Pergunta Which of the following commands will display the group(s) a user belongs to? ### Resposta * id --- ### Pergunta Which of the following commands will display the groups that the user bob belongs to? ### Resposta * id bob --- ### Pergunta The /etc/group file follows what structure? ### Resposta * group_name:password_placehoder:GID:user_list --- ### Pergunta A GID is associated with a group name. ### Resposta * True --- ### Pergunta A user can belong to… ### Resposta * At least 16 groups --- ### Pergunta Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users. ### Resposta * True --- ### Pergunta In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user. ### Resposta * True --- ### Pergunta Which of the following commands will display how long the system has been running since the last boot? ### Resposta * uptime * w --- ### Pergunta The /etc/shadow file contains plain-text passwords. ### Resposta * False --- ### Pergunta Which command can be used to view the /etc/passwd file entries? ### Resposta * getent --- ### Pergunta All Linux systems allow administrators to log in as root. ### Resposta * False --- ### Pergunta What is the default user for the su command? ### Resposta * The root user --- ### Pergunta Which command would allow a user to execute commands as root? ### Resposta * sudo --- ### Pergunta File permissions cannot be edited by the root user. ### Resposta * False --- ### Pergunta Which command is used to display only the user’s primary group? ### Resposta * id -g --- ### Pergunta Traditional UNIX systems allowed users to belong to how many groups? ### Resposta * 16 --- ### Pergunta What would an account with the UID 376 typically be used for? ### Resposta * System service access. --- ### Pergunta Usernames cannot be the same as group names. ### Resposta * False --- ### Pergunta To display the group(s) a user belongs to use this command: ### Resposta * id --- ### Pergunta Which command will display the groups that the root user belongs to? ### Resposta * id root --- ### Pergunta A value of 0 in the “minimum” password aging field means the user cannot change their password. ### Resposta * False --- ### Pergunta The “Epoch” began on January 1, 1970. ### Resposta * True --- ### Pergunta The last command displays reboot records… ### Resposta * By default --- ### Pergunta Sudo privileges allow users to execute commands as another user. ### Resposta * True --- ### Pergunta When using the sudo command to execute a command as the root user, the command prompts for the user’s own password, not that of the root user. ### Resposta * True --- ### Pergunta The first line of this command displays how long the system has been running since being rebooted. ### Resposta * w --- ### Pergunta The /etc/shadow file contains encrypted passwords. ### Resposta * True --- ### Pergunta Which command can be used to view the /var/log/wtmp file entries? ### Resposta * last ---