View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 201
Which command-line utility is used to display network interface hardware MAC addresses and IP configurations on modern Linux?
- route
- ip link
- ping
- traceroute
Correct Answer: 2
Explanation
The ip link command is a powerful subset of the iproute2 suite utilized to inspect and configure network device interfaces, displaying hardware MAC addresses, operational link states, and transmission queue lengths on modern Linux systems. It replaces legacy tools like ifconfig by communicating directly with the kernel via netlink sockets. While route modifies routing tables, ping tests basic ICMP reachability, and traceroute maps network packet paths, ip link remains essential for verifying interface connectivity, debugging hardware link failures, and maintaining reliable network performance across modern enterprise servers and cloud infrastructure deployments.
Question 202
Which archive utility combines file bundling with high-ratio lzma compression?
- gzip
- bzip2
- tar
- xz
Correct Answer: 4
Explanation
The xz utility is a powerful compression tool that implements the LZMA algorithm to achieve exceptionally high compression ratios for archiving large software packages and system backups on Linux distributions. Although it requires more CPU resources during compression, it significantly reduces storage consumption. While gzip and bzip2 offer alternative compression algorithms, xz provides superior space savings for large distributions. Knowing how to utilize xz ensures efficient backup management and optimal utilization of storage resources across modern enterprise Linux server environments and cloud data storage repositories.
Question 203
Which configuration file defines trusted DNS name server IP addresses for system resolution?
- /etc/hosts
- /etc/resolv.conf
- /etc/fstab
- /etc/passwd
Correct Answer: 2
Explanation
The /etc/resolv.conf file is a core configuration file used by the operating system resolver library to define the IP addresses of trusted external Domain Name System servers that the machine queries to translate hostnames into IP addresses. In contrast, /etc/hosts handles static local hostname mappings, /etc/fstab manages persistent filesystem mount points, and /etc/passwd stores user account metadata. Proper configuration of /etc/resolv.conf is vital for ensuring correct external network connectivity, preventing name resolution timeouts, and maintaining reliable internet access across enterprise Linux servers and cloud infrastructure.
Question 204
Which systemctl subcommand disables a service daemon from starting automatically during system boot?
- disable
- stop
- status
- mask
Correct Answer: 1
Explanation
The systemctl disable command removes the symbolic links that configure a service daemon to start automatically during system boot initialization, ensuring the service remains inactive until manually enabled. This allows administrators to control system resource consumption and manage startup targets effectively. While stop terminates active running instances immediately, status checks operational health, and mask blocks the service entirely. Mastering disable commands is essential for optimizing system boot times, reducing unnecessary background daemons, and maintaining precise administrative control over server operational states across enterprise environments.
Question 205
Which loop structure executes a block of commands repeatedly as long as a conditional test remains true?
- for
- while
- until
- if
Correct Answer: 2
Explanation
The while loop in bash shell scripting evaluates a specified conditional test and executes an enclosed block of commands repeatedly as long as that condition evaluates to true, terminating when the test fails. It is widely used for continuous monitoring and file processing. While for loops iterate over predefined item lists, until loops run until a condition becomes true, and if handles conditional branching. Mastering while loops is essential for writing robust automation scripts capable of handling dynamic runtime conditions, background monitoring tasks, and complex workflows across enterprise Linux server environments.
Question 206
Which command-line utility tests name resolution by querying DNS servers directly?
- ping
- traceroute
- dig
- ss
Correct Answer: 3
Explanation
The dig command stands for domain information groper and is a flexible utility used to query DNS name servers and inspect DNS records, MX entries, and IP address resolutions directly. It provides detailed diagnostic output, making it invaluable for troubleshooting name resolution failures. While ping tests basic ICMP reachability, traceroute maps intermediate network routing hops, and ss inspects active socket connections. Mastering dig enables system administrators to verify DNS configurations, debug domain lookup delays, and maintain reliable network communication paths across enterprise infrastructure and cloud server environments.
Question 207
Which file permissions mask leaves files fully accessible to the owner while blocking all access for group and others?
- 755
- 644
- 700
- 777
Correct Answer: 3
Explanation
The numeric octal permission mask 700 grants the file owner complete read, write, and execute permissions while strictly prohibiting any access or visibility for both the owning group and all other external users. This provides maximum privacy for sensitive scripts and private user files. In contrast, 755 is standard for shared executables, 644 is standard for regular documents, and 777 grants universal unrestricted access to everyone. Understanding permission masks is crucial for enforcing least privilege principles, protecting private user data, and maintaining strict security compliance standards across enterprise Linux multi-user server environments.
Question 208
Which command displays the amount of free and used memory in the system?
- df
- free
- top
- uptime
Correct Answer: 2
Explanation
The free command reports the total amount of physical RAM and swap space allocated, used, and available in the Linux system, along with memory utilized by kernel buffer caches. It presents a clear snapshot of system memory utilization. While df reports disk partition storage capacity, top displays active CPU processes, and uptime reports run duration and load averages. Utilizing free regularly is an essential diagnostic habit for system administrators monitoring memory consumption, detecting potential out-of-memory bottlenecks, and ensuring smooth application performance across production enterprise Linux server environments and cloud instances.
Question 209
Which shell conditional operator checks whether a specified file exists and is a regular file?
- -d
- -f
- -z
- -eq
Correct Answer: 2
Explanation
The -f conditional test operator in bash scripting evaluates whether a specified path exists on the filesystem and is specifically a regular file rather than a directory or device node. It is frequently incorporated into if statements to validate file existence before executing read or write operations. In contrast, -d checks for directories, -z tests for empty string variables, and -eq compares numeric integers. Mastering file conditional operators ensures that shell automation scripts handle missing files gracefully, prevent runtime errors, and execute safely across complex production Linux administrative environments.
Question 210
Which directory stores persistent system log files and mail spools on modern Linux distributions?
- /etc
- /var
- /tmp
- /home
Correct Answer: 2
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 211
Which command lists all currently scheduled cron jobs for the current user?
- crontab -l
- crontab -e
- crontab -r
- crontab -d
Correct Answer: 1
Explanation
The crontab command combined with the -l flag lists all scheduled background cron jobs currently configured for the executing user account, providing a clear audit of automated tasks. Conversely, -e opens the editor to create or modify jobs, and -r removes the entire crontab schedule. Mastering crontab options ensures that system administrators can review scheduled automation, verify backup execution times, and maintain operational transparency without risking accidental schedule deletion across production Linux server environments and cloud infrastructure.
Question 212
Which command changes the user owner of a file without altering its group association?
- chgrp
- chmod
- chown
- umask
Correct Answer: 3
Explanation
The chown command is utilized by system administrators to change the user owner of a file or directory while leaving the group ownership untouched when a group specifier is omitted. This allows precise control over file access rights. While chgrp exclusively alters group ownership, chmod modifies permission bits, and umask sets default creation masks. Proper utilization of chown ensures adherence to the principle of least privilege, safeguarding sensitive organizational data and maintaining robust security controls across multi-user enterprise servers and collaborative file storage directories.
Question 213
Which archive format combines tar bundling with high-performance gzip compression?
- .tar.bz2
- .tar.gz
- .tar.xz
- .zip
Correct Answer: 2
Explanation
The .tar.gz (or .tgz) archive format combines the file bundling capabilities of the tar utility with fast gzip compression, providing an efficient way to distribute software packages and back up directory structures. While .tar.bz2 uses bzip2 and .tar.xz uses xz for higher compression ratios, gzip remains the fastest and most widely compatible format. Knowing how to create and extract .tar.gz archives is an essential skill for system administrators managing software source code and data migrations across enterprise Linux server environments.
Question 214
Which systemd command masks a service daemon to prevent any manual or automatic activation?
- disable
- stop
- mask
- restart
Correct Answer: 3
Explanation
The systemctl mask command links a specified service unit file directly to /dev/null, effectively locking the service and rendering it completely unstartable by either manual commands or dependency triggers until it is explicitly unmasked. This is extremely useful for disabling conflicting system daemons. In contrast, disable stops automatic boot startup, stop terminates active execution, and restart reloads services. Mastering masking commands gives system administrators absolute control over system daemons and security boundaries across enterprise Linux server infrastructures.
Question 215
Which command-line option tells rpm to query which package owns a specific file path?
- -qa
- -qi
- -ql
- -qf
Correct Answer: 4
Explanation
The rpm command combined with the -qf query flags identifies and displays the exact name of the software package that installed a specified file path on Red Hat-based distributions. This is invaluable when troubleshooting missing libraries or auditing file origins. In contrast, -qa lists all installed packages, -qi displays detailed package metadata, and -ql lists all files belonging to a package. Mastering query flags allows system administrators to conduct thorough software audits and maintain strict package compliance across enterprise Linux environments.
Question 216
Which network utility captures and inspects live packet traffic passing through an interface?
- ping
- tcpdump
- traceroute
- ss
Correct Answer: 2
Explanation
The tcpdump utility is a powerful command-line packet analyzer that captures and displays network packet headers and payloads flowing across a specified network interface in real time, making it indispensable for advanced network troubleshooting. While ping tests basic connectivity, traceroute maps routing paths, and ss inspects socket connections. Mastering tcpdump enables system administrators to diagnose complex firewall rule issues, inspect protocol handshakes, and analyze network security anomalies across enterprise Linux server and cloud infrastructure environments.
Question 217
Which shell redirection operator discards all standard output by sending it to the null device?
- /dev/null
- /dev/null
- < /dev/null
- 2> /dev/null
Correct Answer: 1
Explanation
Redirecting standard output to /dev/null using the single greater-than operator suppresses and discards all output generated by a command, preventing it from cluttering the terminal display or log files. This is widely used in automation scripts to silence verbose commands. While appending to /dev/null preserves logs, input redirection uses <, and 2> handles error streams. Mastering redirection to /dev/null ensures clean script execution, professional log management, and efficient output control across Linux administrative workflows.
Question 218
Which command-line utility displays the last few lines of a file dynamically as it grows?
- head
- tail -f
- cat
- less
Correct Answer: 2
Explanation
The tail command combined with the follow flag (-f) displays the final lines of a text file and keeps the terminal session open, updating dynamically in real time as new lines are appended to the file. This makes it an indispensable tool for monitoring live system logs and application error streams. While head shows initial lines, cat outputs the entire file, and less provides a static viewer. Mastering tail -f is essential for system administrators tracking live daemon activity and troubleshooting runtime issues across production Linux servers.
Question 219
Which directory contains the primary system binaries required for emergency maintenance and recovery?
- /bin
- /sbin
- /home
- /tmp
Correct Answer: 2
Explanation
The /sbin directory houses critical system binaries and administrative recovery commands—such as filesystem checkers and partition managers—that are reserved primarily for the root user and essential during single-user maintenance mode when other storage partitions may not yet be mounted. In contrast, /bin stores standard user binaries, /home holds personal user data, and /tmp stores temporary files. Proper understanding of /sbin is vital for system recovery, boot troubleshooting, and maintaining administrative control over enterprise Linux server environments.
Question 220
What is a primary advantage of using Logical Volume Management (LVM) over traditional disk partitions?
- Eliminating the need for any file system formatting
- Allowing online resizing of storage volumes without system downtime
- Mandating GPT disk structures for all storage devices
- Automatically compressing all stored file blocks on disk
Correct Answer: 2
Explanation
Logical Volume Management provides the critical advantage of allowing system administrators to resize storage volumes dynamically and online without requiring system reboots or unmounting filesystems, offering superior flexibility compared to static partitions. While filesystems still require formatting, LVM abstracts physical disks into flexible storage pools. Mastering LVM architecture is an essential storage administration skill for scaling enterprise server storage volumes, preventing partition exhaustion emergencies, and managing dynamic cloud storage capacity efficiently across production Linux environments.