View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 141
Which command is used to decompress a file compressed with gzip?
- bunzip2
- gunzip
- unxz
- tar
Correct Answer: 2
Explanation
The gunzip command is the standard utility used in Linux to decompress files that have been compressed using the gzip compression algorithm, restoring them to their original uncompressed size. When executed, gunzip automatically removes the .gz extension from the target filename and replaces the compressed archive with the raw file data. While bunzip2 handles bzip2 compressed files and unxz handles xz files, gunzip remains the dedicated tool for standard gzip archives. Mastering file decompression utilities is essential for system administrators managing software downloads, log files, and backup archives efficiently across enterprise Linux server and cloud infrastructure environments.
Question 142
Which command sends a termination signal to all processes matching a specified command name?
- pkill
- kill
- top
- ps
Correct Answer: 1
Explanation
The pkill command allows administrators to send signals—such as termination requests or kill commands—to running processes by specifying their exact command name or pattern rather than requiring manual process ID lookups. This streamlines process management significantly when multiple instances of an application are active. In contrast, kill requires numeric process IDs, top displays real-time resource utilization, and ps outputs process snapshots. Knowing how to utilize pkill effectively ensures that system administrators can manage background daemons, terminate runaway tasks quickly, and maintain stable operational performance across production Linux environments under heavy multi-user workloads.
Question 143
Which package manager is the default command-line tool for managing RPM packages on modern Fedora and RHEL distributions?
- apt
- zypper
- dnf
- pacman
Correct Answer: 3
Explanation
The dnf command is the primary next-generation package management utility used on modern Red Hat Enterprise Linux, Fedora, and CentOS distributions to install, update, remove, and query software packages. It supersedes legacy yum by providing faster dependency resolution, lower memory consumption, and robust transactional software management. While apt serves Debian-based systems, zypper manages openSUSE, and pacman handles Arch Linux, dnf remains the definitive tool for RHEL administrators. Mastering dnf ensures reliable software maintenance, security updates, and package compliance across enterprise server clusters and cloud virtual machine deployments.
Question 144
Which command displays active network interface configurations and IP addresses on modern Linux systems?
- ip addr
- ifconfig
- route
- ping
Correct Answer: 1
Explanation
The ip addr command is the modern, robust utility used to display and manage network interface configurations, IP addresses, and operational link states on contemporary Linux distributions. It replaces legacy tools like ifconfig, offering direct access to kernel netlink socket data for faster and more detailed network telemetry. While ifconfig is deprecated, route manages routing tables, and ping tests basic ICMP reachability, ip addr is the standard administrative tool for inspecting network topology. Mastering the ip suite is critical for configuring network interfaces, troubleshooting connectivity failures, and maintaining reliable infrastructure communications.
Question 145
Which shell loop structure executes a block of commands for each item in a specified list?
- while
- until
- if
- for
Correct Answer: 4
Explanation
The for loop is a fundamental control flow statement in bash shell scripting that iterates through a predetermined list of items, executing a specific block of commands for each individual element. It is widely used in automation scripts to process file batches, iterate over server addresses, or perform repetitive administrative tasks. While while loops continue executing as long as a conditional test remains true, until loops run until a condition becomes true, and if handles conditional branching. Mastering for loops is essential for writing efficient, scalable automation scripts across enterprise environments.
Question 146
Which directory contains temporary files that are typically cleared automatically upon system reboot?
- /tmp
- /var
- /etc
- /home
Correct Answer: 1
Explanation
The /tmp directory is designated within the Linux Filesystem Hierarchy Standard to store temporary files created by applications and system users during daily operations. Files stored here are typically ephemeral and can be deleted automatically during system reboots or through scheduled maintenance daemons like tmpwatch. In contrast, /var stores persistent variable logs, /etc holds system configuration files, and /home houses user personal data directories. Proper monitoring of /tmp permissions and disk consumption is vital for maintaining system security, preventing unauthorized access, and ensuring sufficient temporary storage space for active running applications.
Question 147
Which command modifies the default file permission mask for newly created files and directories?
- chmod
- chown
- umask
- chgrp
Correct Answer: 3
Explanation
The umask command sets the file mode creation mask, which determines the default access permissions stripped away from newly created files and directories in the shell session. By subtracting the umask value from maximum default permissions, administrators ensure that files are not created with overly permissive access rights. While chmod modifies existing file permissions, chown alters user ownership, and chgrp updates group ownership. Understanding umask is crucial for enforcing security policies, protecting sensitive data, and ensuring that newly provisioned user files adhere strictly to organizational access control guidelines and least privilege principles.
Question 148
Which command searches for files within a directory hierarchy based on criteria such as name, size, or modification date?
- grep
- find
- locate
- sed
Correct Answer: 2
Explanation
The find command is a powerful utility used to search directory hierarchies recursively for files and directories matching specified criteria, including filename patterns, size thresholds, user ownership, and modification timestamps. It allows administrators to locate misplaced data or execute batch operations on matching files. While grep searches inside file contents for text patterns, locate queries a precompiled system database for rapid filename lookups, and sed performs stream text editing. Mastering the find command is an essential system administration skill for conducting security audits, cleaning up storage drives, and managing files efficiently.
Question 149
Which utility manages user account password aging policies and expiration parameters in Linux?
- useradd
- usermod
- passwd
- chage
Correct Answer: 4
Explanation
The chage command is a dedicated administrative utility used to change user password aging and expiration information, such as maximum password validity days, warning periods, and account inactivity lockouts. It interfaces directly with the /etc/shadow file to enforce robust corporate security compliance standards. While useradd provisions accounts, usermod updates general account properties, and passwd changes passwords, chage specifically controls lifecycle expiration rules. Implementing strict password aging policies via chage is essential for preventing unauthorized access, mitigating credential compromise risks, and maintaining rigorous security compliance across enterprise multi-user Linux environments.
Question 150
Which systemctl command checks whether a specific service daemon is currently running and enabled?
- systemctl status
- systemctl restart
- systemctl stop
- systemctl enable
Correct Answer: 1
Explanation
The systemctl status command queries the systemd manager and outputs the current operational state, active process ID, recent log entries, and boot-time enablement status of a specified service daemon. It is the primary diagnostic tool used by administrators to verify service health and troubleshoot startup failures. Conversely, systemctl restart reloads service configurations, systemctl stop terminates active daemon execution, and systemctl enable configures automatic startup during system boot. Mastering status checks ensures reliable daemon lifecycle management and high availability across enterprise Linux server infrastructures and cloud environments.
Question 151
Which text processing utility is designed for stream editing and pattern replacement in files?
- awk
- sed
- grep
- cut
Correct Answer: 2
Explanation
The sed command stands for stream editor and is a powerful non-interactive text processing utility used to perform basic text transformations, substitutions, insertions, and deletions on input streams or files. It is heavily utilized in shell scripts to automate configuration file modifications and log parsing tasks. While awk provides a comprehensive programming language for complex columnar data extraction, grep searches for string patterns, and cut extracts specific columns. Mastering sed enables administrators to execute rapid, automated text manipulations and maintain configuration consistency efficiently across numerous production servers without manual intervention.
Question 152
Which tar command option flag is used to extract the contents of an existing archive file?
- -c
- -t
- -x
- -r
Correct Answer: 3
Explanation
The -x option flag instructs the tar utility to extract the contents of a specified archive file back onto the local filesystem, restoring directory structures and file metadata. It is the core operation used when unpacking downloaded software packages or system backups. While -c creates new archives, -t lists archive contents without extracting them, and -r appends files to existing archives. Mastering extraction commands ensures that administrators can deploy applications, recover backed-up data securely, and manage software bundles efficiently across diverse Linux environments and cloud server deployment pipelines.
Question 153
Which command is used to export shell variables so they become available to child processes and scripts?
- set
- export
- env
- echo
Correct Answer: 2
Explanation
The export command marks shell variables so that they are automatically inherited by any subsequently executed child processes, scripts, or subshells running within the current session environment. Without export, variables remain local to the immediate interactive shell and cannot be accessed by external scripts. While set displays all shell variables, env lists active environment variables, and echo prints specific variable values. Understanding how export functions is crucial for configuring runtime execution parameters, environment paths, and application variables correctly across complex shell automation scripts and cloud deployment workflows.
Question 154
Which utility displays detailed hardware specifications and architectural parameters of the system CPU?
- lscpu
- lspci
- lsusb
- lsblk
Correct Answer: 1
Explanation
The lscpu command queries the kernel and system files to display comprehensive information about the central processing unit architecture, including core counts, thread allocation, socket layout, cache sizes, and instruction set extensions. It provides a quick and readable summary without requiring low-level diagnostic access. While lspci lists motherboard PCI devices, lsusb details connected USB peripherals, and lsblk reports storage block devices. Knowing how to utilize lscpu is essential for hardware inventory assessments, performance tuning, and verifying virtualization capabilities when deploying software applications across enterprise Linux servers.
Question 155
Which command-line tool is used to format a new storage partition with the ext4 filesystem?
- fdisk
- parted
- mkfs.ext4
- mount
Correct Answer: 3
Explanation
The mkfs.ext4 command is a specialized formatting utility used to create a new ext4 filesystem on a designated storage partition or logical volume, establishing the inode tables and block structures required for data storage. It is the final step before a partition can be mounted and used. While fdisk and parted create raw partition layouts, mount attaches the formatted filesystem to the directory tree. Mastering partition formatting tools ensures proper storage provisioning, reliable file system initialization, and robust data management across production Linux servers and enterprise infrastructure storage volumes.
Question 156
What is the primary role of the GRUB bootloader during the Linux system startup process?
- Loading the Linux kernel into system memory from storage drives
- Managing network routing tables and IP addresses
- Providing graphical desktop window management services
- Compiling source code binaries during system initialization
Correct Answer: 1
Explanation
The GRUB bootloader is responsible for initializing during system startup, presenting the operating system selection menu, and loading the compressed Linux kernel image along with its initial RAM filesystem into system memory. It acts as the critical bridge between system firmware and the operating system kernel. In contrast, network managers handle IP configurations, window managers provide desktop interfaces, and compilers build software binaries. Understanding GRUB is essential for troubleshooting boot failures, managing multi-boot environments, and configuring kernel command-line parameters across enterprise servers and desktop Linux installations safely.
Question 157
Which configuration file controls incoming SSH daemon security settings and connection parameters?
- /etc/ssh/ssh_config
- /etc/ssh/sshd_config
- /etc/passwd
- /etc/fstab
Correct Answer: 2
Explanation
The /etc/ssh/sshd_config file is the master configuration file governing the SSH daemon on Linux servers, controlling critical security parameters such as root login permissions, allowed authentication methods, port bindings, and cryptographic key policies. Proper hardening of this file is essential for preventing unauthorized server access. While /etc/ssh/ssh_config controls outgoing client behavior, /etc/passwd stores user metadata, and /etc/fstab handles mount points. Mastering SSH daemon configuration ensures robust administrative security, protects remote server infrastructure against malicious attacks, and enforces strict cryptographic compliance standards across enterprise environments.
Question 158
Which utility is used by administrators to edit and manage scheduled cron jobs for automated tasks?
- at
- batch
- crontab
- systemctl
Correct Answer: 3
Explanation
The crontab utility allows users and system administrators to create, edit, list, and remove scheduled background jobs that execute automatically at specified dates and times using the cron daemon. It is the primary tool for automating routine system maintenance tasks, backups, and script execution. While at schedules single one-time tasks, batch runs commands when system load is low, and systemctl manages systemd services. Knowing how to configure cron jobs properly is essential for reliable task automation, system administration efficiency, and operational maintenance across production Linux server environments.
Question 159
Which directory typically houses system-wide network configuration files and netplan definitions on Ubuntu servers?
- /etc/netplan
- /var/log
- /tmp
- /home
Correct Answer: 1
Explanation
The /etc/netplan directory is the designated location on modern Ubuntu servers where YAML-based network configuration files are stored, defining IP addresses, gateways, and interface parameters for netplan to render. It streamlines network management across modern distributions. In contrast, /var/log stores variable log files, /tmp holds ephemeral temporary files, and /home contains personal user directories. Proper configuration and management of network files within /etc are critical for ensuring reliable host connectivity, maintaining stable remote server accessibility, and troubleshooting network configuration issues across enterprise infrastructure deployments.
Question 160
What is a key characteristic of permissive open-source licenses like MIT or BSD compared to copyleft licenses like GPL?
- Requiring all derivative works to be open-sourced under identical terms
- Prohibiting any commercial monetization or corporate distribution
- Allowing proprietary modification and redistribution with minimal restrictions
- Mandating specific hardware platforms for software execution
Correct Answer: 3
Explanation
Permissive open-source licenses, such as the MIT and BSD licenses, grant users extensive freedom to use, modify, distribute, and even incorporate the software into proprietary commercial products with minimal attribution requirements. Unlike copyleft licenses like the GPL, which mandate that derivative works remain open-source under identical terms, permissive licenses offer maximum flexibility for commercial software development and corporate adoption. Understanding licensing differences is vital for legal compliance, software governance, and intellectual property management across modern enterprise software engineering and technology deployment projects.