LPI 010-160 Practice Test Questions and Exam Dumps Part 12 Q221-240

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

 

Question 221

Which command sets the file permissions to read, write, and execute for the owner, and read and execute for group and others?

  1. chmod 644 filename
  2. chmod 755 filename
  3. chmod 700 filename
  4. chmod 777 filename

Correct Answer: 2

Explanation

The chmod command combined with the octal permission mode 755 grants the file owner complete read, write, and execute permissions while assigning read and execute privileges to both the owning group and all other external users. This represents the standard secure permission configuration for executable shell scripts, application binaries, and public directory structures. In contrast, 644 is standard for regular read-only text files, 700 restricts all access strictly to the owner, and 777 provides universal open access to everyone on the system. Mastering octal permission settings is essential for enforcing robust security boundaries, preventing unauthorized file tampering, and maintaining compliance across enterprise multi-user Linux server environments.

Question 222

Which package manager is the primary default utility for managing software on modern Red Hat Enterprise Linux distributions?

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

Correct Answer: 4

Explanation

The dnf package manager serves as the primary modern command-line tool utilized on Red Hat Enterprise Linux, Fedora, and CentOS distributions to install, update, remove, and manage software packages along with their complex dependency chains automatically. It acts as the modern successor to yum, offering improved performance and modularity. While apt and dpkg handle software on Debian-based systems, and pacman manages Arch Linux repositories, dnf remains the definitive tool for Red Hat administrators. Mastering dnf ensures reliable software maintenance, secure security patching, and smooth package lifecycle management across enterprise Linux server infrastructures and cloud deployments.

Question 223

Which shell redirection operator is specifically used to redirect standard error streams away from the terminal?

  1. 2>
  2. <

Correct Answer: 1

Explanation

The 2> redirection operator targets the standard error file descriptor, allowing system administrators to capture or redirect error messages, diagnostic warnings, and failure outputs generated by commands away from the default terminal display into designated files or null streams. This separates error output from standard program data. In contrast, the single greater-than sign handles standard output redirection, the less-than symbol manages standard input, and the double greater-than operator appends standard output. Mastering error stream redirection is vital for writing clean, professional automation scripts, managing cron job logs, and debugging runtime execution errors effectively across Linux systems.

Question 224

Which system file securely stores encrypted user account password hashes on modern Linux distributions?

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

Correct Answer: 3

Explanation

The /etc/shadow file is a critical system configuration file that stores secure, encrypted password hashes and account expiration aging parameters for every user on the system. Because it contains sensitive authentication data, it is strictly restricted and readable only by the privileged root user. In contrast, /etc/passwd holds public user account metadata, /etc/group manages security group definitions, and /etc/fstab handles disk mount points. Proper protection and backup of the /etc/shadow file are vital administrative responsibilities for maintaining system security, preventing unauthorized password cracking attempts, and safeguarding enterprise Linux server environments against malicious security breaches.

Question 225

Which command-line compression utility utilizes the Burrows-Wheeler block sorting algorithm for data archiving?

  1. gzip
  2. bzip2
  3. xz
  4. tar

Correct Answer: 2

Explanation

The bzip2 utility is a powerful file compression program that implements the Burrows-Wheeler block sorting text compression algorithm and Huffman coding to achieve higher compression ratios than traditional gzip archives, though it requires slightly more processing time. It replaces original files with .bz2 compressed archives. While gzip offers faster compression speeds and xz delivers maximum lzma compression ratios, bzip2 provides an effective middle ground. Knowing how to utilize bzip2 is valuable for system administrators handling software source code tarballs, configuration backups, and compressed documentation across diverse enterprise Linux server infrastructure environments.

Question 226

Which process termination signal forces the Linux kernel to kill a process immediately without cleanup routines?

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

Correct Answer: 4

Explanation

The SIGKILL signal, designated by signal number nine, instructs the Linux kernel to terminate a target process immediately at the hardware and kernel level. This signal cannot be caught, blocked, or ignored by the application, making it the ultimate tool for stopping unresponsive or hanging processes. In contrast, SIGTERM requests a graceful shutdown, SIGHUP commands daemons to reload configurations, and SIGSTOP pauses execution temporarily. Mastering process signals ensures that system administrators can manage rogue tasks, recover consumed system resources, and maintain optimal performance across production enterprise Linux server environments.

Question 227

Which directory in the Linux Filesystem Hierarchy Standard contains read-only user binaries, libraries, and shared application assets?

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

Correct Answer: 1

Explanation

The /usr directory stands for user system resources and is one of the largest and most important directories in the Linux Filesystem Hierarchy Standard, housing read-only user binaries, system libraries, documentation, and shared application data accessible across the operating system. In contrast, /var holds variable runtime data like logs, /etc stores static configuration files, and /tmp contains temporary scratch files. Proper understanding of the /usr directory structure is essential for system administrators auditing software installations, managing disk storage partitions, and troubleshooting application library dependencies across enterprise Linux server and desktop environments.

Question 228

How is a shell variable correctly assigned a text string value in a bash script without triggering command execution?

  1. variable = “value”
  2. set variable “value”
  3. variable=”value”
  4. export variable = value

Correct Answer: 3

Explanation

In bash shell scripting, variables are assigned values by placing the variable name directly adjacent to the equals sign, followed immediately by the assigned string without any intervening whitespace, such as variable=”value”. Including spaces around the equals sign causes the shell to misinterpret the variable name as an independent command. While export makes variables available to child processes, incorrect spacing is a common syntax error for beginners. Mastering proper variable assignment syntax is fundamental for writing reliable automation scripts, managing runtime parameters, and developing robust administrative tools across Linux systems.

Question 229

Which network diagnostic utility records and displays the complete sequence of router hops packets traverse to reach a target?

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

Correct Answer: 2

Explanation

The traceroute utility is a powerful network diagnostic tool that maps the exact routing path and measures transit delays of packets traveling across an IP network from the local host to a designated remote destination target by incrementing Time-to-Live values. While ping tests basic ICMP end-to-end reachability, ss inspects active socket connections, and dig queries DNS servers. Mastering traceroute enables system administrators to pinpoint network routing loops, identify faulty gateway hops, diagnose latency bottlenecks, and troubleshoot complex wide-area network communication failures across enterprise infrastructure and cloud server environments.

Question 230

Which systemctl subcommand is used to inspect the current running state and recent log output of a service daemon?

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

Correct Answer: 4

Explanation

The systemctl status command provides a comprehensive operational report for a specified service daemon, displaying whether the service is actively running, its process identifier, enabled boot status, and recent log excerpts from the systemd journal. It is the primary diagnostic check for service health. In contrast, start initiates daemons, stop terminates them, and restart reloads application configurations. Mastering systemctl status commands allows system administrators to verify service availability, troubleshoot startup failures, and monitor daemon health efficiently across production enterprise Linux servers.

Question 231

Which command-line option tells the tar utility to extract files from an existing archive package?

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

Correct Answer: 1

Explanation

The -x option flag instructs the tar utility to extract and unpack files and directory hierarchies from an existing archive file into the current working directory, restoring the original data structure. It is the fundamental command used when deploying software packages or restoring backups. Conversely, -c creates new archives, -t lists archive contents without extracting them, and -v enables verbose tracking output. Mastering archive extraction options ensures that system administrators can unpack software distributions correctly, recover backup files swiftly, and manage file deployments across production Linux server environments.

Question 232

Which command-line utility is specifically specialized for stream text editing and non-interactive find-and-replace operations?

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

Correct Answer: 3

Explanation

The sed utility, which stands for stream editor, is a powerful command-line tool used to perform non-interactive text transformations, filtering, insertions, and find-and-replace string operations on text streams or files efficiently. It processes text line by line using concise editing commands. While grep specializes in pattern searching, awk provides advanced columnar reporting, and cut extracts specific character fields. Mastering sed enables system administrators to automate configuration file updates, clean up log data, and execute bulk text replacements across multiple files within enterprise Linux administrative scripting environments.

Question 233

Which partition table management utility provides an interactive text-user interface for partitioning master boot record disks?

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

Correct Answer: 2

Explanation

The fdisk utility is a classic command-line tool that provides an interactive text-user interface allowing administrators to create, delete, resize, and inspect partition tables on hard drives and storage devices, supporting both MBR and GPT formats. It is a foundational storage management tool. In contrast, parted supports advanced scripting for partition manipulation, mkfs formats new filesystems, and lsblk displays block storage hierarchies. Mastering fdisk is an essential skill for system administrators preparing raw storage disks, configuring dual-boot environments, and managing partition layouts safely across Linux servers.

Question 234

Which file located in a user home directory contains shell configuration commands executed upon opening an interactive session?

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

Correct Answer: 4

Explanation

The ~/.bashrc file is a user-specific shell configuration script located inside each individual home directory that executes automatically whenever a new interactive non-login bash shell session is launched, defining custom aliases, functions, and local environment variables. In contrast, system-wide settings are governed by files in /etc. Mastering user configuration files enables developers and system administrators to personalize their command-line workspace, streamline daily workflows, and maintain custom automation preferences securely across multi-user enterprise Linux server and desktop operating system environments.

Question 235

What is a major limitation of hard links compared to symbolic links in a Linux filesystem?

  1. Hard links cannot span across different disk partitions or filesystems.
  2. Hard links cannot point to directories or special device nodes.
  3. Deleting the original source file immediately deletes hard link data.
  4. Hard links require special administrative root privileges to create.

Correct Answer: 1

Explanation

Hard links point directly to the physical inode of a target file on the same storage volume, which creates the fundamental technical limitation that hard links cannot span across separate disk partitions or distinct filesystems. In contrast, symbolic links act as pointer shortcuts and can span any filesystem boundary. While both link types have specific use cases, understanding inode limitations prevents administrative errors when organizing file storage, planning backup strategies, and managing disk space distribution across complex enterprise Linux server environments.

Question 236

What does the fifth field (day of the week) represent in a standard cron schedule expression?

  1. The month of the year from 1 to 12
  2. The specific hour of the day from 0 to 23
  3. The day of the week from 0 (Sunday) to 6 (Saturday)
  4. The minute of the hour from 0 to 59

Correct Answer: 3

Explanation

In a standard five-field cron schedule expression, the fifth field represents the day of the week, allowing administrators to schedule recurring automated tasks on specific days ranging from zero or seven representing Sunday through six representing Saturday. The preceding fields handle minutes, hours, day of the month, and month respectively. Mastering cron syntax is essential for system administrators scheduling automated maintenance tasks, regular data backups, log rotations, and system updates to run during designated off-peak hours across production enterprise Linux server environments.

Question 237

Which command-line utility dynamically loads or unloads kernel modules into the running Linux kernel?

  1. lsmod
  2. modprobe
  3. uname
  4. dmesg

Correct Answer: 2

Explanation

The modprobe command is a sophisticated utility used by administrators to intelligently add or remove kernel modules—such as device drivers and filesystem handlers—from the running Linux kernel, resolving and loading any required dependency modules automatically. While lsmod lists currently loaded kernel modules, uname reports kernel versions, and dmesg outputs kernel ring buffer boot messages. Mastering modprobe is an essential administrative skill for enabling new hardware support, configuring network interface cards, and troubleshooting driver loading failures without requiring system reboots across enterprise Linux servers.

Question 238

Which configuration file defines global server-side daemon settings for the OpenSSH secure shell service?

  1. ~/.ssh/config
  2. ~/.ssh/authorized_keys
  3. /etc/ssh/ssh_config
  4. /etc/ssh/sshd_config

Correct Answer: 4

Explanation

The /etc/ssh/sshd_config file is the primary server-side configuration file that governs global operational parameters for the OpenSSH daemon, allowing administrators to enforce security policies such as disabling root password logins, changing default listening ports, and restricting user access. In contrast, ssh_config controls client behavior. Proper hardening of sshd_config is a vital security requirement for protecting remote access channels, preventing brute-force intrusion attacks, and maintaining strict compliance standards across enterprise Linux server infrastructures and cloud deployments.

Question 239

Which shell expansion symbol recalls and executes the most recently run command starting with a specific string?

  1. !string
  2. $string
  3. #string
  4. ?string

Correct Answer: 1

Explanation

The exclamation point combined with a specific string (!string) serves as a powerful history expansion operator in the bash shell, instantly recalling and executing the most recent command from history that begins with those characters, saving considerable typing effort. While $ references variables, # initiates comments. Mastering history expansion shortcuts allows system administrators to repeat complex administrative commands quickly, correct syntax errors efficiently, and accelerate command-line productivity across daily Linux server management workflows and troubleshooting sessions.

Question 240

Which organization is widely recognized for defining the official formal definition and certification standards for Open Source software?

  1. Free Software Foundation
  2. Linux Foundation
  3. Open Source Initiative
  4. GNU Project

Correct Answer: 3

Explanation

The Open Source Initiative is a globally recognized non-profit organization dedicated to promoting and protecting open-source software, famously maintaining the official Open Source Definition that establishes criteria for software licenses. While the Free Software Foundation focuses on ethical software freedoms, the Open Source Initiative provides practical licensing guidelines. Understanding open-source licensing principles and organizational governance is essential for legal compliance, corporate software procurement, and intellectual property management across modern enterprise software engineering and IT administration projects.