LPIC-2: Linux Engineer Quiz Questions and Answers

Which of the following directories would typically not be mounted on its own dedicated device?

Answer :
  • /etc

In which configuration file would you set the hostname?

Answer :
  • /etc/hostname

A user wants to remove his complete history. Which of the following approaches would do that?

Answer :
  • Remove the ~/.bash_history file and type history -c .

Which of the following statements about key-based SSH authentication is true?

Answer :
  • Use ssh-copy-id to copy the public key to the remote server.

Which command lets you get information about password properties such as password expiry?

Answer :
  • chage -l

Which of the following is not a valid tool in RHEL7 to configure LDAP authentication?

Answer :
  • System-config-authentication

Which of the following is the name of the text user interface to specify network connection properties?

Answer :
  • nmtui

Which of the following commands shows the correct syntax to set a fixed IP address to a connection using nmcli?

Answer :
  • nmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ip4 10.0.0.10/24 gw4 10.0.0.1

Which of the following commands cannot be used to send signals to processes?

Answer :
  • mkill

Which command enables you to find the yum ID number needed to roll back a command that was issued with yum?

Answer :
  • yum history