LPI 010-160 Practice Test Questions and Exam Dumps Part 10 Q181-200

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

 

Question 181

Which command displays the kernel version and system architecture details?

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

Correct Answer: 1

Explanation

The uname command is a standard utility used in Linux to print system information, including the specific kernel release, machine architecture type, processor version, and operating system name. By appending specific option flags, administrators can inspect detailed build parameters and hardware platforms instantly. While free tracks RAM utilization, uptime reports active system run duration and load averages, and df inspects storage partition capacities. Mastering the uname utility is an essential diagnostic habit for system administrators verifying kernel compatibility, checking operating system environments, and ensuring proper software deployment across diverse enterprise Linux server infrastructures and cloud deployment pipelines.

Question 182

Which directory contains device nodes and hardware interface files in Linux?

  1. /etc
  2. /dev
  3. /var
  4. /proc

Correct Answer: 2

Explanation

The /dev directory houses critical device nodes and special interface files that represent physical and virtual hardware components, enabling user-space applications to interact smoothly with storage drives, terminals, and peripherals. These entries are managed dynamically by the kernel and udev daemons. In contrast, /etc stores static system configuration files, /var holds variable log data, and /proc exposes kernel runtime metrics. Understanding the role of the /dev directory is fundamental for system administrators troubleshooting hardware recognition issues, managing peripheral connections, and configuring storage devices safely across production Linux server environments and enterprise infrastructure systems.

Question 183

Which command-line option tells tar to create a new archive file?

  1. -x
  2. -t
  3. -c
  4. -v

Correct Answer: 3

Explanation

The -c option flag instructs the tar utility to create a brand new archive file from a specified list of source files and directories, bundling them into a single uncompressed package stream. It is the primary operation used when initiating backup procedures or packaging software source code distributions. Conversely, -x extracts archive contents, -t lists files without unpacking them, and -v enables verbose output tracking. Mastering archive creation commands ensures that system administrators can bundle project files securely, manage data migrations efficiently, and maintain robust backup routines across diverse production Linux server and cloud storage repositories.

Question 184

Which network utility displays active socket connections and listening ports?

  1. ping
  2. traceroute
  3. route
  4. ss

Correct Answer: 4

Explanation

The ss utility stands for socket statistics and is the modern, high-performance command-line tool used to examine network socket connections, listening ports, and routing tables on Linux systems significantly faster than legacy tools by querying kernel space directly. It is invaluable for diagnosing high-traffic server environments. While ping tests basic ICMP network reachability, traceroute maps intermediate network hops, and route modifies routing tables. Mastering the ss command ensures that system administrators can inspect active TCP and UDP sockets, troubleshoot network service failures, and maintain secure operational communications across enterprise Linux server infrastructures.

Question 185

Which shell operator appends standard output to the end of a file without overwriting it?

  1. <
  2. 2>

Correct Answer: 1

Explanation

The double greater-than redirection operator appends the standard output generated by a command directly to the end of a specified destination file without destroying any existing prior contents, preserving historical data records. If the target file does not exist, the shell creates it automatically. In contrast, the single greater-than operator overwrites existing file contents completely, the less-than symbol manages standard input redirection, and 2> handles error streams separately. Mastering output redirection and appending operators is essential for logging script results, capturing diagnostic output, and automating administrative reporting tasks across Linux systems.

Question 186

Which command displays the absolute pathname of the current working directory?

  1. ls
  2. pwd
  3. cd
  4. 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 hierarchical filesystem. 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 during administrative tasks.

Question 187

Which package manager is used on Arch Linux distributions?

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

Correct Answer: 3

Explanation

The pacman package manager is the primary command-line tool utilized in Arch Linux distributions to handle software installations, updates, dependency resolutions, and package removals efficiently through rolling release repositories. It provides a fast and streamlined approach to software inventory management. While apt serves Debian-based systems, dnf powers Red Hat platforms, and zypper manages openSUSE environments, pacman remains the definitive administrative tool for Arch Linux administrators. Mastering pacman ensures reliable software maintenance, secure package updates, and smooth system customization across Arch-based workstation installations and rolling release server infrastructure deployments.

Question 188

Which file contains system-wide environment variables and path settings for all users?

  1. ~/.bashrc
  2. ~/.profile
  3. /etc/passwd
  4. /etc/environment

Correct Answer: 4

Explanation

The /etc/environment file is a system-wide configuration file used on Linux systems to define global environment variables and default path settings that apply universally to all user login sessions, independent of individual shell preferences. In contrast, user-specific files like .bashrc and .profile govern individual shell behavior inside home directories, while /etc/passwd stores user account metadata. Proper configuration of system-wide environment files ensures that runtime variables, application paths, and execution environments remain consistent and correctly initialized for every user across production enterprise Linux server and multi-user desktop systems.

Question 189

Which command displays the first few lines of a text file?

  1. head
  2. tail
  3. cat
  4. less

Correct Answer: 1

Explanation

The head utility displays the initial lines of a text file or input stream, making it an indispensable tool for inspecting the beginning structure of configuration files or log documents quickly without opening the entire file. By default, it outputs the first ten lines, but administrators can customize line counts using numeric options. Conversely, tail displays final lines, cat outputs the entire file content at once, and less provides a scrollable text viewing interface. Mastering the head command enables system administrators to review file headers, check log formats, and inspect text data efficiently across Linux servers.

Question 190

Which tool is used to manage logical volumes (LVM) in Linux?

  1. fdisk
  2. lvcreate
  3. parted
  4. mkfs

Correct Answer: 2

Explanation

The lvcreate command is a core component of the Logical Volume Manager suite, specifically used to create new logical volumes from allocated volume group storage pools, enabling flexible and dynamic disk space management in Linux. Unlike traditional static partitions, LVM allows administrators to resize storage volumes online without downtime. While fdisk and parted manage raw disk partition tables, mkfs formats new filesystems. Mastering LVM utilities like lvcreate is an essential storage administration skill for provisioning enterprise storage volumes, managing server disk allocation efficiently, and maintaining scalable storage infrastructures across production Linux environments.

Question 191

Which command tests network reachability using ICMP packets?

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

Correct Answer: 3

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 across local subnets or wide-area networks. It is the fundamental diagnostic tool for verifying whether network interfaces, routers, and remote servers are reachable. While ssh establishes secure remote shell sessions, netstat inspects network connections, and scp transfers files securely. Knowing how to interpret ping responses is an indispensable initial skill for diagnosing network connectivity failures, checking routing paths, and troubleshooting communication bottlenecks across enterprise infrastructure environments.

Question 192

Which directory contains log files and variable data on modern Linux distributions?

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

Correct Answer: 4

Explanation

The /var directory stands for variable and is the designated location in the Linux Filesystem Hierarchy Standard where system components store data that continuously changes during normal operation, including critical system log files, print queues, mail spools, and active database tables. In contrast, /etc houses static system configuration files, /home contains personal user directories, and /tmp stores temporary files. Proper monitoring and disk space allocation for /var are vital administrative responsibilities to prevent log overflow conditions from crashing production servers and critical business applications across enterprise infrastructure deployments.

Question 193

Which command-line option is used with rpm to query package metadata and descriptions?

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

Correct Answer: 1

Explanation

The rpm command combined with the -qi query flags displays detailed package metadata, version numbers, build dates, and descriptive summaries for an installed software package on Red Hat-based distributions. This allows administrators to inspect package properties without consulting remote repositories. In contrast, -qa lists every installed package, -ql lists individual files installed by a package, and -qf identifies which package owns a specific file path. Mastering these query options is essential for conducting software audits, verifying dependency versions, and maintaining package compliance across enterprise Linux server environments.

Question 194

Which configuration file defines static mount points for disks and partitions?

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

Correct Answer: 2

Explanation

The /etc/fstab file is a static system configuration file that defines how storage devices, partitions, and remote network filesystems should be mounted within the directory tree during system boot. It specifies mount options, filesystem types, and dump parameters. In contrast, /etc/passwd stores user account metadata, /etc/group manages security group definitions, and /etc/hosts handles static hostname resolution. Proper understanding and editing of /etc/fstab are critical for ensuring reliable storage initialization, persistent mount configurations, and successful automated system boot sequences across production Linux servers and enterprise infrastructure deployments.

Question 195

Which command displays disk usage statistics for files and folders?

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

Correct Answer: 3

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, revealing precisely how much disk space specific projects occupy. It is indispensable for identifying space hogs. 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 and enterprise file systems.

Question 196

Which signal stops a process gracefully allowing it to save state?

  1. SIGKILL
  2. SIGHUP
  3. SIGSTOP
  4. SIGTERM

Correct Answer: 4

Explanation

The SIGTERM signal requests a graceful shutdown of a running process, giving the application sufficient time to save unsaved data, release allocated system resources, and exit cleanly before termination. It is the default signal sent by the kill command. In contrast, SIGKILL forces an immediate uncatchable kernel termination without cleanup routines, SIGHUP reloads configuration files, and SIGSTOP pauses process execution. Knowing how to utilize SIGTERM appropriately ensures that system administrators can stop background daemons effectively while preventing unexpected data loss, file corruption, or system instability across production Linux server environments.

Question 197

Which command-line utility prints lines matching a pattern?

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

Correct Answer: 1

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 sed handles stream text editing, awk specializes in data extraction and reporting, and cut extracts specific columns. Mastering grep remains the definitive tool for lightning-fast pattern searching across files, making it essential for daily Linux systems administration, security audits, and troubleshooting tasks across enterprise server environments.

Question 198

Which command changes user account attributes such as the default shell?

  1. useradd
  2. usermod
  3. userdel
  4. groupadd

Correct Answer: 2

Explanation

The usermod command is utilized by system administrators to modify existing user account attributes on Linux systems, such as changing default login shells, home directory paths, UID numbers, or group memberships, updating system files accordingly. While useradd provisions new user accounts, userdel removes accounts safely, and groupadd creates security groups. Proper execution of usermod is a vital administrative duty for maintaining secure multi-user environments, managing user permissions, and adapting account configurations to meet evolving organizational security requirements across production enterprise Linux server infrastructures and cloud deployments.

Question 199

Which command extracts archives compressed with gzip?

  1. bunzip2
  2. unxz
  3. gunzip
  4. tar

Correct Answer: 3

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 and removing the .gz extension automatically. 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, ensuring quick access to compressed administrative documentation and deployment packages.

Question 200

Which systemctl command starts a stopped service daemon?

  1. stop
  2. restart
  3. status
  4. start

Correct Answer: 4

Explanation

The systemctl start command instructs the systemd manager to initiate and run a specified service daemon immediately, loading required configuration files into active memory. It is a fundamental command used during system administration and application deployment. In contrast, systemctl stop terminates active service execution, systemctl restart reloads applications, and systemctl status checks operational health. Mastering systemctl commands ensures reliable daemon lifecycle management, high availability, and rapid service recovery across enterprise Linux server infrastructures and cloud deployment environments under varying production workloads.