LPIC-2: Linux Engineer Quiz Questions and Answers

In which configuration file would you set the hostname?

Answer :
  • /etc/hostname

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 enables you to 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 commands cannot be used to send signals to processes?

Answer :
  • mkill

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

Answer :
  • yum history

The command “mknod myfifo b 4 16”

Answer :
  • Will create a block device if user is root

The /etc/services file may be used by firewalls for what purpose?

Answer :
  • To map a service name to a port and protocol

Which of the following enables you to redirect standard output as well as errors to a file?

Answer :
  • 2>&1 file

Under which directory would you expect to find nonessential program files?

Answer :
  • /usr