View Full LPI 010-160 Exam Dumps and Practice Test Dumps.
Question 41
Which command modifies the scheduling priority (nice value) of an already running process in Linux?
- nice
- renice
- top
- kill
Correct Answer: 2
Explanation
The renice command is specifically designed to alter the priority of one or more active, running processes on a Linux system by adjusting their scheduling nice values. While the standard nice command sets the priority when initiating a new process, renice allows system administrators to dynamically tune resource allocation for existing tasks to optimize overall server performance and prevent resource starvation. By specifying a new integer priority value alongside the target process ID, administrators can give critical background services more CPU time or throttle resource-heavy tasks. Other tools like top provide interactive monitoring, and kill terminates unresponsive processes.
Question 42
Which network utility provides modern, high-performance socket statistics and replaces legacy tools like netstat?
- ifconfig
- route
- ss
- ping
Correct Answer: 3
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 43
Which command searches for files in a directory hierarchy based on criteria such as name, size, or modification date?
- locate
- find
- grep
- touch
Correct Answer: 2
Explanation
The find command performs live, real-time filesystem traversals to locate files and directories matching complex search criteria, including filenames, user ownership, modification timestamps, and specific file sizes. Unlike the locate utility which queries a precompiled database index, find scans the physical storage directly, ensuring absolute up-to-date accuracy when auditing system files. While grep searches inside text files for matching string patterns, locate provides rapid database lookups, and touch creates empty files, find remains the most powerful and flexible tool for granular file management and administrative cleanup tasks.
Question 44
Which compression utility typically produces higher compression ratios than gzip by utilizing the Burrows-Wheeler block sorting algorithm?
- zip
- tar
- bzip2
- cp
Correct Answer: 3
Explanation
The bzip2 utility is a powerful file compression program that compresses plain text files and archives using the Burrows-Wheeler block sorting text compression algorithm and Huffman coding. While it generally requires more CPU processing time and memory during compression than traditional gzip, it consistently achieves significantly smaller archive file sizes, making it ideal for distributing software packages or storing archival backups where storage efficiency is paramount. The zip utility handles standard multi-file zip archives, tar bundles files without native compression, and cp copies files across system directories without modifying their internal data formats.
Question 45
Which administrative command creates a new user group on a Linux system?
- useradd
- groupadd
- usermod
- groupdel
Correct Answer: 2
Explanation
The groupadd command is the foundational system utility utilized by administrators to create new security groups within Linux operating system configuration files like /etc/group. Creating distinct groups enables efficient permission management, allowing administrators to assign shared access privileges to multiple users simultaneously rather than configuring individual file permissions for every single account. While useradd provisions individual user accounts, usermod modifies existing user parameters, and groupdel removes obsolete groups from the system. Proper group management is essential for enforcing robust role-based access control policies across shared enterprise environments.
Question 46
Which command-line option is used with tar to list the contents of an existing archive without extracting them?
- -c
- -x
- -t
- -r
Correct Answer: 3
Explanation
The -t option instructs the tar utility to display a detailed list of all files and directory paths contained within a specified archive file without modifying or extracting any data to the disk. This inspection capability is extremely useful for verifying backup contents or checking archive structures before performing a full restoration. Conversely, the -c option creates a new archive file, the -x option extracts the archived contents into the current directory, and the -r option appends files to the end of an existing archive. Mastering these foundational tar flags ensures safe and predictable archive management.
Question 47
Which shell builtin command makes a shell variable available to child processes and subshells?
- set
- env
- export
- echo
Correct Answer: 3
Explanation
The export command marks a shell variable so that it is automatically included in the environment of any subsequently spawned child processes or subshells executed within that session. Without export, shell variables remain strictly local to the current shell instance and cannot be accessed by scripts or background processes launched from the command line. While set displays all shell variables and functions, env lists current environment variables, and echo prints text to standard output. Understanding variable export mechanics is critical for configuring script execution environments and managing system paths properly.
Question 48
Which text processing utility extracts specific columns or fields from each line of a file using a designated delimiter?
- cut
- sed
- awk
- tr
Correct Answer: 1
Explanation
The cut utility is a streamlined command-line tool designed to slice out specific sections or columns of text from each line of a file based on byte positions, character counts, or delimiter characters like colons or commas. It is frequently employed in shell scripts to parse structured plain-text files and configuration tables, such as extracting usernames from the /etc/passwd file. While sed specializes in stream editing, awk provides a full programming language for complex data extraction, and tr translates or deletes individual characters, cut offers a fast and simple solution for basic column extraction tasks.
Question 49
Which RPM query flag displays detailed information about an installed software package, including its description and version?
- -qa
- -qi
- -ql
- -qf
Correct Answer: 2
Explanation
The rpm command combined with the -qi query flags displays comprehensive metadata about an installed software package, including its name, version, release number, architecture, installation date, summary description, and digital signature details. This diagnostic view helps administrators audit system inventory and verify package versions. In contrast, -qa lists all installed packages on the system, -ql lists every file contained within a specific package, and -qf identifies which installed package owns a particular file path. Mastering these query options is essential for maintaining RPM-based Linux distributions efficiently.
Question 50
Which command-line tool manages systemd services, allowing administrators to start, stop, and enable daemons?
- service
- initctl
- systemctl
- chkconfig
Correct Answer: 3
Explanation
The systemctl command is the primary administrative interface used to control and inspect the systemd system and service manager. Administrators use systemctl to start, stop, restart, reload, and check the status of background services, as well as to configure services to start automatically during system boot using the enable subcommand. While legacy utilities like service and chkconfig managed SysVinit scripts on older distributions, systemctl provides unified control over services, mount points, sockets, and system states across modern enterprise Linux environments, ensuring consistent and reliable daemon management.
Question 51
Which filesystem utility is used to report inode usage and file system capacity details?
- du
- df
- free
- top
Correct Answer: 2
Explanation
The df command reports disk space utilization and available storage capacity across mounted filesystems, and when executed with the inode flag, it displays total, used, and free inode counts. Inodes are critical data structures that store file metadata; exhausting available inodes prevents the creation of new files even if physical disk storage space remains available. While du calculates directory-specific space consumption, free monitors system memory usage, and top tracks active CPU processes, df remains essential for monitoring both storage capacity and inode health to prevent unexpected system failures.
Question 52
Which utility generates cryptographic public and private key pairs for secure SSH authentication?
- ssh-agent
- ssh-keygen
- ssh-add
- scp
Correct Answer: 2
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.
Question 53
Which redirection operator appends standard output text to the end of a file without overwriting existing content?
- <
- 2>
Correct Answer: 3
Explanation
The double greater-than sign acts as the append redirection operator, directing the standard output stream of a command to be added to the end of an existing file while preserving all prior content. If the specified target file does not already exist, the shell creates it automatically. Conversely, the single greater-than sign overwrites the entire file contents from the beginning, the less-than sign redirects standard input, and 2> redirects standard error streams. Mastering redirection operators is vital for logging command outputs, automating administrative scripts, and managing data flows effectively.
Question 54
Which command allows authorized users to execute administrative commands with superuser privileges?
- su
- sudo
- login
- passwd
Correct Answer: 2
Explanation
The sudo command permits a permitted user to execute a command as the superuser or another specified user, as defined by security policy configurations in the /etc/sudoers file. Instead of logging in directly as the root user—which poses severe security risks—administrators use sudo to run privileged commands selectively while logging every administrative action for auditing accountability. While su switches the active user shell session entirely, passwd updates user passwords, and login manages session initiation. Using sudo is an essential security best practice across multi-user enterprise Linux environments.
Question 55
What must be granted to a shell script file before it can be executed directly as a command?
- Read permission
- Write permission
- Execute permission
- Sticky bit permission
Correct Answer: 3
Explanation
A shell script file must have execute permission enabled for the user, group, or others before the operating system will permit it to run directly as an executable command from the shell. Administrators grant this permission using the chmod command with the execute flag. Without execute permissions, attempting to run the script results in a permission denied error, even if read and write permissions are fully enabled. Read permission allows users to inspect the script text, write permission permits modifications, and execute permission unlocks script execution capability across the operating system environment.
Question 56
Which command lists PCI hardware devices connected to the system motherboard?
- lsusb
- lspci
- lsblk
- lscpu
Correct Answer: 2
Explanation
The lspci command queries the kernel and displays detailed information about all PCI buses and connected peripheral devices—such as graphics cards, network interface controllers, USB host controllers, and storage adapters—installed on the system motherboard. This utility is invaluable for hardware inventory audits and troubleshooting driver compatibility issues. Similarly, lsusb lists connected USB devices, lsblk displays block storage devices and partition layouts, and lscpu reports CPU architecture specifications. Mastering these hardware diagnostic tools enables administrators to verify system configurations and diagnose hardware bottlenecks effectively.
Question 57
Which environment variable controls localization settings, defining character encoding and regional formatting?
- PATH
- HOME
- LANG
- SHELL
Correct Answer: 3
Explanation
The LANG environment variable defines the default system-wide or user-specific locale setting, establishing parameters for character encoding (such as UTF-8), date formatting, currency representation, and sorting behavior across software applications. Correctly configuring LANG ensures that command-line tools and desktop applications display regional characters and symbols accurately. Other variables include PATH for locating executable binaries, HOME for defining the user home directory, and SHELL for setting the command interpreter. Managing locale variables properly prevents garbled text rendering and ensures consistent user experiences across internationalized Linux systems.
Question 58
Which utility synchronizes the system clock over a network using the Network Time Protocol?
- date
- chronyd
- cal
- timedatectl
Correct Answer: 2
Explanation
The chronyd service daemon runs in the background to synchronize the local system clock continuously with remote Network Time Protocol (NTP) servers, ensuring precise timekeeping across enterprise networks. Accurate time synchronization is critical for logging event correlation, scheduling cron jobs, and maintaining cryptographic security certificate validity. While the date command displays or sets the system clock manually, cal outputs calendar grids, and timedatectl queries or configures system time settings and timezones. Utilizing chronyd ensures automated, reliable time accuracy without requiring manual administrative intervention on servers.
Question 59
Which backup and archiving utility copies files to and from archives while preserving metadata and supporting raw data streams?
- cpio
- gzip
- wc
- touch
Correct Answer: 1
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 60
Which command displays the list of currently loaded kernel modules in a Linux system?
- modprobe
- rmmod
- lsmod
- insmod
Correct Answer: 3
Explanation
The lsmod command parses the contents of the /proc/modules file to display a formatted list of all currently loaded Linux kernel modules, showing module names, memory sizes, and dependency linkage counts. This utility is essential for verifying whether hardware drivers or filesystem modules are active in the kernel. Conversely, modprobe adds or removes modules with automatic dependency resolution, insmod inserts specific module files manually, and rmmod unloads idle modules. Mastering lsmod is a core troubleshooting skill for verifying driver status and diagnosing hardware integration issues on Linux servers.