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.
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
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.
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.
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.
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.
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.
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.
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
The apt-cache command is used to work with the package cache, and the search option is used to search the cache for the supplied argument, in this case zsh. The apt-get command is used to work with packages themselves, while the apt-search command does not exist.