LFCS Linux System Troubleshooting Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 19 | Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. True or False: The 'uptime' command shows system load average and how long the system has been running.

Explanation

True. The `uptime` command displays how long the system has been running, along with the number of logged-in users and the load averages over the past 1, 5, and 15 minutes.

Submit
Please wait...
About This Quiz
LFCS Linux System Troubleshooting Quiz - Quiz

This quiz evaluates your ability to diagnose and resolve common Linux system issues. It covers essential troubleshooting techniques including log analysis, process management, network diagnostics, disk space issues, and service failures. Ideal for college-level learners preparing for the LFCS certification or strengthening practical system administration skills.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which command identifies which process is listening on a specific port?

Explanation

`netstat -tulpn` lists network connections and listening sockets. Its options show TCP and UDP ports, display numeric addresses and port numbers, and include the process ID and program name using each socket. This helps identify which process is listening on a specific port. Depending on the system, elevated privileges may be needed to show process details.

Submit

3. To check disk space usage on all mounted filesystems, use the ____ command.

Explanation

The `df` command displays disk space usage for mounted filesystems, including total, used, and available space. By default, it reports this information for all mounted filesystems.

Submit

4. Which file contains system configuration details that persist across reboots?

Explanation

`/etc/sysconfig` stores persistent system configuration files, so settings there generally remain in effect after a reboot. By contrast, `/proc/sys` exposes runtime kernel parameters, `/dev` contains device files, and `/tmp` is intended for temporary files that may be cleared.

Submit

5. True or False: The 'lsof' command lists open files and can help identify which process is using a specific file.

Explanation

`lsof` stands for “list open files.” It displays files currently opened by processes, including regular files, directories, and network sockets. You can specify a file path to see which process has it open, helping with troubleshooting issues such as a file that cannot be modified or deleted.

Submit

6. True or False: The 'journalctl' command is used to query systemd journal logs.

Explanation

`journalctl` is the command-line tool for viewing and querying logs collected by the systemd journal. It can display messages from the system or specific services and filter them by time, priority, or other criteria.

Submit

7. The ____ command shows TCP/UDP statistics and active connections.

Explanation

`netstat` displays network information, including active TCP and UDP connections, listening ports, and protocol statistics. It helps users inspect current network activity and troubleshoot connection-related issues.

Submit

8. What is the primary purpose of the /var/log/messages file in Linux troubleshooting?

Explanation

The `/var/log/messages` file records general system activity, including kernel events, service notices, and other system messages. During troubleshooting, administrators can review it to identify warnings, errors, and events that may explain a system problem.

Submit

9. Which command helps identify which packages are installed and their versions?

Explanation

`rpm -qa` lists all installed packages on RPM-based Linux systems, while `dpkg -l` lists installed packages on Debian-based systems. Their output includes package names and version details, making them useful for checking what software is installed. The other commands show running processes, loaded kernel modules, or system information rather than installed package lists.

Submit

10. What does the 'iotop' command display?

Explanation

The `iotop` command monitors disk input/output activity in real time and organizes it by process or thread. It shows how much data each is reading from or writing to storage, helping identify programs responsible for heavy disk usage. Unlike tools focused on CPU, memory, or network activity, `iotop` specializes in storage I/O.

Submit

11. Which log file typically contains authentication and login failures?

Explanation

On many Linux distributions, `/var/log/auth.log` records authentication and authorization events, including login attempts, failed password checks, and actions involving services such as SSH and `sudo`. Administrators review it to investigate access problems or detect suspicious activity. Other listed files generally contain kernel, startup, or scheduled-task messages.

Submit

12. To diagnose DNS resolution issues, which command would you use first?

Explanation

`nslookup` and `dig` query DNS servers directly to check whether a hostname resolves to an IP address and reveal DNS response details. This makes them the most useful first tools for diagnosing DNS resolution problems.

Submit

13. Which systemd command checks if a service is currently running?

Explanation

`systemctl status ` displays a service’s current state, such as whether it is active and running, along with recent log messages. `enable` configures startup at boot, `start` launches a service, and `list-units` shows loaded systemd units.

Submit

14. True or False: The dmesg command shows messages from the kernel ring buffer, useful for hardware troubleshooting.

Explanation

True. The `dmesg` command displays messages recorded in the kernel ring buffer, including information about hardware detection, device drivers, and system events. These messages can help diagnose hardware problems, especially during startup or when a device is connected.

Submit

15. What does the 'strace' command do in Linux troubleshooting?

Explanation

`strace` helps troubleshoot Linux programs by recording the system calls they make and the signals they receive. This can reveal issues such as failed file access, permission errors, or unexpected interactions with the operating system.

Submit

16. To check the current runlevel or target in a systemd system, use the ____ command.

Explanation

`systemctl` manages and inspects systemd units and targets. Running it without arguments displays the system’s current state, including the active default target, which serves a role similar to a runlevel.

Submit

17. To view a process's memory map and resource usage, you would use the ____ command.

Explanation

The `pmap` command displays a process’s memory map, including its mapped regions and their sizes. With the `-x` option, it also shows extended memory-usage details, such as resident memory and dirty pages. The process is typically specified by its PID.

Submit

18. To check SELinux status and policy, you would use the ____ command.

Explanation

The `getenforce` command reports SELinux’s current operating mode: **Enforcing**, **Permissive**, or **Disabled**. Run it in a terminal to quickly check whether SELinux is actively enforcing security policies, logging policy violations without blocking them, or turned off.

Submit

19. To troubleshoot a hung process that won't respond, which signal would you send first?

Explanation

SIGTERM (15) requests that a process terminate gracefully, giving it a chance to save data and clean up resources. Try it first when a process is unresponsive. If it does not exit, SIGKILL can force termination, but it does not allow cleanup.

Submit

20. Which command displays real-time system resource usage including CPU, memory, and process information?

Explanation

`top` provides a continuously updated view of running processes and system activity, including CPU usage, memory consumption, and process details. Unlike `ps`, which shows a snapshot, it refreshes automatically. `free` focuses on memory, while `iostat` reports input/output statistics.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
True or False: The 'uptime' command shows system load average and how...
Which command identifies which process is listening on a specific...
To check disk space usage on all mounted filesystems, use the ____...
Which file contains system configuration details that persist across...
True or False: The 'lsof' command lists open files and can help...
True or False: The 'journalctl' command is used to query systemd...
The ____ command shows TCP/UDP statistics and active connections.
What is the primary purpose of the /var/log/messages file in Linux...
Which command helps identify which packages are installed and their...
What does the 'iotop' command display?
Which log file typically contains authentication and login failures?
To diagnose DNS resolution issues, which command would you use first?
Which systemd command checks if a service is currently running?
True or False: The dmesg command shows messages from the kernel ring...
What does the 'strace' command do in Linux troubleshooting?
To check the current runlevel or target in a systemd system, use the...
To view a process's memory map and resource usage, you would use the...
To check SELinux status and policy, you would use the ____ command.
To troubleshoot a hung process that won't respond, which signal would...
Which command displays real-time system resource usage including CPU,...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!