Practice LPIC-1 Administrative Tasks questions with full explanations on every answer.
Start practicing
Administrative Tasks — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
A system administrator wants to ensure that the syslog service starts automatically on boot and is running immediately without a reboot. Which command sequence should be used?
2A user reports that a cron job is not executing. The cron job is defined in /etc/crontab. The administrator checks the system logs and finds no errors. Which command should the administrator use to verify that the cron daemon is running?
3A system administrator wants to schedule a script to run every Monday at 3:00 AM, but only if the system clock is set to local time (not UTC). Which crontab entry should be used?
4A server has a backup script that runs daily at midnight. The system administrator notices that the script sometimes fails because the filesystem is mounted read-only. Which approach is the best practice to ensure the script runs only when the filesystem is writable?
5An administrator needs to find all files in the /var/log directory that have been modified in the last 24 hours. Which command should be used?
6A Linux system fails to boot with the error 'Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)'. Which of the following is the most likely cause?
7An administrator wants to prevent a specific user, 'john', from being able to schedule cron jobs. Which file should the administrator modify?
8Which TWO commands can be used to display the current runlevel of a system?
9Which THREE of the following statements are true about the /etc/shadow file?
10Based on the exhibit, which of the following is true about the cleanup.sh job?
11Based on the exhibit, what will happen if the syslog service is stopped?
12A medium-sized company runs a web application on a Linux server. The server uses systemd and has the following configuration: the web application service (webapp.service) is configured to start after network.target and requires a database service (database.service) to be running. The database service has a Restart=on-failure directive. Recently, the server experienced a power outage. Upon reboot, the system administrator notices that the web application fails to start because the database service is in a failed state. The administrator checks the status of database.service and sees 'inactive (dead)' with no recent attempts to restart. The journal shows that the database service failed to start because a required filesystem (mounted at /var/lib/database) was not mounted when the database service tried to start. The filesystem is listed in /etc/fstab with the nofail option. The administrator wants to ensure that in future reboots, the database service starts successfully and the web application comes up without manual intervention. Which of the following is the best course of action?
13Which TWO commands can be used to display the current runlevel of a SysV init system?
14Refer to the exhibit. An administrator runs 'ntpq -p' and sees the output shown. What is the most likely cause of the '16' stratum and '0.000' delay/offset?
15A Linux administrator is responsible for a server that runs a critical database application. The server uses SysV init and the current runlevel is 3. The administrator needs to schedule a maintenance window for next Sunday at 2:00 AM to apply security patches that require a reboot. The administrator wants to ensure that after the reboot, the system returns to runlevel 3 and the database service (db_service) starts automatically. The administrator also wants to log the maintenance actions to /var/log/maintenance.log. Which of the following is the BEST approach to accomplish these tasks?
16Arrange the steps to troubleshoot a service that fails to start.
17Match each Linux signal to its default action.
18An administrator needs to check the system's load averages without displaying any process information. Which command should be used?
19An administrator adds the line 'DenyUsers john' to /etc/ssh/sshd_config and restarts the SSH service. What is the effect?
20Which command is used to view the last few lines of a log file and simultaneously follow new entries as they are written?
21An administrator wants to change the owner of all files in /data to user 'web' without changing the group. Which command should be used?
22A system administrator needs to ensure a custom script runs every time the system boots. Where should the script be placed for execution during the boot process on a standard Linux system?
23An administrator notices the system clock is drifting. Which command can be used to enable automatic time synchronization using NTP on a system with systemd?
24In the /etc/shadow file, a user's password hash begins with '$6$'. What hash algorithm does this prefix indicate?
25A systemd service unit file must be configured to automatically restart the service if it exits unexpectedly. Which directive should be used?
26An administrator needs to display the current and previous runlevels of a Linux system. Which command provides this information?
27Which two commands can be used to display the amount of free and used memory in the system?
28Which three actions can an administrator take to securely erase data on a disk before decommissioning?
29Which three commands are commonly used to display information about running processes?
30Refer to the exhibit. What is the file permission in numeric mode for /etc/crontab?
31Refer to the exhibit. During the next boot, which filesystem will be checked first by fsck?
32Refer to the exhibit. The administrator restarts the sshd service. What is the new main PID after restart?
33An administrator wants to run a shell script every day at 2:00 AM. Which command should be used to edit the user's personal crontab?
34A system is not logging messages to /var/log/syslog. Which command should an administrator use first to diagnose the issue?
35A user 'jdoe' already exists. The administrator needs to add 'jdoe' to the 'staff' and 'admin' groups without changing other group memberships. Which command accomplishes this?
36To enable disk quotas for user quotas on a filesystem, which line should be added to /etc/fstab's mount options?
37A zombie process appears in the process list. The parent process has PID 1234. Which command will most likely remove the zombie?
38A user can successfully ping a web server but cannot access the website via a browser. Which is the most likely cause?
39Which command schedules a job to run once at 2:30 PM today?
40Which configuration file is the primary configuration file for logrotate?
41After creating a new user with 'useradd john', the user 'john' cannot log in. What is the most likely cause?
42An administrator needs to restart the SSH service after a configuration change. Which TWO commands can accomplish this on a systemd-based system?
43Which THREE directories are commonly used for mounting removable media in Linux?
44Which THREE signals are commonly used to terminate a process with the kill command?
45Refer to the exhibit. What is the purpose of the 'test -x /usr/sbin/anacron' command in the cron entries?
46Refer to the exhibit. What can be concluded about the cron daemon based on this systemctl output?
47Refer to the exhibit. This line is from /etc/passwd. What does the third field (1001) represent?
48A system administrator needs to schedule a recurring maintenance task that runs every Monday at 3 AM. Which crontab entry is correct?
49Which command adds a new group named 'developers' to the system?
50A user reports that a file cannot be saved due to 'No space left on device'. Which command should the administrator use to verify disk usage?
51Which TWO commands can be used to view all running processes on a Linux system? (Choose TWO.)
52Refer to the exhibit. What is the current state of the SSH service?
53An administrator wants to allow user 'john' to run all commands as root without a password. Which sudoers entry accomplishes this?
54Which command displays all error messages from the systemd journal since the last boot?
55An administrator needs to extend a logical volume by 10GB. The volume group has available physical extents. Which command should be used?
56Which THREE commands are used to manage systemd services? (Choose THREE.)
57Refer to the exhibit. The root partition is at 80% usage. Which action would reduce usage the most?
58An administrator ran 'dnf update' and a critical application broke. The administrator wants to undo the last transaction and return to previous state. Which command should be used?
59An administrator wants to enforce a password history that prevents using the last 5 passwords. Which directive should be added to /etc/pam.d/system-auth?
60To prevent the 'nouveau' kernel module from loading at boot, which configuration file should be edited?
61Which THREE steps are necessary to configure a static IP address using ifcfg files on a RHEL-based system? (Choose THREE.)
62Refer to the exhibit. The job runs every hour but the administrator notices that it does not execute on Sundays. Which cron syntax element is responsible?
63A small business runs a Linux server hosting a web application and a PostgreSQL database. The server uses LVM for storage, with a single volume group vg_data containing two logical volumes: lv_web (50GB) and lv_db (100GB). The root filesystem is on a separate disk. The administrator receives alerts that the database volume is at 95% capacity. The server has additional unused space from a recently added disk that was added to the volume group as an additional physical volume, but the space has not been allocated. The administrator runs 'vgs' which shows VG vg_data with total size 500GB, allocated 150GB, and free 350GB. The administrator wants to increase the size of lv_db by 50GB. Which course of action should the administrator take?
64A user reports that their cron jobs are not executing. The user has a valid crontab file and can execute the commands manually. Which of the following is the most likely cause of this issue?
65A system administrator wants to configure log rotation to compress log files daily and keep 30 days of logs. Which of the following configurations achieves this goal?
66A system administrator needs to perform incremental backups of a large directory /data. The backup strategy requires a full backup every Sunday and incremental backups on weekdays. Which tar command satisfies this requirement using the --listed-incremental option?
67Which TWO commands can be used to schedule a one-time task at a specific time in the future? (Choose TWO.)
68Which THREE files are used by CUPS to manage printer queues? (Choose THREE.)
69A small business uses a Linux server running CUPS to share a network printer. For several months, all employees could print successfully. Today, an employee in a different subnet reports that printing does not work. The administrator checks the server: cupsd is running, the printer is configured with an IPP URI pointing to the printer's IP address, and the printer is idle. The administrator can ping the printer from the server. The administrator checks the CUPS error log and sees the following line multiple times: 'E [04/Oct/2024:10:15:22 -0400] [Client 5] client-error-not-authorized'. Which of the following actions should the administrator take to resolve the issue?
70An administrator notices that /var/log/syslog is 3 GB in size, despite logrotate being configured to rotate logs weekly and keep 4 weeks. The logrotate configuration file /etc/logrotate.d/syslog contains: /var/log/syslog { weekly rotate 4 compress missingok notifempty } The administrator checks that logrotate is scheduled via cron and sees that the cron job exists. However, the administrator suspects that logrotate might not have been running. Which of the following commands should the administrator run first to force log rotation and diagnose the issue?
71A company security policy requires that user accounts be disabled after 90 days of inactivity. The system administrator locks user accounts using 'usermod -L username'. However, users with SSH key authentication can still log in. The administrator has verified that the locked flag is set in /etc/shadow. Which of the following is the most likely explanation?
The Administrative Tasks domain covers the key concepts tested in this area of the LPIC-1 exam blueprint published by LPI. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all LPIC-1 domains — no account required.
The Courseiva LPIC-1 question bank contains 71 questions in the Administrative Tasks domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Administrative Tasks domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included