LPI 010-160 Practice Test Questions and Exam Dumps Part 5 Q81-100

View Full LPI 010-160 Exam Dumps and Practice Test Dumps.

 

Question 81

Which command-line tool is used to manage package installations on openSUSE and SUSE Linux Enterprise?

  1. apt-get
  2. zypper
  3. dnf
  4. pacman

Correct Answer: 2

Explanation

The zypper command is the primary command-line package management tool utilized in openSUSE and SUSE Linux Enterprise distributions. It interfaces directly with software repositories to install, update, remove, and query packages with automatic dependency resolution. Zypper provides a fast and reliable transactional mechanism for managing software inventories, ensuring system security and consistency. While apt-get serves Debian-based distributions, dnf powers RPM-based Red Hat platforms, and pacman manages Arch Linux environments, zypper remains the definitive tool for SUSE administrators. Its robust feature set supports repository management, service verification, and distribution upgrades seamlessly across enterprise servers.

Question 82

What is the purpose of the /etc/group file in a Linux operating system?

  1. Storing encrypted user password hashes
  2. Defining default system-wide environment variables
  3. Storing static network route configurations
  4. Maintaining security group definitions and memberships

Correct Answer: 4

Explanation

The /etc/group file is a plain-text system configuration database that maintains security group definitions and their corresponding member user accounts. Each entry consists of colon-separated fields specifying the group name, encrypted password placeholder, numeric Group ID, and a comma-separated list of usernames belonging to that group. System administrators utilize this file to implement role-based access control, allowing multiple users to share file permissions without compromising security. While /etc/passwd stores user metadata and /etc/shadow handles encrypted password hashes, /etc/group remains essential for managing collaborative access boundaries across shared multi-user enterprise Linux servers and desktop environments.

Question 83

Which shell command displays the currently logged-in users on the system?

  1. who
  2. uptime
  3. uname
  4. free

Correct Answer: 1

Explanation

The who command displays a concise list of all users currently logged into the Linux system, showing their active terminal lines, login timestamps, and remote host origins if connected via network sessions. This utility provides a quick administrative snapshot of active session activity, helping administrators monitor multi-user environments for security and auditing purposes. In contrast, uptime reports system load averages and active run duration, uname outputs kernel version and architecture details, and free tracks RAM and swap memory utilization. Utilizing who regularly is an essential habit for system administrators maintaining operational oversight and tracking user presence across enterprise servers.

Question 84

Which command-line option tells tar to compress an archive using gzip?

  1. -j
  2. -v
  3. -z
  4. -f

Correct Answer: 3

Explanation

The -z option instructs the tar utility to filter the archive stream through gzip compression, enabling the creation of compressed archives with the .tar.gz or .tgz extension in a single step. This integration combines file bundling and data compression efficiently, saving critical storage space and accelerating file transfers across networks. While the -j flag invokes bzip2 compression, -v enables verbose output showing processed files, and -f specifies the target archive filename. Mastering compression flags ensures that system administrators can perform reliable, space-optimized backups and distribute software packages effectively across diverse enterprise Linux server environments.

Question 85

Which command safely deletes a user account and its home directory on Linux?

  1. useradd
  2. userdel -r
  3. usermod -d
  4. groupdel

Correct Answer: 2

Explanation

The userdel command when combined with the -r flag safely deletes a specified user account from the system while simultaneously removing the user home directory and mail spool from the storage drives. This ensures that no orphaned personal files or sensitive data remain lingering on the filesystem after an employee or service account is decommissioned. While useradd provisions new user accounts, usermod modifies existing account attributes, and groupdel removes security groups. Proper execution of userdel -r is a critical administrative procedure for maintaining clean data hygiene and preventing unauthorized security access across multi-user enterprise servers.

Question 86

What is the function of the /proc virtual filesystem in Linux?

  1. Storing persistent user application configuration files
  2. Providing backup storage for compressed log archives
  3. Housing dynamic executable system binaries
  4. Exposing kernel and process status information as text files

Correct Answer: 4

Explanation

The /proc directory is a virtual pseudo-filesystem maintained entirely in system memory by the Linux kernel, serving as a dynamic control and information hub. It contains no physical files on disk, but instead exposes real-time kernel metrics, hardware parameters, and active process statistics as readable text files. Administrators and monitoring tools query files within /proc to inspect CPU performance, memory allocation, and system configuration parameters on the fly. While /etc stores persistent configurations and /var holds logs, /proc provides vital runtime visibility into the inner workings of the operating system without requiring specialized low-level diagnostic drivers or tools.

Question 87

Which command displays disk space usage statistics for individual files and directories recursively?

  1. du
  2. df
  3. free
  4. top

Correct Answer: 1

Explanation

The du command, which stands for disk usage, estimates and reports storage space consumption across directory hierarchies and individual files. By recursively scanning subfolders, du reveals precisely how much disk space specific projects or user directories occupy, making it an indispensable tool for identifying space hogs and cleaning up overcrowded partitions. While df reports overall filesystem capacity and available partition blocks, free tracks system RAM utilization, and top tracks active CPU processes. Utilizing du with human-readable formatting flags enables administrators to perform detailed storage audits and manage disk space quotas effectively across production Linux servers.

Question 88

Which command-line tool is used to monitor active system resource consumption and processes in real time?

  1. ps
  2. ls
  3. top
  4. df

Correct Answer: 3

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, resource allocation tuning, and troubleshooting Linux server bottlenecks under heavy workloads.

Question 89

Which signal is sent by the kill command to force an immediate, uncatchable termination of a process?

  1. SIGTERM (15)
  2. SIGKILL (9)
  3. SIGHUP (1)
  4. SIGSTOP (19)

Correct Answer: 2

Explanation

The SIGKILL signal, designated by option number nine, is sent via the kill command to force an immediate and absolute termination of a stubborn process. Unlike SIGTERM, which requests a graceful shutdown allowing applications to clean up resources, SIGKILL is processed directly by the Linux kernel and cannot be caught, blocked, or ignored by the target application. This makes it the ultimate tool for stopping frozen or unresponsive background daemons. However, because it bypasses clean-up routines, it should be used cautiously after standard termination attempts fail to prevent potential temporary file corruption or unsaved data loss across the system.

Question 90

Which command verifies the syntax of a shell script before executing it?

  1. bash -c
  2. sh -x
  3. bash -x
  4. bash -n

Correct Answer: 4

Explanation

The bash -n command option instructs the bash interpreter to read the script and check for syntax errors without actually executing any of the commands contained within the file. This dry-run validation step is crucial for preventing unexpected runtime errors or destructive bugs in production automation scripts. Conversely, bash -x runs the script in debug mode printing every expanded command line to the terminal, and bash -c executes a string of commands directly. Utilizing bash -n during development ensures code cleanliness and structural integrity before deploying scripts into operational service environments.

Question 91

Which command extracts specific columns or fields from each line of text based on a delimiter?

  1. cut
  2. sed
  3. awk
  4. tr

Correct Answer: 1

Explanation

The cut utility is a streamlined command-line tool designed to slice out specific sections or columns of text from each line of a file based on byte positions, character counts, or delimiter characters like colons or commas. It is frequently employed in shell scripts to parse structured plain-text files and configuration tables, such as extracting usernames from the /etc/passwd file. While sed specializes in stream editing, awk provides a full programming language for complex data extraction, and tr translates individual characters, cut offers a fast and simple solution for basic column extraction tasks across files.

Question 92

Which utility displays detailed information about PCI hardware devices connected to a Linux system?

  1. lsusb
  2. lsblk
  3. lspci
  4. lscpu

Correct Answer: 3

Explanation

The lspci command queries the kernel and displays detailed information about all PCI buses and connected peripheral devices—such as graphics cards, network interface controllers, USB host controllers, and storage adapters—installed on the system motherboard. This utility is invaluable for hardware inventory audits and troubleshooting driver compatibility issues. Similarly, lsusb lists connected USB devices, lsblk displays block storage devices and partition layouts, and lscpu reports CPU architecture specifications. Mastering these hardware diagnostic tools enables administrators to verify system configurations and diagnose hardware bottlenecks effectively across enterprise server environments and cloud infrastructure.

Question 93

Which file stores encrypted user account password hashes on modern Linux systems?

  1. /etc/passwd
  2. /etc/shadow
  3. /etc/group
  4. /etc/fstab

Correct Answer: 2

Explanation

The /etc/shadow file stores secure, encrypted user account password hashes along with password aging and expiration policy parameters on modern Linux systems. To protect sensitive authentication data from unauthorized inspection, this file is strictly restricted and readable only by the root administrative user. While /etc/passwd holds general user metadata, it no longer houses password hashes in contemporary distributions. Meanwhile, /etc/group manages security group definitions, and /etc/fstab configures static filesystem mount points. Securing /etc/shadow is a fundamental requirement for preventing offline brute-force attacks and maintaining robust system security across enterprise multi-user environments.

Question 94

What is the primary function of the df command in Linux?

  1. Calculating directory-specific disk space usage
  2. Monitoring real-time CPU performance metrics
  3. Displaying active network routing tables
  4. Reporting file system disk space utilization and available capacity

Correct Answer: 4

Explanation

The df command, which stands for disk free, reports the amount of disk space consumed and available across all currently mounted file systems within the Linux operating system. By default, it presents output in block counts, but administrators frequently append human-readable flags to display values in gigabytes or megabytes for easier analysis. While the du utility calculates directory-specific space consumption for files and subfolders, free displays system memory usage, and ls lists files. Utilizing df regularly is crucial for preventing unexpected disk exhaustion emergencies on production Linux servers and database nodes.

Question 95

Which command-line option is used with rpm to query and list all installed software packages?

  1. -qa
  2. -qi
  3. -ql
  4. -qf

Correct Answer: 1

Explanation

The rpm command combined with the -qa query flags lists every single software package currently installed across the RPM-based Linux operating system. This comprehensive inventory output is frequently piped into text search tools like grep to verify whether specific dependencies or security updates are present on the machine. In contrast, -qi displays detailed package metadata and descriptions, -ql lists every individual file installed by a package, and -qf identifies which package owns a specific file path. Mastering these query options is essential for conducting software audits and maintaining package compliance across enterprise environments.

Question 96

Which shell builtin command displays the history of previously executed commands?

  1. log
  2. trace
  3. history
  4. record

Correct Answer: 3

Explanation

The history command outputs the sequential list of commands previously executed within the current user shell session, allowing administrators to review past actions or re-execute complex commands efficiently. Shells store these historical entries in memory and typically write them to a hidden configuration file like .bash_history in the user home directory upon logout. Administrators can recall previous commands using exclamation point shortcuts or search through history interactively using key combinations. Utilizing the history utility saves time, reduces repetitive typing errors, and helps document troubleshooting steps during intricate system administration and configuration sessions.

Question 97

Which network command is used to test basic IP reachability to a remote host using ICMP echoes?

  1. ssh
  2. ping
  3. traceroute
  4. netstat

Correct Answer: 2

Explanation

The ping utility uses Internet Control Message Protocol echo requests to test network connectivity and measure round-trip latency between a local machine and a remote target host. It is the fundamental diagnostic tool for verifying whether network interfaces, routers, and remote servers are reachable across local subnets or wide-area networks. While ssh establishes secure remote shell sessions, traceroute maps the specific packet path hops across intermediate routers, and netstat inspects active socket connections. Knowing how to interpret ping responses is an indispensable initial skill for diagnosing network connectivity failures and communication bottlenecks.

Question 98

Which directory contains system-wide configuration files in the Linux filesystem hierarchy?

  1. /var
  2. /home
  3. /tmp
  4. /etc

Correct Answer: 4

Explanation

The /etc directory is the designated location within the Linux Filesystem Hierarchy Standard that holds all system-wide configuration files, startup scripts, and local administrative settings. Files stored here are typically plain text documents—such as /etc/passwd, /etc/fstab, and /etc/resolv.conf—that administrators modify to tune system behavior, manage user accounts, and configure network parameters. In contrast, /var stores variable data like logs, /home houses user personal files, and /tmp stores ephemeral temporary files. Proper understanding and protection of /etc are critical for maintaining system integrity, enforcing security policies, and managing enterprise Linux infrastructure effectively.

Question 99

Which command changes the primary group ownership of a file or directory?

  1. chgrp
  2. chmod
  3. chown
  4. umask

Correct Answer: 1

Explanation

The chgrp command, which stands for change group, is utilized to alter the owning group association of a specified file or directory in Linux without modifying the user owner. This allows administrators to adjust collaborative access permissions efficiently across shared team environments. While chmod modifies access permission bits like read, write, and execute, chown updates both user and group ownership simultaneously, and chgrp specifically targets group parameters. Proper utilization of chgrp ensures adherence to the principle of least privilege, safeguarding sensitive organizational data and maintaining robust security controls across multi-user enterprise servers.

Question 100

What is the primary function of the udev daemon in modern Linux distributions?

  1. Scheduling cron jobs and automated tasks
  2. Managing DNS resolution and network domain mapping
  3. Dynamically managing device nodes in the /dev directory
  4. Compiling source code packages into executable binaries

Correct Answer: 3

Explanation

The udev daemon is the device manager for the Linux 2.6 kernel series and modern distributions, responsible for dynamically managing device nodes in the /dev directory as hardware devices are added or removed. Whenever a peripheral like a USB drive or graphics card is plugged in, udev inspects kernel events, loads appropriate driver modules, and creates corresponding device file entries dynamically. This eliminates the need for static device node allocations. While cron manages time-based jobs and DNS handles domain resolution, udev ensures seamless, plug-and-play hardware integration and consistent device naming across the operating system environment.