View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 1
Which of the following directories in the Linux file system hierarchy typically contains essential system binaries required for single-user mode operations?
- /sbin
- /home
- /media
- /var
Correct Answer: 1
Explanation
The /sbin directory contains critical system binaries and administrative commands that are essential for system initialization, maintenance, and recovery operations. These binaries—such as fsck, fdisk, and iptables—are typically reserved for the root user and are required during single-user mode when other filesystems may not yet be mounted. In contrast, directories like /home house user-specific personal files, /media provides mount points for removable storage media like USB drives, and /var stores variable data files such as system logs, spool files, and temporary databases that change continuously during standard daily operating system execution.
Question 2
What is the primary function of the Linux kernel within an operating system architecture?
- Providing a graphical user interface window manager for desktop users
- Managing hardware resources and acting as an interface between software and physical devices
- Compiling source code files into executable machine binaries
- Managing remote network connections and firewall packet filtering rules
Correct Answer: 2
Explanation
The Linux kernel serves as the foundational core of the operating system, holding complete responsibility for managing system hardware resources, including the CPU, memory, storage devices, and peripheral interfaces. It acts as an indispensable abstraction layer, facilitating seamless communication between user-space software applications and physical hardware components through system calls and device drivers. While window managers handle graphical user interfaces, compilers translate source code, and network daemons handle remote connections, the kernel remains uniquely vital for process scheduling, memory allocation, hardware interrupt handling, and overall system stability across diverse computing environments.
Question 3
Which command is used to display the current working directory path in a Linux shell?
- cd
- pwd
- ls
- dir
Correct Answer: 2
Explanation
The pwd command, which stands for print working directory, outputs the absolute pathname of the current working directory to standard output, allowing users to instantly verify their exact location within the filesystem hierarchy. The cd command is utilized to change directories, ls lists directory contents, and dir provides a similar listing function historically ported from other operating systems. Utilizing pwd is an essential habit when navigating complex directory structures to ensure subsequent file manipulation commands target the intended locations without risking accidental modifications or deletions in unintended system directories.
Question 4
Which open-source license allows software to be freely modified, shared, and distributed while strictly requiring that all derivative works remain under the same open-source terms?
- MIT License
- GNU General Public License (GPL)
- Apache License 2.0
- BSD 3-Clause License
Correct Answer: 2
Explanation
The GNU General Public License is a widely adopted copyleft license that ensures software remains perpetually free and open. It grants users the legal permissions to run, study, modify, and redistribute the software, but includes a binding condition that any derivative work or modified distribution must also be licensed under the exact same GPL terms. This copyleft mechanism prevents proprietary software entities from taking open-source code, modifying it, and locking it behind closed commercial licenses. Conversely, permissive licenses like MIT, Apache 2.0, and BSD place far fewer restrictions on derivative commercialization and closed-source redistribution.
Question 5
What is the purpose of the /etc/passwd file in a standard Linux system configuration?
- Storing encrypted user account password hashes and expiration policies
- Maintaining a database of system groups and primary group memberships
- Containing user account metadata, login shells, and home directory paths
- Recording historical authentication failure logs and security events
Correct Answer: 3
Explanation
The /etc/passwd file serves as a system-wide plain-text database that stores essential user account metadata. Each entry defines a user account using colon-separated fields, specifying the username, a placeholder for passwords, the numeric User ID, the Group ID, a descriptive comment, the absolute path to the user home directory, and the default login shell. Although historical UNIX systems stored encrypted password hashes directly within this file, modern Linux distributions separate sensitive hash data into the /etc/shadow file for enhanced security. Meanwhile, group details reside in /etc/group, and authentication events are logged elsewhere.
Question 6
Which shell command changes the current working directory to the user home directory?
- cd /root
- cd ~
- cd ..
- cd /etc
Correct Answer: 2
Explanation
The tilde character represents the home directory of the currently logged-in user, making cd ~ the standard command to navigate directly back to your personal home directory from anywhere within the filesystem. Executing cd without any arguments achieves the exact same navigation result. Alternatively, cd .. moves the working directory up one level to the parent directory, cd /root navigates specifically to the root administrator home directory, and cd /etc targets the system configuration directory. Understanding these navigation shortcuts is fundamental for efficient command-line navigation and file management across Linux platforms.
Question 7
Which utility is commonly used to extract and manage compressed archive files with the .tar.gz extension?
- zip
- tar
- gzip
- bzip2
Correct Answer: 2
Explanation
The tar command, short for tape archive, is the premier utility used to bundle multiple files and directory trees into a single archive file, while also supporting compression flags like gzip to handle .tar.gz or .tgz files efficiently. Although gzip and bzip2 are responsible for compressing individual data streams, tar wraps the file structure together before applying compression. The zip utility manages separate .zip archives, but tar remains the industry standard for backup, distribution, and software source packaging across almost all UNIX-like operating systems and Linux distributions today.
Question 8
What does FOSS stand for in the context of software licensing and community philosophy?
- Fast Open Secure Software
- Free and Open Source Software
- File Organization Standard System
- Functional Open Source Structure
Correct Answer: 2
Explanation
FOSS stands for Free and Open Source Software, an umbrella term that embraces both free software movements and open-source development methodologies. The term highlights software that grants users the freedom to run, copy, distribute, study, change, and improve the underlying code. The philosophy emphasizes community collaboration, transparency, peer review, and the elimination of proprietary restrictions that prevent users from inspecting or modifying the tools they rely upon daily. Understanding FOSS principles is essential for grasping the collaborative ethos driving modern Linux distributions and enterprise cloud infrastructure architectures.
Question 9
Which command line tool displays manual pages and system documentation for shell commands?
- info
- help
- man
- doc
Correct Answer: 3
Explanation
The man command invokes the system manual pages, providing comprehensive reference documentation for shell commands, configuration file formats, programming functions, and system administration utilities. By typing man followed by a command name, users can inspect detailed descriptions, command-line option flags, syntax requirements, and practical usage examples. While help is often a shell builtin for specific lightweight commands and info offers a more hyperlinked documentation browsing experience, man remains the universal, primary command-line reference tool relied upon daily by Linux systems administrators worldwide.
Question 10
Which directory is designated for mounting temporary filesystems and removable storage devices?
- /tmp
- /mnt
- /bin
- /sbin
Correct Answer: 2
Explanation
The /mnt directory serves as a generic temporary mount point where system administrators can manually mount filesystems, network shares, or external storage volumes during maintenance or data transfer tasks. Similarly, the /media directory is often used by modern desktop environments for automatic mounting of removable media like USB flash drives and optical discs. In contrast, /tmp is used by the operating system and running applications to store ephemeral temporary files that can be safely deleted across reboots, while /bin and /sbin store core executable binaries required for basic system operation.
Question 11
Which permission representation corresponds to read, write, and execute permissions granted to the owner, while group and others have read-only access?
- rwxr–r–
- rwxrwxrwx
- rw-r–r–
- r-xr-xr-x
Correct Answer: 1
Explanation
File permissions in Linux are divided into three distinct classes: owner, group, and others, each possessing read, write, and execute attributes represented by r, w, and x characters respectively. The permission string rwxr–r– grants the file owner full read, write, and execute access (rwx), while restricting both the owning group and all other system users to read-only access (r–). This permission structure ensures that while everyone can inspect the file contents, only the authorized owner can modify, update, or execute the file, thereby maintaining baseline system security and preventing unauthorized tampering.
Question 12
What is the function of the apt-get command on Debian-based Linux distributions?
- Compiling raw C source code into binary executables
- Managing package installations, updates, and software removal
- Configuring network interface static IP addresses and routing tables
- Monitoring active kernel processes and CPU memory consumption
Correct Answer: 2
Explanation
The apt-get command is a powerful command-line package management tool utilized in Debian-based Linux distributions—such as Ubuntu and Linux Mint—to handle software installation, package upgrades, dependency resolution, and system software removal. It interacts seamlessly with remote software repositories to fetch verified packages safely. While compilation is handled by tools like make and gcc, network configuration utilizes ip or netplan utilities, and process monitoring is managed via top or htop, apt-get remains vital for maintaining up-to-date software inventories and system security patches.
Question 13
Which environmental variable defines the ordered list of directories searched by the shell to locate executable commands?
- HOME
- PATH
- SHELL
- USER
Correct Answer: 2
Explanation
The PATH environment variable contains an ordered colon-separated list of absolute directory paths that the shell scans sequentially whenever a user types an executable command without specifying its full path. If a command binary resides within a directory included in PATH, the shell executes it immediately; otherwise, it returns a command not found error. Other variables like HOME specify the user home directory, SHELL defines the default user command interpreter, and USER holds the active username. Managing PATH correctly is critical for ensuring custom scripts and locally installed applications run without errors.
Question 14
Which command line tool is used to search for text patterns within files using regular expressions?
- find
- grep
- sed
- awk
Correct Answer: 2
Explanation
The grep utility is a powerful text search tool designed to examine plain-text input files for lines matching specific regular expression patterns and print the matching lines to standard output. It is an indispensable utility for log analysis, script writing, and configuration file auditing. While find locates files within directory hierarchies based on attributes like name and modification time, sed handles stream text editing, and awk specializes in data extraction and reporting, grep remains the definitive tool for lightning-fast pattern searching across files.
Question 15
What is the role of the Linux swap space?
- Acting as a physical backup target for long-term data archiving
- Serving as virtual memory overflow when physical RAM is fully utilized
- Storing kernel debugging symbols and crash dump logs
- Providing high-speed caching for network packet routing tables
Correct Answer: 2
Explanation
Linux swap space functions as virtual memory allocated on secondary storage devices—such as hard disk drives or solid-state drives—that the kernel utilizes when physical RAM capacity is exhausted. When active memory demands exceed available RAM, the kernel pages inactive memory blocks out to swap space, freeing up physical RAM for active processes and preventing out-of-memory crashes. Although swap space is significantly slower than physical RAM, it acts as a crucial safety buffer to maintain system stability under heavy multitasking workloads and intensive computational demands across enterprise servers.
Question 16
Which command modifies file ownership by assigning a new user owner and group?
- chmod
- chown
- chgrp
- umask
Correct Answer: 2
Explanation
The chown command, short for change owner, is utilized to alter the user owner and optionally the owning group of a file or directory. For example, executing chown user:group filename updates both ownership parameters simultaneously. Conversely, chmod modifies access permission bits, chgrp changes solely the group ownership without affecting the user owner, and umask sets the default permission mask applied to newly created files and directories. Proper ownership management via chown is critical for enforcing security boundaries and access control across shared multi-user system environments.
Question 17
Which configuration file holds static mount point information for local and remote filesystems in Linux?
- /etc/resolv.conf
- /etc/fstab
- /etc/hosts
- /etc/passwd
Correct Answer: 2
Explanation
The /etc/fstab file contains static filesystem mount information, defining how storage devices, partitions, optical media, and network shares should be mounted into the directory tree during system boot and normal operation. Each entry specifies the device identifier, mount point directory, filesystem type, mount options, dump backup flags, and filesystem check order. Meanwhile, /etc/resolv.conf configures DNS name server IP addresses, /etc/hosts handles static hostname-to-IP mappings, and /etc/passwd stores user account metadata. Correctly configuring fstab is vital for preventing boot failures and ensuring persistent storage availability.
Question 18
What is the purpose of the root user account in a Linux operating system?
- Providing standard unprivileged access for daily desktop browsing
- Exercising unrestricted administrative control over all system functions and files
- Managing guest user login sessions and temporary network printing queues
- Restricting user execution privileges to enhance security isolation
Correct Answer: 2
Explanation
The root user account, often referred to as the superuser or administrator, possesses unrestricted administrative privileges across the entire Linux operating system. Root can bypass all file permission restrictions, install or remove software packages, modify core system configurations, manage user accounts, and control hardware devices. Because of this absolute power, standard daily tasks are typically performed using unprivileged user accounts, utilizing tools like sudo to execute administrative commands selectively when necessary, thereby protecting the system from accidental corruption or malicious exploitation.
Question 19
Which command line utility displays real-time system resource utilization and active running processes?
- ps
- top
- ls
- df
Correct Answer: 2
Explanation
The top utility provides a dynamic, real-time view of running system processes, displaying continuous updates on CPU utilization, memory consumption, swap usage, task states, and system load averages. It allows administrators to identify resource-hungry processes instantly and terminate misbehaving tasks interactively. While ps provides a static snapshot of process statuses at the exact moment of execution, df displays available disk space across mounted filesystems, and ls lists directory contents. Mastering top is essential for performance monitoring and troubleshooting Linux server resource bottlenecks.
Question 20
What is the primary function of a Linux distribution (distro)?
- Writing raw assembly code for custom microprocessors
- Bundling the Linux kernel, system utilities, package managers, and software applications into a complete OS
- Providing cloud-based firewall protection and intrusion detection services
- Translating human languages into binary machine bytecode
Correct Answer: 2
Explanation
A Linux distribution packages the core Linux kernel together with essential system libraries, GNU core utilities, a package management system, configuration tools, and a rich selection of precompiled software applications into a cohesive, ready-to-install operating system. Examples include Ubuntu, Fedora, Debian, and CentOS. Because the kernel alone is not a fully usable operating system, distributions bridge the gap by integrating all necessary components, allowing end users and enterprises to deploy, manage, and utilize Linux effortlessly across desktops, servers, embedded devices, and massive cloud computing infrastructures.