Linux Foundation Certified System Administrator (LFCS) Quiz Questions and Answers

Answer :
  • yum whatprovides */semanage

Explanation :

Explanation: Both the commands “yum provides and yum whatprovides can be used to search for files within a specific package. The file pattern must be specified as */filename or as a full path, which is why answer D is the only correct answer. Without the */ in front of the file name, you may get a match that is based on the package description, not on the filename.
Answer :
  • GPG package signing is recommended on Internet repositories, but not required on local repositories that are for internal use only.

Explanation :

Explanation: GPG package signing is used to set a checksum on packages, so that altered packages can easily be recognized. The main purpose of signing packages is to make it easy to protect packages on internet repositories. For internal repositories that cannot be accessed by Internet users, the need to add GPG package signatures is less urgent
Answer :
  • Ctrl+C

Explanation :

Explanation: The Ctrl+C command cancels the current job. Ctrl+D sends the EOF character to the current job, which can result in a stop if this allows the job to complete properly. The difference with Ctrl+C is that when using Ctrl+C the job is canceled with no regard to what it was doing. The Ctrl+Z keystroke freezes the job.
Answer :
  • find / -user linda

Explanation :

Explanation: The find / -user linda command searches all files that are owned by user linda. Notice that find also has a -uid option that allows you to locate files based on a specific UID setting. This does not allow you to search files based on a username, but it will let you find files based on the UID of a specific user.
Answer :
  • newgrp sales

Explanation :

Explanation: The newgrp command is used to set the effective primary group, which will effect default group ownership on new files until the current shell session is ended. The chgrp command is used to set the group owner of an existing file. Chgrp is not related to any user account and it affects newly created files only.
Answer :
  • cat /proc/cpuinfo
  • lscpu

Explanation :

Explanation: Look for the vmx flag in /proc/cpuinfo to verify the availability of hardware virtualization support or for the svm flag (for AMD cpus). The lscpu command shows the hypervisor mode a host is offering, and if used on a virtual machine it shows which type of virtualization platform this machine is used on.
Answer :
  • modprobe

Explanation :

The modprobe command loads the module and its dependencies, if applicable. The lsmod command is used to list currently loaded modules, making answer B incorrect. The insmod command will load a given module but not its dependencies. Answer D, rmmod, is used to remove a module from memory.
Answer :
  • fstrim

Explanation :

The fstrim command is used to remove blocks that are not in use. The fstrim command is frequently used in a SAN configuration to give back unused storage to the SAN. The fstrim command can also be used with solid-state drives for the same purpose. The other commands shown are not valid.
Answer :
  • modprobe

Explanation :

The modprobe command loads the module and its dependencies, if applicable. The lsmod command is used to list currently loaded modules, making answer B incorrect. The insmod command will load a given module but not its dependencies. Answer D, rmmod, is used to remove a module from memory
Answer :
  • Enable it in your servers BIOS

Explanation :

Explanation: Hardware virtualization support needs to be present in your computer hardware. If it is not you cannot use KVM virtualization. On some computers, the feature is available, but not switched on by default. Switch it on through your computer BIOS setup.