Courseiva

CCNA The Linux Operating System Questions

68 questions · The Linux Operating System topic · All types, answers revealed

1
MCQeasy

Which command lists all files in a directory including hidden ones?

A.ls -h
B.ls -l
C.dir -hidden
D.ls -a
AnswerD

The -a flag makes ls include entries beginning with a dot, which are hidden by default, so it lists all files including hidden ones as the stem requires. Plain ls omits dotfiles entirely, and -l only changes output format, not visibility.

Why this answer

`ls -a` lists all directory entries including those beginning with a dot (hidden files such as `.bashrc`, `.git`, `.ssh`). The `-a` flag is shorthand for 'all' and overrides the default behavior of suppressing dotfiles. It is the standard way to reveal hidden content in a directory.

Exam trap

The trap is that `-h` looks like it could mean 'hidden', but in `ls` it actually means 'human-readable' — candidates confuse the two flags.

How to eliminate wrong answers

Option A is wrong because `ls -h` means 'human-readable' — it formats sizes as K/M/G but does not show hidden files. Option B is wrong because `ls -l` produces a long listing with permissions and metadata but still omits dotfiles unless combined with `-a`. Option C is wrong because `dir -hidden` is a Windows CMD construct, not a valid Linux command syntax.

2
Multi-Selecteasy

Which TWO of the following are examples of Linux distributions?

Select 2 answers
A.Chrome
B.Windows
C.Debian
D.Ubuntu
E.Office
AnswersC, D

Debian is a distribution: a complete Linux system built around the Linux kernel, packaged with GNU utilities and its own package manager (dpkg/APT). It satisfies the stem's requirement for a distribution example, unlike a kernel, shell or desktop environment.

Why this answer

Debian (C) is a Linux distribution: it packages the Linux kernel with GNU userland tools, the dpkg/APT package management system, and its own release repositories. Ubuntu (D) is also a Linux distribution, derived from Debian and maintained by Canonical, using the same .deb package format with its own release cycle and repositories. The remaining options are not Linux distributions: Chrome (A) is a proprietary web browser from Google, Windows (B) is a proprietary operating system family from Microsoft built on the NT kernel rather than the Linux kernel, and Office (E) is a productivity application suite, not an operating system distribution.

Exam trap

The trap here is confusing well-known software brands (Chrome, Office) with operating system distributions — candidates who recognize the names but not their category may pick them by familiarity.

3
MCQeasy

A helpdesk technician is preparing a Linux workstation for a new employee. The employee needs to know which account they are currently logged in as, without opening any graphical tools. Which single command should the technician recommend to display the current user's login name?

A.id -u
B.uname -n
C.whoami
D.who -r
AnswerC

whoami prints the effective username of the current user to standard output, which directly answers the need to know the login name from a terminal. It requires no arguments and works consistently across Linux distributions, making it the simplest and most reliable choice for a helpdesk technician to give a new employee.

Why this answer

The whoami utility is designed specifically to print the effective username associated with the current shell session. It is available by default on essentially all Linux systems and needs no options, making it ideal for a quick identity check. The other commands return a UID, a hostname, or a runlevel, none of which answer the question of which account is in use.

Exam trap

The trap here is confusing user identity output with numeric IDs or host information, assuming any command that starts with 'who' or 'id' shows the login name.

4
MCQmedium

A new administrator needs to grant a colleague the ability to run a specific backup script as root without sharing the root password, while keeping the action auditable and restricted to that one command. The server already has the sudo package installed and the colleague has a normal user account. Which approach best meets these requirements?

A.Create a dedicated sudoers rule using visudo that permits the colleague to execute only the backup script as root.
B.Place the colleague in the root group and give that group read and execute access to the script.
C.Change the script's file permissions to setuid root so the colleague can execute it with elevated privileges.
D.Add the colleague's account to the wheel group and rely on the default sudoers entry for that group.
AnswerA

Editing sudoers with visudo lets the administrator define a narrowly scoped rule, for example granting the colleague permission to run just the backup script as root. The visudo tool validates syntax before saving, preventing a broken sudoers file that could lock out all sudo access. Sudo also logs each invocation, satisfying the auditability requirement without sharing the root password.

Why this answer

Sudo is designed for delegating specific privileged commands with logging, and visudo safely edits the policy that defines those delegations. A targeted rule names the permitted user, the permitted command, and the target runas identity, which satisfies least privilege and auditability. Broad group membership and file-permission tricks either over-grant rights or fail to elevate privileges at all.

Exam trap

The trap here is believing that group membership or setuid on a shell script grants controlled root execution, when sudoers rules are what actually scope and log privileged commands.

5
MCQhard

A consultant is auditing a Linux workstation and finds that a regular user's home directory contains a file named .bashrc and a file named .profile. The user reports that environment variables set in .profile are not present in new interactive terminal windows opened from the desktop, yet aliases from .bashrc work. Which explanation best accounts for this behavior?

A.The .bashrc file overrides .profile completely, deleting any variables that .profile previously exported.
B.Environment variables can only be defined in files under /etc, so user-level files cannot affect a graphical session.
C.Graphical terminal emulators typically start non-login interactive shells, which read .bashrc rather than .profile.
D.The .profile file is only read by the display manager and never by shells, so its variables must be duplicated in .bashrc.
AnswerC

When a terminal emulator opens inside an existing graphical session, it usually launches a non-login interactive shell. Bash reads .bashrc for such shells and skips .profile, which is reserved for login shells. That is why aliases defined in .bashrc take effect while variables placed only in .profile do not appear in the new terminal windows.

Why this answer

Bash distinguishes login shells from non-login interactive shells when choosing startup files. Login shells read profile files such as .profile or .bash_profile, while non-login interactive shells read .bashrc. Terminal windows spawned inside a graphical session are typically non-login shells, so variables defined only in .profile are absent while aliases in .bashrc appear, exactly matching the report.

Exam trap

The trap here is assuming that both startup files are always read together, when the shell type determines which one is sourced.

6
Multi-Selectmedium

A new administrator is learning how Linux organizes its filesystem. She must identify which of the following statements about the Filesystem Hierarchy Standard (FHS) are correct. (Choose two.)

Select 2 answers
A./etc holds system-wide configuration files, and /var holds variable data such as logs and spool files.
B./bin is reserved exclusively for kernel modules that load at boot time.
C./usr must contain only user-created documents and personal media files.
D./tmp is guaranteed to persist across reboots and should be used for permanent application data.
E./home is intended for user home directories, while /root is the home directory for the root user.
AnswersA, E

This is correct: /etc is reserved for host-specific configuration, and /var contains data that changes during normal operation, including logs, mail queues, and spool directories. Recognizing this split helps administrators locate configuration versus runtime data, and it aligns with the FHS definitions tested by LPI.

Why this answer

The FHS defines /etc for configuration and /var for variable runtime data, and it places user homes under /home while reserving /root for the superuser. Statements about /bin holding kernel modules, /tmp being persistent, and /usr storing personal documents contradict the standard layout. Understanding these directory roles is essential for locating configuration, logs, and user data correctly.

Exam trap

The trap here is assuming familiar directory names like /bin and /tmp hold content that the FHS actually places elsewhere.

7
Multi-Selecteasy

Which TWO of the following are examples of common Linux filesystems?

Select 2 answers
A.FAT32
B.ext4
C.HFS
D.NTFS
E.XFS
AnswersB, E

Ext4 is a native Linux filesystem, satisfying the stem's requirement for common Linux filesystems. It serves as the default on many distributions, including Debian and Ubuntu, and supports journaling, extents and volumes up to one exbibyte. This makes it a canonical, widely deployed example rather than a cross-platform or non-Linux filesystem.

Why this answer

ext4 (B) is correct because it is the default, journaling, native Linux filesystem used by most Linux distributions, supporting extents, large volumes, and backward compatibility with ext2/ext3. XFS (E) is also correct because it is a high-performance 64-bit journaling filesystem developed for Linux (originally by SGI), commonly used on RHEL/CentOS for large files and parallel I/O. FAT32 (A) is not a Linux-native filesystem; it is a Microsoft/Windows-originated filesystem that Linux merely supports via drivers like vfat.

HFS (C) is Apple's legacy Mac OS filesystem, not a common Linux filesystem. NTFS (D) is Microsoft's Windows filesystem, supported by Linux through ntfs-3g but not a common Linux filesystem itself.

Exam trap

The trap here is confusing filesystems that Linux can mount (like FAT32, NTFS, HFS) with those that are native to Linux, leading candidates to select cross-platform options instead of the correct Linux-native ones.

8
MCQmedium

A help-desk analyst needs to see which processes are consuming the most CPU and memory in real time, and must be able to sort and kill a runaway process interactively. Which utility best fits this requirement?

A.free -h
B.top
C.ps aux
D.uptime
AnswerB

top provides a continuously refreshing, interactive view of running processes with CPU and memory usage, and it accepts keystrokes such as P to sort by CPU, M to sort by memory, and k to send a signal to a process. That combination of live monitoring and in-session process termination matches the analyst's stated needs.

Why this answer

top is the classic interactive process viewer on Linux: it refreshes on an interval and lets the operator sort by CPU or memory and send signals to processes without leaving the utility. That single-tool workflow of live observation plus immediate corrective action is what the analyst needs.

Exam trap

The trap here is assuming a static snapshot tool like ps aux provides continuous monitoring just because it lists the same process fields.

9
MCQmedium

A user needs to change their own password on a Linux system. Which command should they use?

A.usermod -p
B.shadow
C.chage
D.passwd
AnswerD

The passwd command allows a user to change their own password. When run without arguments, it prompts for the current password and then the new password. It is the standard utility for password changes and is available to all users, not just root.

Why this answer

The passwd command is the correct tool for users to change their own passwords. It handles the secure update of the password hash in /etc/shadow. Other commands like usermod and chage are administrative tools for managing accounts and policies, not for self-service password changes.

Exam trap

The trap here is thinking that any command related to user accounts can change passwords, but only passwd is designed for users to change their own passwords.

10
MCQmedium

You need to determine the UUID of a partition to add it to /etc/fstab. Which command should you use?

A.ls -l
B.find
C.blkid
D.mount
AnswerC

`blkid` reads the filesystem superblock metadata directly from block devices and prints each partition's UUID, which is exactly the identifier `/etc/fstab` requires. Unlike `lsblk`, which reports device topology and mountpoints but not UUIDs by default, `blkid` satisfies the stem's constraint of retrieving the UUID for fstab entries.

Why this answer

The blkid command queries block device attributes including UUID, LABEL, and TYPE, which is exactly what is needed to reference a partition in /etc/fstab by UUID. Running blkid /dev/sda1 returns the UUID= value that can be pasted into fstab. This is the standard Linux tool for retrieving filesystem UUIDs.

Exam trap

The trap is confusing tools that show mounted filesystems (mount) or list devices (ls -l) with the specific utility that reads filesystem UUIDs from block devices (blkid).

How to eliminate wrong answers

Option A (ls -l) is wrong because it lists directory contents and inode metadata, not filesystem UUIDs. Option B (find) is wrong because it searches for files by name/attributes in a directory tree, not block device identifiers. Option D (mount) is wrong because it displays currently mounted filesystems and mount options, but does not reliably show the UUID of an unmounted partition.

11
MCQmedium

A user reports that a script located in their home directory will not run when they type its name, even though the file exists and has execute permission. The user is currently in that home directory. Which action explains why the script is not found and how to run it?

A.The script must be moved to /usr/local/bin before it can be executed.
B.The script lacks the setuid bit, so it must be run with sudo scriptname.
C.The execute permission must be granted with chmod +x scriptname first.
D.The current directory is not in the PATH, so the script must be invoked as ./scriptname.
AnswerD

On Linux, the shell searches only directories listed in PATH for commands, and the current directory is normally absent for security reasons. Prefixing the script name with ./ explicitly specifies the current directory as the path, allowing the shell to locate and execute the file that already has execute permission.

Why this answer

The shell resolves bare command names by searching the directories in the PATH variable, and the current working directory is deliberately excluded from the default PATH to prevent accidental execution of malicious files. Supplying a relative path with ./ tells the shell exactly where to find the script, which resolves the command-not-found error without relocating or re-permissioning the file.

Exam trap

The trap here is assuming a permission problem whenever a script fails to start, when the actual symptom of a missing PATH entry is a command-not-found error rather than a permission-denied error.

12
MCQmedium

You need to ensure that a server's time is synchronized with an external time source to prevent authentication errors. Which daemon is responsible for this?

A.cron
B.chronyd
C.sshd
D.rsyslogd
AnswerB

Chronyd implements the Network Time Protocol to discipline the system clock against external time servers, correcting drift continuously. This directly satisfies the requirement to synchronise server time with an external source, preventing the Kerberos authentication failures caused by clock skew exceeding the default five-minute tolerance.

Why this answer

chronyd is the NTP daemon on modern RHEL/CentOS/Fedora and many other distributions, responsible for synchronizing the system clock with external time sources. Accurate time is critical for Kerberos authentication, TLS certificate validation, and log correlation. The other daemons handle scheduling, remote access, and logging, not time synchronization.

Exam trap

The trap is confusing daemons by function — candidates may pick cron (scheduling) or rsyslogd (logging), forgetting that only chronyd (or ntpd/systemd-timesyncd) handles time synchronization.

How to eliminate wrong answers

Option A is wrong because cron schedules recurring jobs; it has no role in setting or synchronizing the system clock. Option C is wrong because sshd is the OpenSSH server daemon handling remote login sessions, unrelated to time. Option D is wrong because rsyslogd collects and forwards system log messages; it does not synchronize time, though accurate time helps log ordering.

13
MCQhard

You have added a new hard drive to your Linux server, but the system does not automatically recognize the device. What is the first step you should take to verify if the kernel detects the hardware?

A.Reinstall the operating system.
B.Examine the output of dmesg.
C.Run the top command.
D.Edit the /etc/fstab file.
AnswerB

Examining `dmesg` reveals kernel ring-buffer messages, including hardware detection events logged when the kernel probes the new drive. This directly satisfies the stem's requirement to verify kernel recognition, since `dmesg` records device discovery, driver binding and any SCSI or ATA attachment errors at boot or hotplug time.

Why this answer

The `dmesg` command prints the kernel ring buffer, which contains messages from the kernel during boot and runtime, including hardware detection events. When a new hard drive is added, the kernel logs its detection (or failure to detect) there, making `dmesg` the first place to verify whether the kernel recognized the device. This is the standard first diagnostic step for hardware recognition issues.

Exam trap

The trap is jumping to filesystem or mount configuration (fstab) or OS-level fixes before verifying hardware detection — candidates forget that the kernel must first recognize the device, and dmesg is the authoritative source for that.

How to eliminate wrong answers

Option A is wrong because reinstalling the OS is a drastic, unnecessary action that would not help diagnose whether the kernel detects the drive and would destroy data. Option C is wrong because `top` displays running processes and CPU/memory usage, not hardware detection events. Option D is wrong because /etc/fstab defines mount points for filesystems; editing it does not verify hardware detection and could cause boot failures if misconfigured.

14
MCQmedium

A support engineer is handed a Linux server and needs to determine which user account is currently logged in on a remote SSH session before performing maintenance, so they can notify the right person. Which command most directly reports the usernames of users currently logged into the system?

A.id
B.whoami
C.who
D.groups
AnswerC

The who command reads the system's login records and lists each currently logged-in user along with the terminal or remote origin and login time. It directly shows the usernames of active sessions, including remote SSH logins, which is exactly the information the engineer needs before notifying the affected person.

Why this answer

The who utility consults the utmp login records and reports active sessions with usernames, terminals, and login times, including remote connections. That directly satisfies the need to identify who is logged in before maintenance. The alternative commands report identity, group membership, or the invoking user rather than enumerating current sessions.

Exam trap

The trap here is reaching for an identity command such as whoami or id and forgetting that it describes the invoking account, not the set of logged-in users.

15
MCQmedium

A system administrator needs to identify which process is listening on TCP port 80 on a Linux server. Which command is most appropriate?

A.ps aux | grep httpd
B.ss -tuln
C.ifconfig -a
D.netstat -tulpn | grep :80
AnswerD

The netstat command with options -tulpn displays TCP and UDP listening sockets, including the PID and program name for each. Piping to grep :80 filters for port 80, directly showing which process is bound to that port. This is a standard and reliable method for identifying the service listening on a specific port, provided netstat is installed.

Why this answer

To find the process listening on a specific port, the command must display both the socket and the owning process. netstat with -tulpn provides that mapping, and filtering for port 80 pinpoints the service. Alternatives like ps or ifconfig lack port-to-process association, and ss without -p omits the process name.

Exam trap

The trap here is thinking that any command showing network or process information will reveal the port owner, when only those that correlate sockets with PIDs will work.

16
Multi-Selectmedium

Which TWO of the following are valid ways to view system logs?

Select 2 answers
A.lsmod
B.ifconfig
C.top
D.journalctl
E.dmesg
AnswersD, E

`journalctl` reads the systemd journal, exposing kernel and service messages through one queryable interface. It satisfies the stem's requirement for a valid log-viewing method on systemd-based Linux distributions, supporting filters by unit, priority and time. This contrasts with plain text files such as `/var/log/syslog`, which lack structured querying.

Why this answer

Option D (journalctl) is correct because it is the systemd utility for querying the systemd journal, allowing you to view system and service logs (e.g., journalctl -u sshd, journalctl -b). Option E (dmesg) is correct because it prints the kernel ring buffer, showing kernel and hardware-related log messages such as boot and driver events. The unmarked options do not belong: lsmod lists loaded kernel modules, ifconfig configures/displays network interfaces, and top shows live process and resource usage — none of these display system logs.

Exam trap

010-160 often tests the difference between monitoring tools and log-viewing tools, so candidates pick top or ifconfig because they are familiar diagnostic commands, missing that they do not display logs.

17
MCQeasy

An administrator wants to view the current system load and active processes. Which utility is the most appropriate for a real-time monitor?

A.df -T
B.ps aux
C.cat /proc/cpuinfo
D.top
AnswerD

top provides a continuously refreshing real-time view of system load, CPU and memory usage, and active processes, satisfying the stem's real-time monitor constraint. Alternatives like ps or uptime give only static snapshots, so top is the appropriate utility here.

Why this answer

The `top` command provides a real-time, continuously updating view of system load, CPU usage, memory usage, and active processes, refreshing by default every few seconds. It is the standard interactive utility for live monitoring of system load and processes on Linux. This matches the requirement for a real-time monitor.

Exam trap

The trap is confusing a static snapshot (`ps aux`) with a real-time monitor (`top`) — candidates may pick ps because it also shows processes, but it does not update continuously or show system load in real time.

How to eliminate wrong answers

Option A is wrong because `df -T` reports disk space usage and filesystem types, not system load or processes. Option B is wrong because `ps aux` gives a static snapshot of processes at the moment it is run, not a real-time updating monitor. Option C is wrong because `cat /proc/cpuinfo` displays static CPU hardware information, not dynamic load or process activity.

18
Multi-Selecthard

Which THREE of the following are components of a standard network configuration?

Select 3 answers
B.IP address
C.Shell prompt
D.Kernel version
AnswersA, B, E

A subnet mask is a fundamental component of a standard network configuration because it defines which portion of an IP address identifies the network and which identifies the host. This enables devices to determine whether a destination is local or must be reached through a gateway, satisfying the requirement for basic IP addressing configuration.

Why this answer

A standard network configuration on a host requires an IP address (B) to uniquely identify the interface on the network, a subnet mask (A) to define which portion of the address is the network prefix and which is the host portion (enabling local vs. remote delivery decisions), and a default gateway (E) so that traffic destined for networks outside the local subnet is forwarded to the next-hop router. These three values are the classic IPv4 host parameters (often delivered via DHCP or set statically with ip addr/ip route or ifconfig/route). By contrast, the shell prompt (C) is just the command-line interface indicator and has no bearing on network reachability, and the kernel version (D) describes the OS build rather than any addressing or routing parameter, so neither belongs in a network configuration.

Exam trap

The trap is including plausible-but-irrelevant system attributes — shell prompt and kernel version sound technical, so candidates may assume they belong to network configuration, but only IP address, subnet mask, and default gateway are the actual addressing components.

19
MCQhard

You are setting up a local network and need to verify the path traffic takes to reach a remote host. Which command should you use?

A.traceroute
B.nmap
C.ping
D.dig
AnswerA

Traceroute maps the hop-by-hop path to a remote host by sending packets with incrementally increasing TTL values, forcing each router along the route to reply. This directly satisfies the requirement to verify the path traffic takes, unlike ping, which only confirms reachability.

Why this answer

`traceroute` is designed to map the path packets take to a remote host by sending probes with incrementally increasing TTL values and collecting ICMP Time Exceeded responses from each hop. This directly answers the question of which routers traffic traverses to reach the destination.

Exam trap

The trap is confusing reachability tools (ping) with path-discovery tools (traceroute) — candidates who see 'verify path' may think ping because it tests connectivity, but only traceroute enumerates intermediate hops.

How to eliminate wrong answers

Option B is wrong because `nmap` is a port scanner and network mapper — it discovers open ports and services on hosts, not the hop-by-hop path to a destination. Option C is wrong because `ping` only verifies reachability and round-trip time to a single host using ICMP Echo; it does not reveal intermediate hops. Option D is wrong because `dig` is a DNS query tool that resolves names and records; it has nothing to do with network path discovery.

20
MCQmedium

A systems administrator is documenting a server and wants to record which kernel release is currently running, including any distribution-specific patch level, for compatibility checks with a third-party driver. Which command should be used to display this information?

A.lsb_release -a
B.uname -r
C.hostnamectl status
D.cat /etc/os-release
AnswerB

uname -r prints the kernel release string, which includes the upstream version and often the distribution's patch or build suffix. This is exactly the value driver vendors ask for when checking compatibility. It is the standard, concise way to report the running kernel release without extra system details.

Why this answer

The kernel release string, including distribution patch suffixes, is obtained with uname -r. Distribution identification tools and files describe the OS release rather than the kernel. When a third-party driver requires the exact running kernel release, uname -r is the direct and correct source.

Exam trap

The trap here is mixing up distribution version information with the running kernel release string.

21
MCQeasy

Which command is used to display the current directory path in the terminal?

A.ls
B.dir
C.pwd
D.cd
AnswerC

pwd prints the absolute path of the current working directory to standard output, directly answering the requirement to display the current directory path. Commands such as ls list directory contents instead, and cd changes directory rather than reporting it.

Why this answer

The 'pwd' command (print working directory) outputs the absolute path of the directory the shell is currently in. It reads the shell's current directory state and prints it to standard output, which is exactly what the question asks for.

Exam trap

The trap is confusing directory-listing commands (ls, dir) with directory-path commands (pwd) — candidates who skim the question may pick 'ls' because it is the most familiar directory-related command.

How to eliminate wrong answers

Option A is wrong because 'ls' lists the contents of a directory (files and subdirectories), not the directory's own path. Option B is wrong because 'dir' is a DOS/Windows command that lists directory contents; on Linux it exists only as an alias for 'ls' in some shells and still does not print the path. Option D is wrong because 'cd' changes the current directory rather than displaying it — running 'cd' with no argument goes to $HOME, and 'cd /path' moves into that path.

22
MCQeasy

A user wants to change the permissions of a file named 'data.txt' so that the owner can read and write, the group can read, and others have no access. Which command achieves this?

A.chmod 644 data.txt
B.chmod 640 data.txt
C.chmod 600 data.txt
D.chmod 604 data.txt
AnswerB

The numeric mode 640 sets permissions as follows: owner read and write (6), group read (4), and others none (0). This matches the requirement exactly. The chmod command with a three-digit octal number applies these permissions to the file, making it the correct choice for this scenario.

Why this answer

The octal permission 640 translates to rw- for the owner, r-- for the group, and --- for others. This precisely matches the requested access: owner read/write, group read, others none. The other modes either grant others access, omit group read, or both, so they do not fulfill the requirement.

Exam trap

The trap here is mixing up the order of permission digits, leading to granting access to the wrong class of users.

23
MCQmedium

A Linux administrator needs to check which shell is currently assigned to the user account 'jdoe' in the system's user database, without logging in as that user. Which command will display this information?

A.grep jdoe /etc/passwd
B.echo $SHELL
C.ps -u jdoe
D.whoami
AnswerA

The /etc/passwd file contains one line per user account, with fields separated by colons; the seventh field is the login shell. Searching for the username jdoe displays that account's entry, including the assigned shell, without requiring a login as that user. This directly answers the administrator's question and is a standard method for inspecting user account attributes on Linux systems.

Why this answer

User account information, including the login shell, is stored in the /etc/passwd file. Searching that file for the username jdoe reveals the shell assigned to that account. Other commands either report the current user's environment, current identity, or running processes, none of which reliably show another user's configured login shell from the system database.

Exam trap

The trap here is confusing the current session's $SHELL variable with the login shell stored in the user database for a different account.

24
Multi-Selecthard

A Linux administrator is auditing user accounts and needs to identify which files store local user account and hashed password information on a typical distribution. (Choose two.)

Select 2 answers
A./etc/passwd
B./etc/sudoers
C./etc/group
D./etc/login.defs
E./etc/shadow
AnswersA, E

/etc/passwd contains one line per local user account with fields for username, UID, GID, home directory, and login shell, so it is a primary source for account auditing. Password hashes are typically replaced by an x placeholder that points to /etc/shadow, but the account metadata itself remains authoritative here.

Why this answer

Local authentication data is split between /etc/passwd, which holds account attributes, and /etc/shadow, which holds the hashed passwords and aging policy. Together they form the complete local user database consulted by tools such as login, su, and passwd. The group file, login defaults, and sudo policy govern membership, defaults, and privilege delegation rather than storing credentials.

Exam trap

The trap here is assuming /etc/passwd still contains password hashes, when on modern systems it holds only an x placeholder and the hashes live in the root-only /etc/shadow.

25
MCQeasy

A developer needs to know the kernel version currently running on the server. Which command provides this information?

A.uname -r
B.ver
C.hostnamectl
D.cat /etc/issue
AnswerA

uname -r prints only the kernel release number, exactly the running kernel version the developer needs. Other uname flags report hardware name, node name or processor type, so they would not satisfy the specific requirement for the kernel version.

Why this answer

`uname -r` prints the kernel release version (e.g., 5.15.0-91-generic) by invoking the uname() system call, which reads kernel information directly. The -r flag specifically returns the kernel release, while -a returns all fields. This is the canonical way to check the running kernel version on Linux.

Exam trap

The trap is picking `hostnamectl` or `/etc/issue` because they also show version-like information — 010-160 tests whether you know the direct, authoritative command for the running kernel.

How to eliminate wrong answers

Option B is wrong because `ver` is a DOS/Windows command that displays the OS version; it does not exist on Linux. Option C is wrong because `hostnamectl` displays hostname and OS information (including kernel version as a side effect on systemd systems), but it is not the standard command for kernel version — the question asks for the kernel version specifically, and `uname -r` is the direct answer. Option D is wrong because `cat /etc/issue` prints the login banner text (e.g., 'Ubuntu 22.04'), which is a static file and may not reflect the actual running kernel.

26
MCQhard

You are trying to troubleshoot why a user cannot connect to your server via SSH. You want to see if the SSH daemon is listening on the appropriate port. Which command should you run?

A.host
B.ping
C.ss -tulpn
D.ip link
AnswerC

The ss -tulpn invocation lists listening TCP and UDP sockets with numeric ports and owning processes, revealing whether sshd is bound to port 22. That directly answers whether the daemon is listening, which ping or netstat alternatives would not confirm as precisely.

Why this answer

The `ss -tulpn` command is the correct choice because it displays all listening TCP and UDP ports along with the associated process names and PIDs. The flags `-t` (TCP), `-u` (UDP), `-l` (listening), `-p` (processes), and `-n` (numeric ports) together provide a comprehensive view of which services are bound to which ports. This directly answers whether the SSH daemon (typically `sshd`) is listening on port 22 (or a custom port).

Exam trap

The trap here is confusing network diagnostic tools: candidates might pick `ping` to test connectivity or `ip link` to check interface status, but neither reveals listening ports; the exam expects you to know that `ss` (or `netstat`) is the correct tool for inspecting open ports and associated services.

How to eliminate wrong answers

Option A is wrong because `host` is a DNS lookup utility used to resolve domain names to IP addresses, not to inspect local listening ports. Option B is wrong because `ping` only tests ICMP reachability to a host and cannot reveal whether a specific TCP port is open or a daemon is listening. Option D is wrong because `ip link` shows the state of network interfaces (e.g., up/down, MAC addresses) but does not list open ports or listening services.

27
Multi-Selecthard

A Linux administrator is preparing a machine that must run headless as a file server. She needs to identify which of the following are characteristics of a Linux server installation rather than a typical desktop installation. (Choose two.)

Select 2 answers
A.It commonly runs without a graphical desktop environment, exposing services over the network instead.
B.It cannot run the same Linux kernel as a desktop distribution.
C.It always includes a full office productivity suite installed by default.
D.It requires a dedicated physical display and keyboard to be administered.
E.It prioritizes long-term stability and security updates over receiving the newest upstream software versions.
AnswersA, E

Server installations typically omit a graphical desktop to reduce resource usage and attack surface, and they are managed remotely over SSH or a console. Services such as Samba, NFS, or a web daemon are what matter on such a host, so this accurately describes a headless file server deployment.

Why this answer

Server installations are characterized by headless operation, where services are exposed over the network and administration happens remotely, and by a conservative update philosophy that favors stability and timely security fixes over the newest upstream versions. Those two traits reflect how production file servers are actually built and maintained.

Exam trap

The trap here is equating a server with extra bundled software or special hardware, when the defining traits are headless operation and a stability-focused update policy.

28
Multi-Selectmedium

Which TWO of the following commands help in identifying hardware on a system?

Select 2 answers
A.lspci
B.pwd
C.lsusb
D.whoami
E.date
AnswersA, C

lspci enumerates devices attached to the PCI bus, listing controllers, network adapters and GPUs with vendor and device identifiers. This directly satisfies the stem's goal of identifying hardware, since PCI enumeration reveals installed components without querying higher-level configuration.

Why this answer

lspci (option A) is correct because it enumerates the PCI bus and lists all PCI/PCIe devices such as GPUs, network adapters, and storage controllers, directly identifying hardware on the system. lsusb (option C) is correct because it queries the USB subsystem and lists connected USB devices (vendor and product IDs), which is another direct way to identify hardware. The remaining options do not identify hardware: pwd (B) prints the current working directory, whoami (D) prints the effective username, and date (E) displays the system date and time.

Exam trap

The trap is mixing up system-information commands; candidates may pick pwd or whoami because they are familiar, without checking whether the command actually queries hardware buses.

29
MCQmedium

You suspect that a process is consuming too much CPU. Which command allows you to sort active processes by CPU usage?

A.kill
B.nice
C.top
D.ps -ef
AnswerC

The top command displays a live, continuously refreshed process list sorted by CPU utilisation by default, letting you immediately identify the heaviest consumer. This directly satisfies the requirement to sort active processes by CPU usage, unlike ps, which needs explicit sort flags.

Why this answer

`top` is an interactive process viewer that by default sorts processes by CPU usage in descending order, refreshing every few seconds. It shows PID, user, priority, %CPU, %MEM, and other metrics, making it the go-to tool for spotting CPU-hungry processes in real time.

Exam trap

The trap is picking `ps -ef` because it lists processes — but the question asks specifically for sorting by CPU usage, which `ps -ef` does not do by default; only `top` (or `ps` with an explicit --sort flag) satisfies that requirement.

How to eliminate wrong answers

Option A is wrong because `kill` sends signals to terminate or otherwise affect processes — it does not display or sort them. Option B is wrong because `nice` adjusts a process's scheduling priority; it does not list or sort processes by CPU. Option D is wrong because `ps -ef` produces a static snapshot of all processes in a fixed format and does not sort by CPU usage (you would need `ps aux --sort=-%cpu` for that).

30
MCQhard

A Linux administrator is reviewing the boot process on a server that uses systemd. She wants to determine which target the system will boot into by default and confirm the current default setting. Which command should she use?

A.systemctl list-units --type=target
B.cat /etc/inittab
C.runlevel
D.systemctl get-default
AnswerD

systemctl get-default queries systemd for the default target, which is usually a symbolic link such as graphical.target or multi-user.target. This directly answers which target the system will start by default, and it is the supported way to confirm the setting before changing it. It reads the /etc/systemd/system/default.target link.

Why this answer

In systemd, the default boot target is stored as a symbolic link and queried with systemctl get-default. Listing active targets or using legacy SysV tools does not reveal the configured default for future boots. This command is the authoritative, supported method to confirm which target the system will start by default.

Exam trap

The trap here is relying on legacy SysV runlevel concepts when the server actually uses systemd targets.

31
Multi-Selecthard

A Linux administrator is reviewing how environment variables affect command execution. Which TWO of the following statements about environment variables are correct? (Choose two.)

Select 2 answers
A.Environment variables are always inherited by child processes unless explicitly unset.
B.Environment variables can only be set by the root user.
C.The PATH variable defines the directories searched for executable commands.
D.The PS1 variable controls the system's primary network interface.
E.The HOME variable stores the system's hostname.
AnswersA, C

When a process creates a child process, the child inherits a copy of the parent's environment by default. This inheritance allows settings like PATH and HOME to propagate. Variables can be removed with unset or not exported, but the default behavior is inheritance, making this statement correct.

Why this answer

PATH determines where the shell looks for executables, and environment variables are inherited by child processes by default. These two properties are central to how commands are located and how settings propagate in a Linux session. The other statements misidentify HOME and PS1 and incorrectly restrict variable setting to root, so they are not correct.

Exam trap

The trap here is assuming environment variables are only for root or that HOME holds the hostname, when HOME is the user's home directory.

32
MCQhard

A Linux administrator is troubleshooting a server that fails to boot completely. The system starts but drops into an emergency shell. Which command should the administrator use to view the most recent kernel messages that might indicate the cause?

A.journalctl -b -p err
B.dmesg | tail -50
C.cat /var/log/syslog
D.last -x
AnswerB

The dmesg command displays the kernel ring buffer, which contains messages from the kernel, including hardware detection, driver initialization, and errors during boot. Piping to tail -50 shows the most recent 50 lines, which are likely to include the last messages before the failure. This is the most direct way to view recent kernel messages and diagnose boot issues.

Why this answer

The kernel ring buffer, accessed via dmesg, holds the most recent kernel messages, including those generated during boot. When a system drops to an emergency shell, dmesg is often still available and can reveal hardware or driver errors. Other logs may be incomplete or unavailable in that state, making dmesg the most direct tool.

Exam trap

The trap here is assuming that any system log will contain the needed kernel messages, when early boot issues may only be visible in the kernel ring buffer.

33
MCQmedium

A junior administrator is asked to determine which shell will be launched for a user named 'alex' upon login. The administrator inspects the /etc/passwd file and sees the following line: alex:x:1001:1001:Alex Smith:/home/alex:/bin/bash. Which field in this line specifies the login shell?

A.The third field, 1001
B.The fifth field, Alex Smith
C.The seventh field, /bin/bash
D.The sixth field, /home/alex
AnswerC

In /etc/passwd, fields are colon-separated: username, password placeholder, UID, GID, GECOS, home directory, and login shell. The seventh field, /bin/bash, is the login shell that runs when alex logs in. This is the correct identification for this scenario.

Why this answer

The /etc/passwd file stores user account information in seven colon-separated fields. The login shell is the last field, here /bin/bash, which is executed when the user logs in interactively. Correctly reading this field helps administrators verify or change a user's default shell, which is essential for troubleshooting login environments and scripting behavior.

Exam trap

The trap here is assuming the home directory field determines the shell, but the home directory only sets the initial working directory.

34
Multi-Selecthard

Which THREE commands can be used to display information about system memory?

Select 3 answers
A.ifconfig
B.vmstat
C.top
D.lsblk
E.free
AnswersB, C, E

The vmstat command reports virtual memory statistics, including free and used memory, swap activity, and paging. It satisfies the requirement to display system memory information by sampling kernel counters over an interval. Unlike disk-focused tools, vmstat directly exposes memory pressure and swap behaviour, making it a valid choice alongside free and top.

Why this answer

Option B (vmstat) is correct because it reports virtual memory statistics, including swap usage, free and buffered memory, and paging activity. Option C (top) is correct because it displays a live, continuously updated view of memory usage (total, free, used, and buffers/cache) alongside process information. Option E (free) is correct because it directly shows total, used, free, shared, buffered/cached, and available physical and swap memory.

Option A (ifconfig) is incorrect because it configures and displays network interface parameters, not memory. Option D (lsblk) is incorrect because it lists block devices and their mountpoints, which is storage rather than memory information.

Exam trap

The trap is confusing storage-related tools (lsblk) and network tools (ifconfig) with memory tools, since all report 'system information' but only vmstat, top, and free cover RAM.

35
MCQmedium

A server is running out of disk space. Which command allows you to view the space usage of directories in a human-readable format?

A.ls -s
B.fdisk
C.du -sh
D.df -h
AnswerC

`du -sh` reports each directory's total disk consumption, with `-s` collapsing subdirectory detail into one summary figure per argument and `-h` scaling values into human-readable units such as megabytes or gigabytes. This directly satisfies the stem's requirement to inspect directory space usage readably while the server runs low on disk.

Why this answer

The `du` (disk usage) command reports the space consumed by files and directories. The `-s` flag produces a summary total for each argument rather than listing every file, and `-h` renders sizes in human-readable units (K, M, G). Combining them as `du -sh` gives a concise, readable total for a directory, which is exactly what's needed to find what's eating disk space.

Exam trap

The trap here is confusing `du` (disk usage per file/directory) with `df` (disk free per filesystem) — both start with 'd' and both report space, so candidates who only skim pick `df -h`.

How to eliminate wrong answers

Option A is wrong because `ls -s` only prints the allocated block count for each entry in a single directory listing and does not recurse into subdirectories or total their usage. Option B is wrong because `fdisk` is a partition table editor for block devices, not a filesystem usage reporter. Option D is wrong because `df -h` shows free/used space per mounted filesystem, not the space consumed by individual directories.

36
MCQmedium

A Linux administrator needs to add a new user account named 'tester' with a home directory and a default shell of /bin/bash. Which command should be used?

A.passwd -a tester -s /bin/bash -d /home/tester
B.adduser tester --shell /bin/bash --home /home/tester
C.useradd -m -s /bin/bash tester
D.usermod -m -s /bin/bash tester
AnswerC

The useradd command with -m creates the home directory and -s sets the login shell to /bin/bash. This matches the requirement to add a user with a home directory and specific shell. The command is standard on most Linux distributions, though some may require additional options for password setting.

Why this answer

The useradd command with -m and -s options creates a new user with a home directory and specified shell. This is the standard method for adding users in a non-interactive script or command line. Other commands like adduser may be distribution-specific or interactive, while usermod and passwd serve different purposes.

Exam trap

The trap here is confusing useradd with usermod or adduser, assuming that any command with 'user' in the name can create accounts, when only useradd (or adduser) is designed for creation.

37
MCQeasy

A user wants to check the amount of free disk space on all mounted filesystems in a human-readable format. Which command should they use?

A.du -h
B.df -h
C.free -h
D.lsblk -f
AnswerB

df -h displays disk space usage for all mounted filesystems in human-readable units (e.g., GB, MB). This directly answers the user's need to see free space in an easily understandable format. It is the standard command for this purpose and is available on virtually all Linux systems.

Why this answer

df -h is the correct command to display free disk space on mounted filesystems in a human-readable format. It summarizes total, used, and available space per filesystem. Other commands like du, free, and lsblk serve different purposes, such as directory usage, memory usage, and block device listing, respectively.

Exam trap

The trap here is confusing disk space commands: du shows directory usage, free shows memory, and lsblk shows block devices, while only df shows filesystem free space.

38
MCQeasy

A helpdesk technician is asked to confirm which Linux kernel is currently running on a production web server so they can compare it against a vendor's supported-kernel list. They only have a standard shell session and want the most direct command that prints the running kernel release string. Which command should they use?

A.cat /etc/os-release
B.lscpu
C.lsmod
D.uname -r
AnswerD

The uname command reports system information, and its -r option prints only the kernel release string of the currently running kernel, such as 5.15.0-91-generic. Because it reads the live kernel rather than a file, it reflects exactly what is loaded in memory right now, which is what the technician needs to compare against the vendor's supported-kernel list.

Why this answer

The uname utility queries the running kernel itself, and the -r flag narrows the output to the kernel release string. That live value is authoritative because it reflects the kernel currently booted, not merely the newest kernel package installed on disk. The other commands report distribution metadata, loaded modules, or processor details, none of which identify the running kernel release.

Exam trap

The trap here is assuming that the distribution version file or the newest installed kernel package tells you which kernel is actually running after an upgrade without a reboot.

39
MCQmedium

While exploring a Linux system, a new administrator runs `ls -l /etc/shadow` and sees that the file is owned by root and group shadow, with permissions `rw-r-----`. They want to understand which user accounts on the system are currently configured with a valid password hash versus those that are locked. Which command best lists only the accounts that have a real password hash set in `/etc/shadow`?

A.sudo cut -d: -f1,2 /etc/shadow | grep -v '^root'
B.sudo passwd -S -a | grep ' P '
C.sudo awk -F: 'length($2) > 1 && $2 !~ /^[!*]/ {print $1}' /etc/shadow
D.sudo grep -v '^#' /etc/passwd | cut -d: -f1
AnswerC

This awk command reads /etc/shadow with colon as the field separator. Field 2 holds the password hash. The condition length($2) > 1 excludes empty or single-character entries, and the regex !~ /^[!*]/ excludes locked accounts whose hash field starts with ! or *. Only accounts with an actual hash are printed, exactly matching the scenario.

Why this answer

The shadow file stores the password hash in the second colon-separated field. Accounts with a real hash have a string that is neither empty nor beginning with ! or *. The awk expression tests the length and the first character of that field, so it returns only usernames whose password hash is actually set.

Reading /etc/shadow directly is also the authoritative method, since /etc/passwd no longer holds the hash on modern systems.

Exam trap

The trap here is assuming that /etc/passwd still contains password hashes, when on modern Linux systems the actual hash is stored in /etc/shadow and the passwd file only shows a placeholder.

40
MCQhard

A system administrator is troubleshooting a Linux server that has become unresponsive. The administrator wants to view a snapshot of all currently running processes, including those not attached to a terminal, along with their process IDs and CPU usage. Which command should the administrator use?

A.pstree
B.jobs
C.ps aux
D.top
AnswerC

The ps aux command produces a snapshot of all running processes, including those not attached to a terminal, and displays details such as user, PID, CPU percentage, memory usage, and the command line. It is the standard tool for capturing a static list of processes on a Linux system. This directly satisfies the administrator's need to inspect all processes with their PIDs and CPU usage during troubleshooting.

Why this answer

The ps aux command generates a static snapshot of all processes on the system, including those without a controlling terminal, and shows PID, CPU usage, memory usage, and other details. This matches the administrator's requirement to inspect all running processes with their identifiers and processor utilization. The other commands either provide live updates, cover only shell jobs, or emphasize process hierarchy over resource metrics.

Exam trap

The trap here is assuming that a real-time monitor like top is always the best tool, when the requirement is specifically for a one-time snapshot of all processes.

41
MCQeasy

A helpdesk technician is asked to install a Linux distribution on a spare workstation for a new employee who needs a full desktop environment. The technician wants to minimize the time spent selecting packages during installation. Which type of Linux distribution should the technician choose?

A.A source-based distribution such as Gentoo
B.A full desktop-oriented distribution such as Ubuntu Desktop or Fedora Workstation
C.A minimal server distribution such as Debian netinst or AlmaLinux minimal
D.A live-only distribution such as Knoppix without an installer
AnswerB

Desktop-oriented distributions ship with a preconfigured graphical environment and a curated set of common applications, so the installer makes most package decisions automatically. This directly satisfies the requirement to minimize time spent selecting packages. Ubuntu Desktop and Fedora Workstation are mainstream examples that provide a complete desktop out of the box, making them appropriate for a new employee's workstation.

Why this answer

Desktop-oriented distributions bundle a graphical environment and common applications, so the installer handles most package selection automatically. This minimizes the technician's manual choices and delivers a ready-to-use workstation for the new employee. Source-based, minimal, and live-only options either require extensive manual package selection or do not provide a persistent full desktop installation.

Exam trap

The trap here is assuming that any Linux distribution can be installed quickly with a desktop, when minimal and source-based distributions require substantial manual package selection.

42
Multi-Selecteasy

Which TWO of the following directories are usually located at the root of a Linux filesystem?

Select 2 answers
A./etc
B./users
C./windows
D./programs
E./bin
AnswersA, E

/etc sits directly at the filesystem root and holds host-specific configuration files such as passwd, fstab and service configs. This satisfies the stem's requirement for a directory usually located at the root, distinguishing it from nested paths like /usr/bin or /var/log.

Why this answer

Option A, /etc, is correct because it is a standard top-level directory directly under the root (/) in the Filesystem Hierarchy Standard, holding system-wide configuration files such as /etc/passwd and /etc/fstab. Option E, /bin, is also correct because it is a conventional root-level directory containing essential user command binaries like ls, cp, and bash (often symlinked to /usr/bin on modern distributions). The unmarked options do not belong: /users is not a standard FHS root directory (user home directories live under /home), while /windows and /programs are Windows-style paths with no place in a Linux filesystem hierarchy.

Exam trap

The trap is choosing Windows- or macOS-style directory names (/users, /programs, /windows) that feel familiar but violate the Linux FHS — candidates must recall the actual standard top-level directories.

43
MCQeasy

A technician has just unpacked a new server and needs to confirm which physical architecture the CPU reports so they can request the matching RPM package. Which command will display the machine's hardware architecture, such as x86_64?

A.hostnamectl status
B.lsb_release -a
C.uname -m
D.uname -r
AnswerC

The -m flag of uname prints the machine hardware name as reported by the kernel, for example x86_64 or aarch64. This is exactly the architecture string a package manager uses to select a matching build, so it directly answers the technician's need without extra parsing or guesswork.

Why this answer

The uname utility reports kernel and system information, and its -m option specifically returns the machine hardware architecture, such as x86_64 or aarch64. That string is what package tools use to select an architecture-appropriate build, so it is the direct and reliable answer when a technician must match a package to the server's CPU.

Exam trap

The trap here is confusing the kernel release reported by uname -r with the hardware architecture reported by uname -m.

44
MCQhard

A Linux system administrator notices that the /var/log directory is filling up quickly. They want to find the largest files within that directory tree to identify what is consuming space. Which command will accomplish this?

A.du -ah /var/log | sort -rh | head -n 10
B.df -h /var/log
C.ls -lS /var/log
D.find /var/log -type f -size +100M
AnswerA

This pipeline uses du -ah to list all files and directories with human-readable sizes, sort -rh to sort by size in reverse order (largest first), and head to show the top 10. It effectively identifies the largest files and directories in /var/log, directly addressing the administrator's need.

Why this answer

The combination of du -ah, sort -rh, and head -n 10 provides a sorted list of the largest files and directories under /var/log. This allows the administrator to quickly identify space hogs. Other commands either filter by size, limit to one directory level, or show filesystem-wide usage, which are not as effective for this specific task.

Exam trap

The trap here is assuming that df or ls alone can recursively find large files; df shows filesystem totals, and ls without -R only lists one directory level.

45
MCQmedium

A consultant is preparing a presentation about the Linux ecosystem. She needs to explain the relationship between the kernel and a complete Linux distribution. Which statement best describes this relationship?

A.The kernel and a distribution are the same thing; the terms are interchangeable in modern Linux usage.
B.A distribution is a graphical desktop environment, and the kernel is the command-line shell used to launch it.
C.The kernel is the core that manages hardware and system resources, while a distribution bundles the kernel with utilities, libraries, and package management.
D.A distribution is maintained solely by the kernel developers, and the kernel is compiled separately by each end user.
AnswerC

This correctly separates the kernel, which handles process scheduling, memory, devices, and system calls, from a distribution, which adds user-space tools, libraries, an init system, and package management. A distribution is what users actually install; the kernel alone is not usable for typical tasks. This matches how LPI describes the Linux ecosystem.

Why this answer

The kernel is the privileged core managing hardware and resources through system calls, while a distribution packages that kernel with user-space utilities, libraries, an init system, and package management. This division explains why different distributions can share kernel versions yet differ greatly in tooling and support. The other statements misidentify components or conflate the two concepts.

Exam trap

The trap here is assuming that because every Linux system has a kernel, the kernel by itself constitutes a usable distribution.

46
MCQeasy

A user wants to view the contents of a text file named 'notes.txt' one page at a time, and also be able to scroll backward and forward within the file. Which command is best suited for this task?

A.less notes.txt
B.tail notes.txt
C.head notes.txt
D.cat notes.txt
AnswerA

less is a pager that displays a file one screenful at a time and allows both forward and backward scrolling using arrow keys, Page Up/Down, and search. It is ideal for viewing large text files interactively. This matches the user's need to scroll in both directions.

Why this answer

less is a terminal pager that allows interactive viewing of text files, supporting scrolling in both directions, searching, and jumping to specific lines. Unlike cat, which dumps the whole file, or head and tail, which show only a portion, less gives the user full navigational control, making it the best choice for reading a file page by page.

Exam trap

The trap here is confusing less with more, but less provides backward scrolling while more typically only scrolls forward.

47
MCQhard

A user reports that a script stored on a mounted USB drive will not execute when invoked by name, even though it runs when called explicitly through the shell with bash script.sh. The file has execute permission set for the user. Which is the most likely cause?

A.The filesystem is mounted with the noexec option, preventing execution of binaries from that mount.
B.The user's PATH does not include the mount point of the USB drive.
C.The script is owned by root and the user is not root.
D.The script lacks a shebang line, so the kernel cannot determine an interpreter.
AnswerA

A mount option of noexec blocks direct execution of files on that filesystem while still permitting them to be read and interpreted, which explains why bash script.sh works but running the script by name fails. This is a common hardening setting for removable media and temporary mounts.

Why this answer

The noexec mount option allows files to be read but forbids executing them directly from that filesystem. That precisely matches a script failing when invoked by name on a USB drive while still running when handed to an interpreter explicitly, since interpretation only requires read access.

Exam trap

The trap here is focusing on file permissions or PATH when a mount-level restriction is what blocks direct execution.

48
MCQmedium

A system administrator is checking for hardware errors in the logs. Where are general system messages usually stored?

A./etc/log/
B./var/log/syslog
C./proc/logs
D./tmp/logs
AnswerB

On most Linux distributions, general system and service messages are written to /var/log/syslog by the syslog daemon, making it the standard location for reviewing hardware and system errors. Kernel-specific messages may also appear in dmesg or kern.log.

Why this answer

General system messages on most Linux distributions are written to /var/log/syslog (Debian/Ubuntu) or /var/log/messages (RHEL/CentOS). The /var/log directory is the standard location for system and application logs, and syslog is the traditional catch-all for kernel, daemon, and service messages.

Exam trap

The trap is choosing /etc/log/ or /proc/logs because they 'sound' like log locations — but /etc is for configuration and /proc is a virtual kernel interface, so only /var/log/syslog is a real log file.

How to eliminate wrong answers

Option A is wrong because /etc/log/ does not exist as a standard directory — /etc holds configuration files, not logs. Option C is wrong because /proc is a virtual filesystem exposing kernel and process state (e.g., /proc/cpuinfo, /proc/meminfo), not a log storage location. Option D is wrong because /tmp is for temporary files that may be cleared on reboot and is not used for persistent system logs.

49
Multi-Selecteasy

Which TWO of the following are considered hardware components?

Select 2 answers
A.Kernel
B.CPU
C.RAM
D.Bash
E.systemd
AnswersB, C

The CPU is a physical hardware component: a processor chip that executes instructions. It satisfies the stem's requirement for hardware, unlike software items such as operating systems or applications, which are intangible programs rather than tangible components.

Why this answer

Option B (CPU) is correct because the Central Processing Unit is a physical integrated circuit that executes instructions, making it a core hardware component of any computer. Option C (RAM) is correct because Random Access Memory is a physical memory module (e.g., DIMM) that stores data and instructions for active processes, clearly a hardware device. In contrast, option A (Kernel) is the core software layer of an operating system that manages hardware resources, not hardware itself.

Option D (Bash) is a software shell/command interpreter, and option E (systemd) is a software init and service manager; both are programs, not physical components.

Exam trap

The trap is that kernel, Bash, and systemd are all core Linux concepts that feel 'low-level' and essential, so candidates mistakenly classify them as hardware — but all three are software.

50
MCQhard

A Linux administrator needs to grant a contractor temporary read and write access to a project directory without adding the contractor's account to a shared group or changing ownership of existing files. Which approach best meets this requirement while following standard Linux permission practice?

A.Set the directory permissions to 777 so the contractor can read and write regardless of ownership.
B.Use setfacl to add an access ACL entry granting the contractor rw on the directory and its contents.
C.Change the directory's group to the contractor's primary group and set permissions to 770.
D.Create a hard link to the directory inside the contractor's home directory.
AnswerB

Access control lists extend the traditional owner-group-other model by allowing permissions for individual named users. Adding an ACL entry for the contractor grants read and write access to the project directory without changing group membership or file ownership, and the entry can be removed when the engagement ends, satisfying the temporary requirement cleanly.

Why this answer

POSIX access control lists allow permissions to be assigned to specific named users and groups beyond the three traditional classes. Using setfacl to add an entry for the contractor grants exactly the needed read and write rights on the project directory without disturbing group membership or ownership, and the entry can later be revoked with setfacl -x to end access.

Exam trap

The trap here is reaching for chmod 777 as a quick fix for a sharing problem, which grants access to everyone rather than only the intended contractor.

51
Multi-Selectmedium

Which TWO of the following tools allow you to manage disk partitions?

Select 2 answers
A.fdisk
B.parted
C.cat
D.sed
E.grep
AnswersA, B

fdisk is a command-line partition table editor that creates, deletes and modifies partitions on a disk, satisfying the requirement to manage disk partitions. It writes to the partition table via an interactive menu, supporting MBR and, on modern versions, GPT layouts.

Why this answer

fdisk (A) is a classic Linux command-line utility used to create, delete, resize, and manage disk partitions on MBR and (in recent versions) GPT disks, so it directly satisfies the requirement. parted (B) is another partition-management tool that supports both MBR and GPT partitioning schemes and can create, resize, move, and delete partitions, making it equally valid for this task. The remaining options do not manage partitions: cat (C) concatenates and displays file contents, sed (D) is a stream editor for text transformation, and grep (E) searches text for pattern matches.

Exam trap

The trap is mixing up text-processing tools (cat, sed, grep) with disk utilities — candidates who skim may select grep because it can read /proc/partitions, but reading partition info is not managing partitions.

52
MCQmedium

A junior admin is confused about the difference between software RAID and hardware RAID. Which of the following is a primary characteristic of software RAID?

A.It is managed by the OS and kernel.
B.It is always faster than hardware RAID.
C.It is configured in the BIOS.
D.It requires a dedicated controller card.
AnswerA

Software RAID is implemented entirely in the operating system kernel, which handles striping, mirroring and parity across disks without dedicated controller hardware. This OS-and-kernel management is the defining characteristic distinguishing it from hardware RAID, which offloads those operations to a dedicated controller.

Why this answer

Software RAID is implemented in the operating system kernel, which manages the RAID arrays and disk operations. This is its primary characteristic, as opposed to hardware RAID which uses a dedicated controller.

Exam trap

The trap is confusing software RAID with hardware RAID features, such as BIOS configuration or dedicated controllers, leading to wrong choices.

How to eliminate wrong answers

Option B is wrong because software RAID is generally slower than hardware RAID due to CPU overhead. Option C is wrong because software RAID is configured in the OS, not in the BIOS; hardware RAID is often configured in the BIOS or via a controller utility. Option D is wrong because software RAID does not require a dedicated controller card; it uses the existing disk controllers.

53
Multi-Selectmedium

A technician is preparing a presentation on how Linux organizes its filesystem and wants to describe the role of the Filesystem Hierarchy Standard. Which two statements accurately describe the FHS as it applies to mainstream Linux distributions? (Choose two.)

Select 2 answers
A.It defines a common directory layout so that software and administrators can rely on predictable locations for files.
B.It guarantees that all configuration files are stored in a single directory regardless of the software package.
C.It specifies the exact kernel version that a conforming distribution must ship.
D.It requires that removable media and temporary mounts appear under directories such as /media and /mnt.
E.It mandates that every distribution use the ext4 filesystem for the root partition.
AnswersA, D

The Filesystem Hierarchy Standard specifies where categories of files belong, such as programs in /usr/bin, configuration in /etc, and variable data in /var. This predictability lets packaged software and administrators find files without guessing per-distribution conventions. It is the core purpose of the standard and applies across mainstream distributions, making this statement accurate.

Why this answer

The Filesystem Hierarchy Standard exists to make file locations predictable across distributions, covering both core system directories and conventions for mounts such as /media and /mnt. It deliberately does not dictate storage formats or kernel versions, and configuration files are not forced into one universal directory. The two accurate statements reflect its real scope: consistent layout and defined mount conventions.

Exam trap

The trap here is conflating the directory-layout standard with unrelated implementation choices such as filesystem type or kernel version.

54
MCQmedium

You need to change the ownership of a file to user 'admin'. Which command is the correct way to do this?

A.usermod admin file
B.chown admin file
C.chmod admin file
D.chgrp admin file
AnswerB

chown changes file ownership, and its syntax takes the new owner followed by the target path, so 'chown admin file' assigns user admin as owner. This satisfies the stem's requirement precisely, unlike chmod, which alters permission bits rather than ownership.

Why this answer

The `chown` (change owner) command is specifically designed to change the ownership of files and directories. Running `chown admin file` sets the user 'admin' as the owner of 'file'. This is the correct and standard tool for ownership changes on Linux.

Exam trap

The trap is confusing the three file-metadata commands — candidates mix up `chown` (owner), `chgrp` (group), and `chmod` (permissions), or mistakenly reach for `usermod`, which edits account records rather than files.

How to eliminate wrong answers

Option A is wrong because `usermod` modifies user account properties (like group membership, shell, or home directory) in `/etc/passwd` — it does not operate on file ownership at all. Option C is wrong because `chmod` changes file permissions (read/write/execute bits), not ownership — it modifies the mode, not the owner. Option D is wrong because `chgrp` changes the group ownership of a file, not the user owner — it would set the group to 'admin', not the user.

55
MCQeasy

A help desk technician receives a call from a user who complains that their Linux workstation feels sluggish. The technician wants to see a dynamic, real-time list of processes sorted by CPU usage. Which command should the technician run?

A.ps aux
B.free -h
C.top
D.uptime
AnswerC

Running top launches an interactive, continuously updating view of running processes, with the busiest processes at the top by default. It refreshes every few seconds, showing CPU, memory, and load information, which directly matches the technician's need to observe real-time CPU consumption and identify the process causing sluggishness.

Why this answer

The technician needs an interactive, continuously refreshing view of processes ranked by CPU consumption. The top utility provides exactly that, updating at a configurable interval and allowing sorting and process management. Snapshot commands like ps aux and summary commands like free and uptime do not deliver a live, sorted process list.

Exam trap

The trap here is confusing a single-moment process snapshot with a live, self-refreshing process monitor.

56
MCQmedium

You are managing a Linux server and need to confirm the IP address assigned to the eth0 interface. Which command is most appropriate on modern distributions?

A.ifconfig
B.ip addr
C.route -n
D.netstat -rn
AnswerB

`ip addr` queries the kernel's netlink interface directly, reading current interface state from the running system rather than a legacy configuration file. It reports eth0's assigned IPv4 and IPv6 addresses, satisfying the need to confirm the actual address on modern distributions where `ifconfig` is deprecated and often absent by default.

Why this answer

The `ip addr` command is part of the iproute2 suite, which has replaced the legacy net-tools package on modern Linux distributions. It queries the kernel's network stack directly via netlink sockets and displays all interfaces with their assigned IPv4/IPv6 addresses, MAC addresses, and link state. Running `ip addr` (or its shorthand `ip a`) shows the eth0 interface with its inet address, making it the correct modern tool for this task.

Exam trap

The trap here is familiarity bias — candidates who learned Linux from older tutorials instinctively pick ifconfig, not realizing that modern distributions (and the LPI exam) treat net-tools as deprecated in favor of iproute2.

How to eliminate wrong answers

Option A is wrong because ifconfig belongs to the deprecated net-tools package, is no longer installed by default on most modern distributions (RHEL 7+, Ubuntu 18.04+), and does not display secondary IP addresses without the :0 alias syntax. Option C is wrong because `route -n` displays the kernel routing table in numeric form, not interface IP assignments. Option D is wrong because `netstat -rn` also shows the routing table (the -r flag means routes, -n means numeric), not interface addresses.

57
MCQmedium

A Linux administrator needs to check how much free space remains on each mounted filesystem before deploying a large application. The administrator wants a quick, human-readable summary showing used and available space per mount point. Which command should be used?

A.df -h
B.fdisk -l
C.lsblk -f
D.du -sh /
AnswerA

df -h reports disk space usage for all mounted filesystems in human-readable units, showing total size, used space, and available space per mount point. This directly provides the per-filesystem summary the administrator needs before deploying an application, and it executes quickly because it reads filesystem metadata rather than scanning files.

Why this answer

df -h is the standard tool for reporting filesystem capacity and remaining space across all mount points, with sizes scaled to KiB, MiB, and GiB for readability. It reads superblock information, so it is nearly instantaneous even on large volumes. du, lsblk, and fdisk provide usage totals, device layout, or partition geometry instead of per-filesystem free space.

Exam trap

The trap here is reaching for du because it also deals with disk usage, but du measures how much space files consume rather than how much remains on a filesystem.

58
Multi-Selecthard

Which THREE of the following files/commands are involved in system startup or services?

Select 3 answers
A./etc/hosts
B./etc/init.d
C.systemd
D./proc/cpuinfo
E.init
AnswersB, C, E

/etc/init.d holds SysV init scripts that start and stop services during system startup, satisfying the question's requirement for a startup or service file. Each script accepts start, stop and restart arguments, letting the init system launch daemons at defined runlevels.

Why this answer

/etc/init.d is correct because it is the traditional SysV-style directory holding init scripts that start, stop, and restart system services, and it is directly involved in service management during startup. systemd is correct because it is the modern init system and service manager on most Linux distributions, responsible for booting the system and managing services via units. init is correct because it is the classic first process (PID 1) that initializes the system and launches services, and it remains the conceptual name for the startup process even under systemd. /etc/hosts is not correct because it is a static hostname-to-IP mapping file used for name resolution, not a startup or service component. /proc/cpuinfo is not correct because it is a virtual file exposing CPU information, unrelated to system startup or service management.

Exam trap

The trap is that candidates see /etc/hosts and /proc/cpuinfo as 'system files' and assume they relate to startup, but the exam distinguishes configuration/informational files from actual init and service mechanisms.

59
MCQhard

An administrator needs to monitor network traffic in real-time on a specific interface. Which tool is commonly used to capture and display packets?

A.netstat
B.tcpdump
C.iptables
D.nmap
AnswerB

tcpdump captures packets directly from a chosen interface and prints them in real time, satisfying the requirement to monitor traffic live on a specific interface. It operates at the link layer via libpcap, unlike tools that only report aggregate statistics or historical logs.

Why this answer

tcpdump is the classic command-line packet capture tool that reads frames from a network interface via libpcap and displays them in real time or writes them to a pcap file. It supports BPF filter expressions to narrow captured traffic, making it ideal for live monitoring on a specific interface (e.g., tcpdump -i eth0). This matches the requirement to capture and display packets.

Exam trap

The trap is confusing network diagnostic tools: candidates may pick netstat because it also 'monitors network traffic', but netstat shows connection state, not packet contents.

How to eliminate wrong answers

Option A is wrong because netstat reports socket and connection statistics (listening ports, established connections) but does not capture or display packet contents. Option C is wrong because iptables is a packet filtering and NAT framework; it manipulates firewall rules rather than capturing and displaying traffic. Option D is wrong because nmap is a port scanner and host discovery tool; it sends probes and reports open ports/services but is not a packet capture utility.

60
MCQmedium

A user needs to find all files in the /var/log directory that have been modified in the last 24 hours. Which command will accomplish this?

A.find /var/log -mtime -1
B.ls -l /var/log
C.find /var/log -mtime +1
D.grep -r "24 hours" /var/log
AnswerA

The find command with -mtime -1 matches files modified less than 24 hours ago. The -1 means less than one day. This directly satisfies the requirement to locate recently modified files in /var/log, making it the correct choice.

Why this answer

find is designed to search for files based on various criteria, including modification time. The -mtime option takes a number of days; a negative value like -1 selects files modified less than that many days ago. Thus, find /var/log -mtime -1 correctly identifies files changed within the last 24 hours.

Exam trap

The trap here is reversing the meaning of -mtime -1 and +1; the minus sign means less than, not more than.

61
Multi-Selectmedium

A Linux user wants to create a new directory named 'projects' and then move an existing file named 'report.txt' into it. Which two commands will accomplish these tasks? (Choose two.)

Select 2 answers
A.rm report.txt projects/
B.touch projects
C.mv report.txt projects/
D.cp report.txt projects/
E.mkdir projects
AnswersC, E

The mv command moves or renames files. Using 'mv report.txt projects/' moves the file 'report.txt' into the 'projects' directory, assuming that directory exists. This accomplishes the second task. The trailing slash is optional but clarifies that 'projects' is a directory, preventing accidental renaming if a file with that name existed.

Why this answer

Creating a directory requires mkdir, and moving a file into it requires mv. The combination of mkdir projects and mv report.txt projects/ achieves both goals. Copying leaves the original in place, touch creates a file instead of a directory, and rm deletes rather than moves.

Exam trap

The trap here is confusing copy with move, or using touch to create a directory, when each command has a distinct purpose.

62
MCQmedium

A system administrator wants to check the partition table of a specific disk. Which tool is used for this?

A.fsck
B.df
C.mkfs
D.fdisk
AnswerD

fdisk reads and edits the partition table of a specified disk, displaying partitions, their types and sizes. Invoked with a device path, it directly satisfies the requirement to inspect a specific disk's partition table, unlike tools that only report filesystem usage.

Why this answer

fdisk is the classic interactive tool for viewing and editing a disk's partition table, invoked as 'fdisk -l /dev/sda' to list partitions. It reads the MBR or GPT structures on the device and displays partition start/end sectors, sizes, types, and IDs. This makes it the correct tool for inspecting partition layout.

Exam trap

The trap is confusing filesystem-level tools (fsck, mkfs, df) with disk-level tools; candidates must distinguish operations on filesystems from operations on partition tables.

How to eliminate wrong answers

Option A is wrong because fsck checks and repairs filesystem integrity; it operates on filesystems, not partition tables, and can even damage data if run on a mounted filesystem. Option B is wrong because df reports filesystem disk space usage (mounted filesystems), not the underlying partition table. Option C is wrong because mkfs creates a filesystem on a partition or volume; it writes filesystem metadata, not partition entries.

63
Multi-Selecthard

Which THREE of the following items are typically found in the /etc directory?

Select 3 answers
A./etc/tmp
B./etc/fstab
C./etc/passwd
D./etc/hosts
E./etc/bin
AnswersB, C, D

/etc/fstab resides in /etc and defines filesystem mount points and options read at boot, making it a standard configuration file found there. It is a plain-text system configuration file, matching the stem's expectation for /etc contents rather than binaries or runtime data.

Why this answer

/etc/fstab (B) is correct because it is the standard configuration file listing filesystems to be mounted at boot, including mount points, filesystem types, and mount options. /etc/passwd (C) is correct because it is the traditional system file storing user account information such as usernames, UIDs, GIDs, home directories, and login shells. /etc/hosts (D) is correct because it provides static hostname-to-IP-address mappings used by the system resolver before DNS. The other options do not belong: /etc/tmp (A) is not a standard file or directory in /etc, and /etc/bin (E) is not standard since executable binaries reside in /bin, /usr/bin, or /usr/local/bin, not under /etc.

Exam trap

The trap is that /etc/tmp and /etc/bin sound plausible because /tmp and /bin are real directories — candidates must recognize that /etc contains configuration, not temporary files or binaries.

64
Multi-Selectmedium

A Linux administrator is reviewing user account files and needs to understand where user information is stored. Which TWO of the following files contain user account details? (Choose two.)

Select 2 answers
A./etc/shadow
B./etc/login.defs
C./etc/group
D./etc/gshadow
E./etc/passwd
AnswersA, E

/etc/shadow stores encrypted user passwords and password aging information. It is readable only by root for security. Along with /etc/passwd, it forms the core of user account data. Therefore, it is a correct choice for user account details, especially sensitive authentication data.

Why this answer

User account details are primarily stored in /etc/passwd and /etc/shadow. The former holds general account information, while the latter holds encrypted passwords and aging data. Other files like /etc/group and /etc/gshadow pertain to groups, and /etc/login.defs provides configuration defaults, not actual account records.

Exam trap

The trap here is confusing group-related files with user account files, or assuming that configuration files like login.defs store user data, when they only define policies.

65
MCQeasy

What is the purpose of the /proc directory in Linux?

A.To store configuration files for boot.
B.To store user passwords.
C.To provide information about kernel and processes.
D.To store temporary system files.
AnswerC

/proc is a virtual pseudo-filesystem exposing kernel and process state as readable files, satisfying the need for runtime system information. Each running process appears as a numbered subdirectory, and files such as /proc/cpuinfo or /proc/meminfo report kernel data without occupying disk space.

Why this answer

The /proc directory is a virtual filesystem (procfs) that provides a real-time interface to kernel data structures and running process information. It does not exist on disk — the kernel generates its contents dynamically, exposing details like CPU info (/proc/cpuinfo), memory usage (/proc/meminfo), and per-process data under /proc/[PID]/. This makes it the correct answer for providing kernel and process information.

Exam trap

The trap is confusing /proc with /etc or /tmp — candidates who memorize 'config files go in /etc' may incorrectly map boot configuration to /proc, missing that /proc is a virtual, kernel-generated filesystem, not a storage location.

How to eliminate wrong answers

Option A is wrong because boot configuration files live in /boot (kernel images, GRUB config) and /etc (systemd units, fstab), not /proc. Option B is wrong because user password hashes are stored in /etc/shadow (and historically /etc/passwd), which are regular on-disk files with strict permissions. Option D is wrong because temporary system files are stored in /tmp and /var/tmp, which are writable directories on disk, whereas /proc is a virtual in-memory filesystem.

66
Multi-Selectmedium

Which TWO commands are commonly used to check network connectivity to a host?

Select 2 answers
A.arp
B.fdisk
C.ping
D.traceroute
E.ssh
AnswersC, D

Ping uses ICMP echo request and reply packets to verify reachability and round-trip latency to a specific host, directly satisfying the connectivity-check requirement. It confirms whether the target responds at the network layer, independent of higher-level services, making it a standard first-line diagnostic tool.

Why this answer

Option C, ping, is correct because it uses ICMP Echo Request and Echo Reply messages to verify basic IP-level reachability and round-trip time to a target host, making it the most common connectivity test. Option D, traceroute, is correct because it sends packets with incrementally increasing TTL values to map each router hop along the path to the destination, which helps diagnose where connectivity breaks down. Option A, arp, only resolves or displays IPv4-to-MAC address mappings in the local ARP cache and does not test end-to-end reachability.

Option B, fdisk, is a disk partitioning utility unrelated to network diagnostics. Option E, ssh, establishes an encrypted remote login session over TCP port 22 but is not a general-purpose connectivity-checking command.

Exam trap

The trap here is confusing tools that display network configuration or establish connections (like arp or ssh) with tools that actively test reachability and path (ping and traceroute).

67
MCQeasy

A small business owner wants to implement a server that allows for long-term support and stability for critical financial applications. Which distribution strategy should they prioritize?

A.Choosing a distribution that offers an LTS version with a long support lifecycle.
B.Using a desktop-focused distribution for ease of installation.
C.Compiling the kernel from source to match the specific hardware.
D.Selecting a rolling release distribution for frequent kernel updates.
AnswerA

An LTS release freezes package versions and backports only security fixes, so the financial applications run against a stable, unchanging ABI for years. This directly satisfies the stem's demand for long-term support and stability, unlike rolling distributions whose continuous updates risk breaking critical software.

Why this answer

For long-term support and stability of critical financial applications, an LTS (Long Term Support) distribution is ideal because it provides a stable, well-tested platform with security updates for an extended period (often 5-10 years). This minimizes disruptive changes and ensures reliability. Rolling releases and desktop-focused distributions prioritize frequent updates or ease of use, not long-term stability.

Exam trap

The trap is confusing 'stability' with 'latest features'; candidates may think rolling releases are stable because they are up-to-date, but stability in this context means minimal change and long support.

How to eliminate wrong answers

Option B is wrong because desktop-focused distributions prioritize user experience and frequent application updates, not the stability and long support lifecycle required for critical financial applications. Option C is wrong because compiling the kernel from source is a customization step, not a distribution strategy, and it does not provide long-term support or stability guarantees. Option D is wrong because rolling release distributions provide the latest software continuously, which introduces instability and frequent changes, contrary to the need for long-term stability.

68
MCQeasy

A technician needs to identify the amount of RAM installed in a server without opening the chassis. Which command provides this information from the command line?

A.uptime
B.lsblk
C.free -m
D.df -h
AnswerC

free -m reads /proc/meminfo and reports total, used and available RAM in mebibytes, giving installed memory without physical access. It satisfies the stem's constraint of identifying RAM from the command line without opening the chassis.

Why this answer

`free -m` reads memory statistics from /proc/meminfo and displays total, used, free, shared, buff/cache, and available RAM in mebibytes. It is the standard command-line tool for reporting installed and currently used physical memory without touching the hardware.

Exam trap

The trap is confusing memory-reporting tools with disk-reporting tools — candidates who see 'free' and 'df' both report 'space' may pick `df -h`, forgetting that `df` is filesystem (disk) usage, not RAM.

How to eliminate wrong answers

Option A is wrong because `uptime` reports how long the system has been running, the number of logged-in users, and load averages — it contains no memory information. Option B is wrong because `lsblk` lists block devices (disks and partitions) and their mountpoints, which is storage, not RAM. Option D is wrong because `df -h` reports filesystem disk space usage in human-readable units, which is also storage, not memory.

Ready to test yourself?

Try a timed practice session using only The Linux Operating System questions.