Process and Job Scheduling Flashcards
6 cards from real LFCS Certification practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 Process and Job Scheduling flashcards as text
A system administrator needs to schedule a backup script located at `/usr/local/bin/backup.sh` to run every day at 3:30 AM. Which of the following is the correct crontab entry to accomplish this?
Answer: `30 3 * * * /usr/local/bin/backup.sh`
The crontab format consists of five time-and-date fields (minute, hour, day of month, month, day of week) followed by the command. The entry `30 3 * * *` correctly specifies 'at minute 30 past hour 3 on every day-of-month, every month, and every day-of-week', which translates to 3:30 AM daily.
You need to run a resource-intensive data processing script, `/opt/scripts/process_data.sh`, tonight at 11:00 PM. The task should only be executed once. Which command is the most appropriate for scheduling this job?
Answer: `echo "/opt/scripts/process_data.sh" | at 23:00`
The `at` command is designed specifically for scheduling commands to be run once at a particular time in the future. Piping the command string to `at` with a specified time (like 23:00) is the standard method for creating a one-time job.
A long-running data compilation process with PID 4567 is consuming excessive CPU, negatively impacting other critical services. Which of the following commands would lower its scheduling priority, making it 'nicer' to other processes?
Answer: `renice 10 4567`
The `renice` command is used to alter the scheduling priority of a process that is already running. A positive value increases the 'niceness' number (from -20 to +19), which lowers the process's priority and gives it less CPU time. A value of 10 makes the process significantly 'nicer' to other tasks.
A system administrator wants to terminate all processes owned by the user `jdoe`. The command should first attempt a graceful shutdown before resorting to more forceful methods. Which command is the most appropriate first step?
Answer: `pkill -u jdoe`
The `pkill` command can signal processes based on attributes like the owner's username (`-u jdoe`). By default, `pkill` sends the SIGTERM (15) signal, which requests that processes terminate gracefully, allowing them to save state and exit cleanly. This is the standard and safest first approach to stopping a user's processes.
While monitoring system performance with the `top` command, you notice a process that needs its priority adjusted. What is the correct interactive keystroke to use within `top` to 'renice' a process?
Answer: `r`
Within the `top` utility's interactive mode, pressing the 'r' key will prompt you to enter the PID of the process you wish to renice, and then the new niceness value to apply. This allows for real-time priority adjustment without leaving the monitoring tool.
Which of the following `ps` commands is specifically formatted to display only the process ID (PID), the command name (COMM), and the niceness value (NI) for all processes on the system?
Answer: `ps axo pid,comm,ni`
The `ps` command with the `axo` flags allows for custom output formatting. `a` shows processes for all users, `x` shows processes without a controlling tty, and `-o` specifies the columns to display. `pid,comm,ni` explicitly tells `ps` to print the Process ID, Command Name, and Niceness value, providing a clean and targeted output.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- docs.linuxfoundation.org — Renewal, score release, exam format, passing score · verified Oct 2026
- training.linuxfoundation.org — Test delivery, eligibility, fees, registration deadline, time limit, score validity · verified Oct 2026