Sample questions
Linux Foundation Certified System Administrator LFCS practice questions
A systems administrator is troubleshooting a server that runs a database application. The server has 64 GB of RAM and 16 CPU cores. The administrator notices that the system is usi…
Refer to the exhibit. An administrator attempts to mount all filesystems using mount -a, but it fails. The error message indicates that UUID=jkl012 is not found. Which of the follo…
A Linux administrator wants to restrict user 'alice' to only be able to use the system for non-interactive tasks (e.g., running cron jobs and receiving mail) but not allow her to l…
Refer to the exhibit. What is the most likely issue with the Apache web server?
An administrator needs to grant a user named 'john' the ability to switch to any other user without a password. Which TWO of the following steps are required to achieve this?
A team of developers must share files under /opt/project. All developers are members of the 'devteam' group. New files must be automatically assigned to group 'devteam' and be writ…
An administrator wants to ensure that a specific LVM logical volume is automatically resized when the underlying physical volume is extended. Which steps are required?
A user wants to find all files in /var/log that have been modified within the last 2 days. Which command should they use?
A service unit has the directive 'ExecStartPre=/bin/true' and 'ExecStart=/usr/bin/myapp'. What is the effect of ExecStartPre?
An administrator needs to compress a directory named 'project' into a tarball with maximum compression using gzip. Which command is appropriate?
A developer accidentally deleted a critical file /var/log/app.log. The system administrator knows that the file was recently backed up using a cron job that runs 'tar -czf /backup/…
A system administrator is managing a RHEL 8 server that requires a static IP address on interface ens192. The administrator modifies /etc/sysconfig/network-scripts/ifcfg-ens192 to…
A system administrator needs to stop a misbehaving process gracefully, allowing it to clean up resources. The process is unresponsive to the standard SIGTERM signal. What should th…
An administrator wants to run a script daily at 2 AM. They create a timer unit and a service unit. The service unit uses Type=oneshot. Which of the following timer configurations i…
Which THREE of the following are valid methods to temporarily switch to a different user account without logging out entirely? (Choose three.)
A system administrator needs to find all files in /home that are owned by user 'alice' and have been modified in the last 7 days. The administrator then wants to compress those fil…
A system administrator needs to check the firewall rules on a Linux server using firewalld. Which two commands can be used to list the current rules? (Choose two.)
Refer to the exhibit. Which filesystem is close to full capacity?
Which TWO commands can be used to display the contents of a text file that has been compressed with gzip without decompressing it to disk?
To check the disk usage of the /var/log directory in a human-readable format, which command is appropriate?
A database server is running out of space in its /var/lib/mysql directory. The system admin wants to add a new 100GB disk to increase storage. Which of the following steps should b…
Which THREE of the following are valid methods to mount an NFS filesystem on a client?
A system administrator needs to securely transfer files between two Linux servers using port 22. The administrator uses the following command: 'scp file.txt user@remote:/tmp/'. The…
An administrator wants to change the primary group of user 'jane' from 'staff' to 'developers'. Which command accomplishes this?