View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 101
Which command line utility displays comprehensive manual pages and system documentation for shell commands?
- info
- help
- man
- doc
Correct Answer: 3
Explanation
The man command invokes the system manual pages, providing comprehensive reference documentation for shell commands, configuration file formats, programming functions, and system administration utilities. By typing man followed by a command name, users can inspect detailed descriptions, command-line option flags, syntax requirements, and practical usage examples. While help is often a shell builtin for specific lightweight commands and info offers a more hyperlinked documentation browsing experience, man remains the universal, primary command-line reference tool relied upon daily by Linux systems administrators worldwide to verify execution syntax and options.
Question 102
What is the primary function of the /etc/passwd file in a standard Linux system configuration?
- Containing user account metadata, login shells, and home directory paths
- Storing encrypted user account password hashes and expiration policies
- Maintaining a database of system groups and primary group memberships
- Recording historical authentication failure logs and security events
Correct Answer: 1
Explanation
The /etc/passwd file serves as a system-wide plain-text database that stores essential user account metadata. Each entry defines a user account using colon-separated fields, specifying the username, a placeholder for passwords, the numeric User ID, the Group ID, a descriptive comment, the absolute path to the user home directory, and the default login shell. Although historical UNIX systems stored encrypted password hashes directly within this file, modern Linux distributions separate sensitive hash data into the /etc/shadow file for enhanced security. Meanwhile, group details reside in /etc/group, and authentication events are logged elsewhere.
Question 103
Which command is used to modify the access permissions of a file or directory using numeric or symbolic mode?
- chown
- chmod
- chgrp
- umask
Correct Answer: 2
Explanation
The chmod command is the primary tool utilized by Linux system administrators to change the access permission bits of files and directories. When operating in numeric mode, administrators use three or four octal digits representing permissions for the owner, group, and others, where each digit is a sum of read, write, and execute values. For example, setting permissions to 755 grants the owner full read, write, and execute privileges while restricting group and others to read and execute access. This precise octal control ensures that sensitive system files remain fully protected against unauthorized modifications while supporting appropriate operational visibility.
Question 104
Which of the following directories in the Linux file system hierarchy typically contains essential system binaries required for single-user mode operations?
- /home
- /var
- /media
- /sbin
Correct Answer: 4
Explanation
The /sbin directory contains critical system binaries and administrative commands that are essential for system initialization, maintenance, and recovery operations. These binaries—such as fsck, fdisk, and iptables—are typically reserved for the root user and are required during single-user mode when other filesystems may not yet be mounted. In contrast, directories like /home house user-specific personal files, /media provides mount points for removable storage media like USB drives, and /var stores variable data files such as system logs, spool files, and temporary databases that change continuously during standard daily operating system execution.
Question 105
What is the primary function of the apt-get command on Debian-based Linux distributions?
- Managing package installations, updates, and software removal
- Compiling raw C source code into binary executables
- Configuring network interface static IP addresses and routing tables
- Monitoring active kernel processes and CPU memory consumption
Correct Answer: 1
Explanation
The apt-get command is a powerful command-line package management tool utilized in Debian-based Linux distributions—such as Ubuntu and Linux Mint—to handle software installation, package upgrades, dependency resolution, and system software removal. It interacts seamlessly with remote software repositories to fetch verified packages safely. While compilation is handled by tools like make and gcc, network configuration utilizes ip or netplan utilities, and process monitoring is managed via top or htop, apt-get remains vital for maintaining up-to-date software inventories and system security patches across enterprise server environments and cloud instances.
Question 106
Which network utility provides modern, high-performance socket statistics and replaces legacy tools like netstat?
- ifconfig
- ss
- route
- ping
Correct Answer: 2
Explanation
The ss utility stands for socket statistics and is the modern, highly efficient command-line tool used to examine network socket connections, listening ports, and routing tables on Linux systems. It dumps socket statistics significantly faster than legacy tools like netstat by fetching information directly from kernel space via netlink sockets, making it invaluable for diagnosing high-traffic server environments. While ifconfig manages interface configurations, route modifies routing tables, and ping tests basic ICMP network reachability, ss remains the premier diagnostic utility for inspecting TCP, UDP, and UNIX domain socket states across contemporary enterprise distributions.
Question 107
Which file stores secure, encrypted user account password hashes and aging policies on modern Linux systems?
- /etc/passwd
- /etc/group
- /etc/shadow
- /etc/fstab
Correct Answer: 3
Explanation
The /etc/shadow file stores secure, encrypted user account password hashes along with password aging and expiration policy parameters on modern Linux systems. To protect sensitive authentication data from unauthorized inspection, this file is strictly restricted and readable only by the root administrative user. While /etc/passwd holds general user metadata, it no longer houses password hashes in contemporary distributions. Meanwhile, /etc/group manages security group definitions, and /etc/fstab configures static filesystem mount points. Securing /etc/shadow is a fundamental requirement for preventing offline brute-force attacks and maintaining robust system security across enterprise multi-user environments.
Question 108
Which systemctl subcommand is used to restart an active systemd service daemon?
- status
- enable
- stop
- restart
Correct Answer: 4
Explanation
The systemctl restart command instructs the systemd manager to stop a specified service daemon immediately and then start it back up again, reloading any updated configuration files or applying recent application patches. This command is frequently used by administrators after modifying configuration settings in /etc to ensure changes take effect. Conversely, status checks operational health, enable configures boot-time startup behavior, and stop terminates active service execution. Mastering systemctl commands ensures reliable daemon lifecycle management and high availability across enterprise Linux environments and cloud server infrastructures.
Question 109
Which command searches for text patterns within plain text files using regular expressions?
- find
- grep
- sed
- awk
Correct Answer: 2
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 find locates files within directory hierarchies based on attributes like name and modification time, sed handles stream text editing, and awk specializes in data extraction and reporting, grep remains the definitive tool for lightning-fast pattern searching across files, making it essential for daily Linux systems administration and troubleshooting tasks.
Question 110
Which utility generates cryptographic public and private key pairs for secure SSH authentication?
- ssh-keygen
- ssh-agent
- ssh-add
- scp
Correct Answer: 1
Explanation
The ssh-keygen utility is used to generate cryptographic key pairs—consisting of a private key kept secret on the client machine and a public key uploaded to remote servers—enabling secure, passwordless SSH login authentication. This cryptographic method significantly enhances server security by replacing vulnerable plaintext passwords with robust public-key cryptography. While ssh-agent manages private keys in memory during an active session, ssh-add loads keys into the agent, and scp securely transfers files across the network. Knowing how to generate and manage SSH keys is a fundamental requirement for secure cloud administration and server management.
Question 111
What is the primary function of the Linux kernel within an operating system architecture?
- Providing a graphical user interface window manager for desktop users
- Managing hardware resources and acting as an interface between software and physical devices
- Compiling source code files into executable machine binaries
- Managing remote network connections and firewall packet filtering rules
Correct Answer: 2
Explanation
The Linux kernel serves as the foundational core of the operating system, holding complete responsibility for managing system hardware resources, including the CPU, memory, storage devices, and peripheral interfaces. It acts as an indispensable abstraction layer, facilitating seamless communication between user-space software applications and physical hardware components through system calls and device drivers. While window managers handle graphical user interfaces, compilers translate source code, and network daemons handle remote connections, the kernel remains uniquely vital for process scheduling, memory allocation, hardware interrupt handling, and overall system stability across diverse computing environments.
Question 112
Which command creates a symbolic link pointing to a target file or directory path?
- ln -s
- cp -r
- mv -f
- rm -rf
Correct Answer: 1
Explanation
The ln command combined with the symbolic flag creates a symbolic link, which is a specialized shortcut file containing the relative or absolute pathname of a target file or directory. Symbolic links can point across different mounted filesystems and directory paths. If the original target file is deleted or renamed, the symbolic link breaks entirely. In contrast, hard links point directly to inodes on the same filesystem. Knowing how to create and manage symbolic links using ln -s is critical for organizing file structures, managing application paths, and maintaining system flexibility across Linux environments.
Question 113
Which environment variable defines the ordered list of directories searched by the shell to locate executable commands?
- HOME
- SHELL
- PATH
- USER
Correct Answer: 3
Explanation
The PATH environment variable contains an ordered colon-separated list of absolute directory paths that the shell scans sequentially whenever a user types an executable command without specifying its full path. If a command binary resides within a directory included in PATH, the shell executes it immediately; otherwise, it returns a command not found error. Other variables like HOME specify the user home directory, SHELL defines the default user command interpreter, and USER holds the active username. Managing PATH correctly is critical for ensuring custom scripts and locally installed applications run without errors across the system.
Question 114
Which command reports file system disk space utilization and available capacity across mounted partitions?
- du
- free
- top
- df
Correct Answer: 4
Explanation
The df command, which stands for disk free, reports the amount of disk space consumed and available across all currently mounted file systems within the Linux operating system. By default, it presents output in block counts, but administrators frequently append human-readable flags to display values in gigabytes or megabytes for easier analysis. While the du utility calculates directory-specific space consumption for files and subfolders, free displays system RAM usage, and top tracks active processes. Utilizing df regularly is crucial for preventing unexpected disk exhaustion emergencies on production Linux servers and database nodes.
Question 115
Which command displays the current working directory path in a Linux shell session?
- pwd
- cd
- ls
- dir
Correct Answer: 1
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 filesystem hierarchy. 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.
Question 116
Which command line utility displays real-time system resource utilization and active running processes?
- ps
- top
- ls
- df
Correct Answer: 2
Explanation
The top utility provides a dynamic, real-time view of running system processes, displaying continuous updates on CPU utilization, memory consumption, swap usage, task states, and system load averages. It allows administrators to identify resource-hungry processes instantly and terminate misbehaving tasks interactively. While ps provides a static snapshot of process statuses at the exact moment of execution, df displays available disk space across mounted filesystems, and ls lists directory contents. Mastering top is essential for performance monitoring and troubleshooting Linux server resource bottlenecks under heavy computational workloads.
Question 117
What is the role of the Linux swap space in memory management?
- Acting as a physical backup target for long-term data archiving
- Storing kernel debugging symbols and crash dump logs
- Serving as virtual memory overflow when physical RAM is fully utilized
- Providing high-speed caching for network packet routing tables
Correct Answer: 3
Explanation
Linux swap space functions as virtual memory allocated on secondary storage devices—such as hard disk drives or solid-state drives—that the kernel utilizes when physical RAM capacity is exhausted. When active memory demands exceed available RAM, the kernel pages inactive memory blocks out to swap space, freeing up physical RAM for active processes and preventing out-of-memory crashes. Although swap space is significantly slower than physical RAM, it acts as a crucial safety buffer to maintain system stability under heavy multitasking workloads and intensive computational demands across enterprise servers.
Question 118
Which backup and archiving utility copies files to and from archives while preserving metadata and supporting raw data streams?
- gzip
- wc
- touch
- cpio
Correct Answer: 4
Explanation
The cpio utility, which stands for copy in, copy out, is a classic archiving tool used to copy files into and out of backup archives. It reads file lists from standard input and packs them efficiently into an archive stream, making it highly flexible for complex backup scripts and kernel initramfs image creation. While gzip handles file compression, wc counts lines, words, and characters in text files, and touch creates empty files, cpio remains a powerful, specialized tool for low-level system archiving and data migration tasks across UNIX-like operating systems and Linux environments.
Question 119
Which command adds a new user account to a Linux system with default home directory creation?
- usermod
- userdel
- groupadd
- useradd
Correct Answer: 4
Explanation
The useradd command is the standard low-level utility utilized by administrators to create new user accounts on Linux systems, populating necessary account metadata within system files like /etc/passwd and /etc/shadow. When combined with specific configuration flags, it automatically creates the user home directory, assigns default login shells, and establishes primary group memberships. While usermod modifies existing user account parameters, userdel removes accounts safely, and groupadd creates new security groups. Proper user account provisioning via useradd is a vital administrative duty for maintaining secure multi-user environments and enforcing strict access boundaries.
Question 120
Which command establishes an encrypted secure shell connection to a remote Linux server?
- telnet
- ssh
- ftp
- rlogin
Correct Answer: 2
Explanation
The ssh command initiates an encrypted Secure Shell session, allowing administrators to log into remote Linux servers securely over unsecure networks. All transmitted data, including login credentials, command inputs, and terminal output streams, is protected by robust cryptographic encryption, preventing eavesdropping and man-in-the-middle attacks. Legacy protocols like telnet, ftp, and rlogin transmit all authentication and operational data in plain text, making them highly vulnerable to network interception. Consequently, SSH has become the universal industry standard for remote systems administration, server management, and secure file transfers across modern cloud and enterprise data center infrastructures.