View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 341
Which command sets or displays the default file creation permission mask for newly created files and directories?
- chmod
- umask
- chown
- ulimit
Correct Answer: 2
Explanation
The umask command is a built-in shell utility used to set or display the file mode creation mask, which determines the permission bits that are automatically stripped away from the default permissions when a new file or directory is created. While chmod modifies existing file permission bits, chown alters ownership credentials, and ulimit restricts system resource consumption. Understanding how umask calculates final permission octal values by subtracting mask bits from standard default settings is an essential administrative skill for maintaining strict security boundaries, preventing unintended public access to sensitive files, and enforcing robust access control compliance across enterprise Linux server environments and multi-user operating system deployments under standard operational procedures.
Question 342
Which systemd command-line utility queries and displays logs managed by the systemd journal?
- tail
- syslog
- logger
- journalctl
Correct Answer: 4
Explanation
The journalctl command is the primary administrative utility used to query, filter, and display log files collected and managed by the systemd journal daemon across modern Linux distributions. In contrast to traditional plain-text log files, the journal stores structured binary logs that can be queried seamlessly by priority, service unit, time window, or boot identifier. While tail inspects raw text logs, syslog manages legacy daemon logging, and logger generates custom log entries. Mastering journalctl is an indispensable diagnostic skill for system administrators troubleshooting service startup failures, analyzing kernel events, tracking security anomalies, and maintaining system operational health across enterprise Linux servers and cloud infrastructure deployments efficiently.
Question 343
Which apt package manager subcommand searches available software repositories for package names matching a keyword?
- apt search
- apt install
- apt update
- apt remove
Correct Answer: 1
Explanation
The apt search command is a primary package management utility used on Debian-based Linux distributions to query remote and local package repositories, scanning metadata descriptions for keywords to help administrators locate and identify software packages. While apt install downloads and installs packages, apt update refreshes local repository index lists, and apt remove uninstalls unwanted applications. Mastering apt search commands is an essential administrative skill for discovering software utilities, verifying available package versions, planning application deployments, and managing software inventories efficiently across enterprise Linux server environments and cloud instances under daily operational maintenance schedules.
Question 344
Which LVM command-line utility increases the storage capacity of an existing logical volume?
- pvcreate
- vgcreate
- lvextend
- mkfs
Correct Answer: 3
Explanation
The lvextend command is a core component of the Logical Volume Manager suite, specifically used to increase the storage capacity of an active logical volume by allocating additional extents from its parent volume group pool. While pvcreate initializes raw storage disks, vgcreate builds storage pools, and mkfs formats filesystems. Mastering LVM extension commands is an essential storage administration skill for preventing partition exhaustion emergencies, handling dynamic capacity growth, and scaling enterprise storage volumes seamlessly across production Linux server environments without requiring system downtime or physical hardware repartitioning during peak operational workloads.
Question 345
Which time field in a standard cron schedule expression represents the day of the month?
- First field
- Third field
- Fourth field
- Fifth field
Correct Answer: 2
Explanation
In a standard five-field cron schedule expression, the fields represent minute, hour, day of the month, month, and day of the week respectively, meaning the third field specifies the day of the month ranging from one to thirty-one. The first field governs minutes, the fourth governs months, and the fifth governs days of the week. Understanding exact cron field positioning is vital for system administrators scheduling automated maintenance tasks, regular data backups, log rotations, and system updates to run precisely at designated calendar intervals without misconfiguring temporal schedules or causing unexpected script executions across production enterprise Linux server environments.
Question 346
Which command-line utility extracts and unpacks .zip archive files in Linux?
- tar
- gzip
- bzip2
- unzip
Correct Answer: 4
Explanation
The unzip utility is a standard command-line tool used in Linux to inspect, extract, and test compressed archive files formatted in the popular .zip compression format, restoring directory hierarchies and files to the filesystem. While tar handles tape archives and gzip manages single-file compression, unzip is specifically dedicated to zip containers. Mastering the unzip command is an essential administrative skill for exchanging software packages with cross-platform operating systems, deploying web applications, unpacking downloaded source code repositories, and managing compressed documentation files efficiently across enterprise Linux server environments and local developer workstations during daily administrative tasks.
Question 347
Which system configuration file defines the IP addresses of remote DNS name servers queried by the operating system?
- /etc/resolv.conf
- /etc/hosts
- /etc/fstab
- /etc/nsswitch.conf
Correct Answer: 1
Explanation
The /etc/resolv.conf file is a core system configuration file that specifies the IP addresses of remote Domain Name System servers utilized by the operating system resolver library to translate hostnames into IP addresses. In contrast, /etc/hosts handles static local mappings, /etc/fstab manages disk mounts, and /etc/nsswitch.conf controls name service switch lookup order. Proper configuration and verification of /etc/resolv.conf are vital for ensuring reliable internet connectivity, resolving domain names correctly, and troubleshooting network communication failures across enterprise Linux server infrastructures and cloud deployment environments under standard operational networking rules.
Question 348
What is the lowest possible niceness priority value a standard user can assign to a running process in Linux?
- -20
- 0
- -20 for root only, while standard users can only increase niceness
- 19
Correct Answer: 3
Explanation
In Linux process scheduling, niceness values range from minus twenty for the highest execution priority to plus nineteen for the lowest priority, but standard unprivileged users are restricted to increasing niceness values only, while lowering niceness requires root privileges. While negative niceness numbers boost priority, positive numbers reduce CPU resource contention. Understanding process niceness boundaries is essential for system administrators managing server workload performance, preventing resource starvation, and optimizing system responsiveness across production enterprise Linux server environments under heavy multi-user workloads without crashing critical system daemons.
Question 349
Which usermod command option flag is used to modify the default login shell assigned to a user account?
- -u
- -s
- -g
- -d
Correct Answer: 2
Explanation
The usermod command combined with the -s option flag allows system administrators to modify the default interactive login shell path assigned to an existing user account, updating system authentication files accordingly. Conversely, -u changes user identification numbers, -g alters primary groups, and -d updates home directory paths. Mastering user account modification options is a vital administrative skill for enforcing security standards, provisioning developer environments, updating access controls, and maintaining consistent user management across multi-user enterprise Linux server environments and production operating system deployments during routine user maintenance operations.
Question 350
Which conditional operator is used within bash test brackets to check whether two string values are strictly equal?
- -eq
- ==
- =
- Both 2 and 3
Correct Answer: 4
Explanation
In bash shell scripting, both the double equals sign and the single equals sign operators are valid and widely accepted within double bracket conditional test expressions to evaluate whether two literal string values are strictly identical. While -eq is reserved exclusively for comparing numeric integers, string comparisons utilize equality operators. Understanding proper string comparison syntax is essential for writing robust automation scripts capable of validating user inputs, parsing configuration files, and handling conditional branching safely across complex production Linux administrative environments and deployment automation workflows.
Question 351
Which system configuration file controls daemon settings, listening ports, and authentication parameters for the OpenSSH server?
- /etc/ssh/sshd_config
- /etc/ssh/ssh_config
- ~/.ssh/config
- /etc/passwd
Correct Answer: 1
Explanation
The /etc/ssh/sshd_config file is the master server-side configuration file that governs daemon behavior, listening network ports, root login permissions, cryptographic key options, and authentication security policies for the OpenSSH server. In contrast, ssh_config manages client defaults, ~/.ssh/config handles user-specific client settings, and /etc/passwd stores user metadata. Proper hardening and editing of /etc/sshd_config are vital administrative responsibilities for securing remote access channels, preventing unauthorized brute-force login attempts, and maintaining strict compliance standards across enterprise Linux server infrastructures and cloud environments.
Question 352
Which command-line utility is used to check and repair filesystem inconsistencies on Linux storage partitions?
- mkfs
- mount
- fsck
- df
Correct Answer: 3
Explanation
The fsck command stands for filesystem check and is the primary utility used by system administrators to inspect Linux filesystems for structural corruption, repair damaged allocation tables, and recover orphaned files during system maintenance or boot recovery procedures. While mkfs formats new filesystems, mount attaches volumes, and df reports storage capacity. Mastering fsck is a critical disaster recovery skill for restoring corrupted disk partitions, safeguarding valuable enterprise data, and ensuring filesystem integrity across production Linux server environments following unexpected power failures or hardware crashes.
Question 353
Which command-line utility counts the total number of lines, words, and bytes contained within a text file?
- grep
- wc
- cut
- sed
Correct Answer: 2
Explanation
The wc command stands for word count and is a versatile text processing utility used in Linux to calculate and display the total count of newlines, words, and byte characters present in specified text files or input streams. While grep searches for pattern matches, cut extracts column fields, and sed handles stream text editing. Mastering the wc command enables system administrators to parse log outputs, audit text file sizes, count active user sessions in piped pipelines, and build efficient automation scripts across Linux administrative environments without relying on external graphical counting tools.
Question 354
Which system-wide configuration file defines global environment variables and execution paths for all users upon login?
- ~/.bashrc
- ~/.profile
- /etc/environment
- /etc/profile
Correct Answer: 4
Explanation
The /etc/profile file is a core system-wide shell configuration script executed automatically for all users upon login, defining global environment variables, default search paths, and system initialization parameters. In contrast, /etc/environment handles basic variable assignments without shell scripting, while ~/.bashrc and ~/.profile manage user-specific workspace configurations inside individual home directories. Proper management of /etc/profile is vital for ensuring consistent development paths, enforcing system-wide environment policies, and standardizing shell environments across multi-user enterprise Linux server infrastructures.
Question 355
Which command-line utility loads a kernel module along with any required prerequisite dependency modules?
- modprobe
- insmod
- rmmod
- lsmod
Correct Answer: 1
Explanation
The modprobe command is a high-level system utility used to add or remove drivers and modules from the running Linux kernel, intelligently parsing module dependency trees to load any required prerequisite extensions automatically. While insmod inserts raw module files without checking dependencies, rmmod removes modules, and lsmod lists loaded extensions. Mastering modprobe is an essential administrative skill for resolving hardware driver conflicts, enabling network interface cards, and managing kernel runtime configurations safely across enterprise Linux server environments without encountering missing dependency errors.
Question 356
Which administrative command creates a new security group definition on Linux systems?
- useradd
- usermod
- groupadd
- groupdel
Correct Answer: 3
Explanation
The groupadd command is a standard system administration utility used to create new security groups on Linux systems, generating corresponding entries inside system configuration files such as /etc/group and /etc/gshadow. While useradd provisions new user accounts, usermod modifies user attributes, and groupdel removes security groups. Mastering groupadd is a foundational administrative responsibility for organizing user permissions, establishing collaborative access control boundaries, and enforcing security policies across multi-user enterprise Linux server environments and shared organizational storage directories.
Question 357
Which command-line utility estimates and reports disk space usage consumed by specific files and directory hierarchies?
- df
- du
- free
- lsblk
Correct Answer: 2
Explanation
The du command stands for disk usage and is a specialized utility used in Linux to estimate and display the cumulative disk space storage consumed by individual files and nested directory hierarchies, helping administrators pinpoint storage bottlenecks. While df reports overall filesystem capacity, free tracks active memory utilization, and lsblk lists block storage devices. Mastering the du command is an essential storage administration skill for auditing user home directories, cleaning up bloated log folders, and planning capacity expansions safely across production enterprise Linux server environments and cloud storage volumes.
Question 358
Which systemctl subcommand displays the current default system startup target state?
- list-units
- status
- is-active
- get-default
Correct Answer: 4
Explanation
The systemctl get-default command queries the systemd manager to display the current default startup target state—such as multi-user dot target or graphical dot target—which determines the operational mode initialized during system boot. While list-units displays active service units, status checks operational health, and is-active tests running states. Mastering systemctl target commands is an essential administrative skill for configuring headless server modes, managing system initialization behaviors, and troubleshooting boot configuration problems across enterprise Linux server infrastructures and cloud deployments.
Question 359
Which modern iproute2 command-line utility displays and modifies network interface hardware states and link parameters?
- ip link
- ip route
- ip addr
- netstat
Correct Answer: 1
Explanation
The ip link command is a core component of the modern iproute2 suite used to display and modify network interface hardware states, such as bringing interfaces up or down, configuring MAC addresses, and inspecting link-layer parameters on Linux systems. While ip route manages routing tables, ip addr controls IP addresses, and netstat inspects socket connections. Mastering ip link commands is an essential networking skill for system administrators troubleshooting physical link failures, configuring network bonds, and verifying interface operational states across enterprise Linux server environments and cloud infrastructure deployments under daily operational management tasks.
Question 360
Which bash shell environment variable defines the maximum number of executed commands stored in the command history memory buffer?
- PATH
- PS1
- HISTSIZE
- HOME
Correct Answer: 3
Explanation
The HISTSIZE environment variable defines the maximum number of previously executed command lines retained in the active shell memory buffer and saved into the history file upon session termination. While PATH specifies binary executable search directories, PS1 configures terminal prompt strings, and HOME points to the user home directory. Proper tuning of HISTSIZE is a useful customization habit for system administrators extending command memory retention, auditing historical administrative actions, and streamlining daily troubleshooting workflows across Linux enterprise server environments and cloud management sessions.