View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 361
Which command-line utility tests network port reachability and checks if a remote TCP service is listening?
- ping
- traceroute
- nc
- route
Correct Answer: 3
Explanation
The nc command, commonly known as netcat, is a versatile networking utility used by system administrators to read and write data across network connections, test remote TCP and UDP port reachability, and debug service availability. While ping tests basic ICMP reachability and traceroute maps routing hops, netcat actively probes specific ports to verify firewall configurations and application accessibility. Mastering netcat is an essential troubleshooting skill for diagnosing blocked service connections, verifying firewall rule deployments, and troubleshooting network communication bottlenecks across enterprise Linux server infrastructures and cloud deployment environments under daily operational workloads and administrative tasks.
Question 362
Which command displays the current disk space allocation and inode usage for all mounted filesystems?
- du
- df -i
- free
- top
Correct Answer: 2
Explanation
The df command combined with the -i option flag displays comprehensive inode usage statistics alongside block storage allocation for all mounted filesystems, allowing administrators to monitor metadata exhaustion limits. While standard df checks block capacity, du estimates directory sizes, and free tracks RAM. Inode exhaustion prevents file creation even when disk space remains available. Mastering inode monitoring is a crucial administrative responsibility for maintaining reliable storage performance, preventing application crashes, and ensuring robust file management across enterprise Linux servers and high-traffic production storage volumes during routine system maintenance and capacity planning operations.
Question 363
Which configuration file defines static local hostname-to-IP address mappings for the operating system?
- /etc/resolv.conf
- /etc/fstab
- /etc/hosts
- /etc/passwd
Correct Answer: 3
Explanation
The /etc/hosts file is a static system configuration file that maps hostnames directly to specific IP addresses, allowing the operating system to resolve local network names before querying external DNS servers. In contrast, /etc/resolv.conf defines remote DNS servers, /etc/fstab manages disk mounts, and /etc/passwd stores user metadata. Proper maintenance of /etc/hosts is vital for configuring local loopback addresses, managing offline server environments, and troubleshooting custom network routing entries across enterprise Linux server infrastructures and cloud deployments under standard operational networking rules and emergency system recovery scenarios.
Question 364
Which systemctl subcommand restarts a service daemon if it is running, or starts it if it is currently stopped?
- start
- stop
- restart
- try-restart
Correct Answer: 4
Explanation
The systemctl try-restart command instructs the systemd manager to restart a specified service daemon only if it is already actively running, leaving stopped services untouched, which prevents accidental startup of dormant daemons. While restart forces a restart regardless of state, start initiates daemons, and stop terminates execution. Mastering try-restart commands enables system administrators to apply configuration updates safely across running application suites without inadvertently launching maintenance services during scheduled administrative operations in enterprise Linux server environments and production cloud deployments under strict operational schedules and maintenance windows.
Question 365
Which shell conditional operator checks whether a specified directory path exists and is a directory?
- -f
- -d
- -z
- -eq
Correct Answer: 2
Explanation
The -d conditional test operator in bash scripting evaluates whether a specified path exists on the filesystem and is specifically a directory rather than a regular file, enabling scripts to validate path structures before executing traversal operations. In contrast, -f checks for regular files, -z tests for empty strings, and -eq compares numeric integers. Mastering directory test operators ensures that automation scripts handle missing folders gracefully, prevent runtime exceptions, and execute robust directory checks safely across complex production Linux administrative environments and deployment automation workflows during daily script maintenance tasks.
Question 366
Which command displays active user login sessions and processes currently running on the system?
- who
- w
- uptime
- last
Correct Answer: 2
Explanation
The w command provides a comprehensive summary of currently logged-in users, their active terminal sessions, remote source IP addresses, idle times, and the CPU load averages of processes they are running. While who displays simpler login data, uptime tracks run duration and load averages, and last audits historical logins. Mastering the w command is an essential security and monitoring habit for system administrators tracking active user activity, detecting unauthorized access attempts, and auditing system resource utilization across multi-user enterprise Linux server environments and cloud instances under daily administrative supervision and security monitoring policies.
Question 367
Which command-line utility is used to create a swap space partition or file in Linux?
- mkswap
- swapon
- swapoff
- fdisk
Correct Answer: 1
Explanation
The mkswap utility is used to format a designated disk partition or file as swap space, initializing the swap signature structures required before the kernel can utilize it for virtual memory management. While swapon activates swap spaces and swapoff disables them, fdisk manages partition tables. Mastering mkswap is a critical storage and performance administration skill for configuring virtual memory, preventing out-of-memory kernel panics, and managing system resource limits effectively across production Linux server environments and cloud infrastructure deployments under varying computational workloads and memory utilization thresholds.
Question 368
Which configuration file defines default shell behavior and profile settings for individual user accounts?
- /etc/passwd
- ~/.profile
- /etc/environment
- /etc/fstab
Correct Answer: 2
Explanation
The ~/.profile file is a user-specific configuration script located inside each individual home directory that executes upon user login to set personal environment variables, default paths, and session configurations. In contrast, system-wide settings are governed by files in /etc, while /etc/passwd stores account metadata. Proper configuration of user profile files ensures that custom development environments, path variables, and user-specific workspace preferences initialize correctly across multi-user enterprise Linux server and desktop operating system environments during routine user provisioning and login operations.
Question 369
Which command is used to display historical records of past user login sessions and reboots?
- who
- w
- last
- uptime
Correct Answer: 3
Explanation
The last command searches through the system login accounting log files to display a chronological list of all previous user login sessions, logout events, remote IP addresses, and system reboot histories. While who and w display currently active sessions, uptime reports current load averages. Mastering the last command is an essential security auditing skill for system administrators investigating security breaches, tracking user access timelines, and verifying system uptime records across enterprise Linux server environments and production cloud deployments during forensic analyses and security compliance audits.
Question 370
Which command-line utility extracts text patterns from files using regular expressions and displays matching lines?
- sed
- awk
- grep
- cut
Correct Answer: 3
Explanation
The grep utility is a powerful text search tool designed to scan plain-text input files or streams for lines matching specific regular expression patterns, printing matches to standard output. It is indispensable for log analysis and configuration auditing. While sed handles stream text editing, awk provides columnar reporting, and cut extracts specific character fields. Mastering grep remains the definitive tool for rapid pattern searching across files, making it essential for daily Linux systems administration, security audits, and troubleshooting tasks across enterprise server environments and software development deployment pipelines.
Question 371
Which command-line utility modifies the CPU priority scheduling niceness value of an already running process?
- nice
- renice
- top
- kill
Correct Answer: 2
Explanation
The renice command is utilized by system administrators to alter the CPU scheduling priority niceness value of an already active process running on the system, allowing adjustment of resource allocation without restarting applications. While nice launches new tasks with specific priorities, top displays processes, and kill terminates them. Mastering the renice utility is essential for managing server workload performance, mitigating CPU resource contention, and optimizing system responsiveness across production enterprise Linux server environments under heavy workloads and resource allocation constraints.
Question 372
Which system file stores group account definitions, group IDs, and member user lists on Linux systems?
- /etc/passwd
- /etc/shadow
- /etc/group
- /etc/fstab
Correct Answer: 3
Explanation
The /etc/group file is a core system configuration file that stores security group definitions, unique group identifiers, and lists of user accounts assigned as members of each group, facilitating collaborative access control. In contrast, /etc/passwd holds user account metadata, /etc/shadow secures encrypted passwords, and /etc/fstab handles disk mounts. Proper understanding and auditing of /etc/group are vital administrative responsibilities for managing user permissions, enforcing security boundaries, and maintaining access control standards across multi-user enterprise Linux server environments during routine administrative tasks and access control reviews.
Question 373
Which command-line utility creates new partitions on hard disks with an interactive text interface?
- parted
- fdisk
- mkfs
- lsblk
Correct Answer: 2
Explanation
The fdisk utility provides an interactive text user interface that allows system administrators to create, delete, resize, and inspect partition tables on storage drives supporting MBR and GPT formats. While parted supports scriptable partition manipulation, mkfs formats new filesystems, and lsblk displays block storage hierarchies. Mastering fdisk is a foundational storage management skill for preparing raw disks, configuring dual-boot systems, and managing partition layouts safely across Linux servers and cloud infrastructure environments during system deployment and storage provisioning workflows.
Question 374
Which systemd command disables a service daemon from starting automatically during boot while leaving active execution running?
- stop
- disable
- mask
- status
Correct Answer: 2
Explanation
The systemctl disable command removes the symbolic links configuring a service daemon to start automatically during system boot initialization, ensuring the service remains inactive upon reboot while leaving any currently active running instances untouched. In contrast, stop terminates active instances immediately, mask blocks the service entirely, and status checks operational health. Mastering disable commands is essential for optimizing system boot times, managing startup targets, and maintaining precise administrative control over server operational states across enterprise environments during routine maintenance and system configuration management.
Question 375
Which command-line utility displays kernel ring buffer log messages generated during system boot initialization?
- lsmod
- dmesg
- uname
- modprobe
Correct Answer: 2
Explanation
The dmesg command outputs the contents of the kernel ring buffer, displaying real-time diagnostic messages, hardware detection notices, driver initialization logs, and bootup status reports generated by the Linux kernel. While lsmod lists loaded modules, uname reports kernel versions, and modprobe loads drivers. Mastering dmesg is an essential troubleshooting skill for system administrators diagnosing hardware recognition failures, resolving device driver conflicts, and verifying system startup events across enterprise Linux server environments and cloud deployments during boot troubleshooting and hardware diagnostics operations.
Question 376
Which network configuration file defines static hostname settings on systemd-based Linux distributions?
- /etc/resolv.conf
- /etc/hosts
- /etc/hostname
- /etc/fstab
Correct Answer: 3
Explanation
The /etc/hostname file is a simple system configuration file used on systemd-based Linux distributions to store the static host name of the local machine, which is read by the kernel during boot initialization. In contrast, /etc/hosts handles IP-to-hostname mappings, /etc/resolv.conf defines DNS servers, and /etc/fstab manages disk mounts. Proper configuration of /etc/hostname is vital for identifying servers correctly within local subnets, configuring network environments, and maintaining accurate identification across enterprise Linux infrastructures and cloud deployments under standard operational networking rules and configuration management standards.
Question 377
Which shell redirection operator redirects both standard output and standard error streams to a file simultaneously?
- &>
- 2>
Correct Answer: 3
Explanation
The &> redirection operator combines standard output and standard error streams, redirecting both data types simultaneously into a specified destination file without requiring separate file descriptor declarations. In contrast, the single greater-than sign handles standard output, double greater-than appends standard output, and 2> handles errors exclusively. Mastering combined output redirection is essential for capturing complete diagnostic logs, recording script execution summaries, and automating administrative reporting tasks across Linux systems and deployment automation scripts during daily administrative workflows and error tracking operations.
Question 378
Which command lists block storage devices, partitions, and their hierarchical relationships in a tree-like format?
- df
- du
- lsblk
- free
Correct Answer: 3
Explanation
The lsblk command stands for list block devices and displays all available storage drives, partitions, and dependent mount points in a clean, hierarchical tree-like format, showing device major and minor numbers. While df reports filesystem storage capacities, du estimates directory sizes, and free tracks RAM usage. Mastering lsblk is an essential storage administration skill for identifying physical disk layouts, verifying partition assignments, and planning storage expansions safely across enterprise Linux servers and cloud infrastructure environments during storage provisioning and system auditing operations.
Question 379
Which command displays current system uptime, load averages, and logged-in user counts?
- who
- w
- uptime
- top
Correct Answer: 3
Explanation
The uptime command provides a quick, concise report showing how long the system has been running, the number of currently logged-in users, and system load averages over one, five, and fifteen-minute intervals. While who and w display detailed user session information and top provides a continuous real-time process list, uptime offers a rapid system health overview. Monitoring uptime metrics is an essential habit for system administrators detecting performance slowdowns, evaluating server load conditions, and ensuring operational stability across enterprise Linux server environments and production cloud infrastructure deployments under varying computational workloads.
Question 380
Which command-line utility formats a specified disk partition with a new filesystem type?
- fdisk
- mkfs
- parted
- mount
Correct Answer: 2
Explanation
The mkfs command stands for make filesystem and is the primary utility used in Linux to format storage partitions with specific filesystem types—such as ext4, xfs, or btrfs—preparing raw storage volumes to store files and directories. While fdisk and parted manage partition tables, mount attaches filesystems to the directory tree. Mastering mkfs is a foundational storage administration skill for provisioning new disk partitions, configuring server storage pools, and setting up reliable file storage volumes across enterprise Linux server environments and cloud deployments during system setup and storage expansion projects.