{"id":18644,"date":"2026-09-22T08:58:41","date_gmt":"2026-09-22T08:58:41","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=18644"},"modified":"2026-09-22T08:58:41","modified_gmt":"2026-09-22T08:58:41","slug":"lpi-101-500-practice-test-questions-and-exam-dumps-part-20-q381-400","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/lpi-101-500-practice-test-questions-and-exam-dumps-part-20-q381-400\/","title":{"rendered":"LPI 101-500 Practice Test Questions and Exam Dumps Part 20 Q381-400"},"content":{"rendered":"<p><b>View Full<\/b> <a href=\"https:\/\/www.examlabs.com\/101-500-exam-dumps\"><b>LPI 101-500<\/b><b> Exam Dumps<\/b><\/a><b> and Practice Test Dumps<\/b><\/p>\n<p>&nbsp;<\/p>\n<p><b>Question: 381. Which command is commonly used to create a compressed gzip archive with <\/b><b>tar<\/b><b>?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">tar -xf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">tar -tf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">tar -xzf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">tar -czf archive.tar.gz files\/<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. tar -czf archive.tar.gz files\/<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">tar -czf<\/span><span style=\"font-weight: 400;\"> command creates a tar archive and compresses it using gzip. The <\/span><span style=\"font-weight: 400;\">c<\/span><span style=\"font-weight: 400;\"> option tells <\/span><span style=\"font-weight: 400;\">tar<\/span><span style=\"font-weight: 400;\"> to create an archive, <\/span><span style=\"font-weight: 400;\">z<\/span><span style=\"font-weight: 400;\"> enables gzip compression, and <\/span><span style=\"font-weight: 400;\">f<\/span><span style=\"font-weight: 400;\"> specifies the archive filename. For example, <\/span><span style=\"font-weight: 400;\">tar -czf backup.tar.gz documents\/<\/span><span style=\"font-weight: 400;\"> creates a gzip-compressed archive containing the <\/span><span style=\"font-weight: 400;\">documents<\/span><span style=\"font-weight: 400;\"> directory. The extraction form normally uses <\/span><span style=\"font-weight: 400;\">x<\/span><span style=\"font-weight: 400;\"> instead of <\/span><span style=\"font-weight: 400;\">c<\/span><span style=\"font-weight: 400;\">. The <\/span><span style=\"font-weight: 400;\">t<\/span><span style=\"font-weight: 400;\"> option lists archive contents without extracting them. Understanding these options is useful for Linux administration because tar archives are widely used for backups, software distribution, and transferring collections of files.<\/span><\/p>\n<p><b>Question: 382. Which command extracts a gzip-compressed tar archive?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">tar -xzf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">tar -czf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">tar -tzf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">tar -rzf archive.tar.gz<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. tar -xzf archive.tar.gz<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">tar -xzf<\/span><span style=\"font-weight: 400;\"> command extracts the contents of a gzip-compressed tar archive. The <\/span><span style=\"font-weight: 400;\">x<\/span><span style=\"font-weight: 400;\"> option tells <\/span><span style=\"font-weight: 400;\">tar<\/span><span style=\"font-weight: 400;\"> to extract files, <\/span><span style=\"font-weight: 400;\">z<\/span><span style=\"font-weight: 400;\"> specifies gzip decompression, and <\/span><span style=\"font-weight: 400;\">f<\/span><span style=\"font-weight: 400;\"> identifies the archive file. A <\/span><span style=\"font-weight: 400;\">.tar.gz<\/span><span style=\"font-weight: 400;\"> or <\/span><span style=\"font-weight: 400;\">.tgz<\/span><span style=\"font-weight: 400;\"> file commonly uses this format. The <\/span><span style=\"font-weight: 400;\">c<\/span><span style=\"font-weight: 400;\"> option is used to create an archive rather than extract one, while <\/span><span style=\"font-weight: 400;\">t<\/span><span style=\"font-weight: 400;\"> lists its contents. Administrators should inspect archives before extracting them when working with untrusted content because an archive can contain unexpected paths or files.<\/span><\/p>\n<p><b>Question: 383. Which command lists the contents of a gzip-compressed tar archive without extracting it?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">tar -xzf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">tar -czf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">tar -tzf archive.tar.gz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">tar -uzf archive.tar.gz<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. tar -tzf archive.tar.gz<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">tar -tzf<\/span><span style=\"font-weight: 400;\"> command lists the contents of a gzip-compressed tar archive without extracting the files. The <\/span><span style=\"font-weight: 400;\">t<\/span><span style=\"font-weight: 400;\"> option requests a table of contents, <\/span><span style=\"font-weight: 400;\">z<\/span><span style=\"font-weight: 400;\"> indicates gzip compression, and <\/span><span style=\"font-weight: 400;\">f<\/span><span style=\"font-weight: 400;\"> specifies the archive file. This is useful when an administrator wants to inspect what an archive contains before extracting it. <\/span><span style=\"font-weight: 400;\">tar -xzf<\/span><span style=\"font-weight: 400;\"> performs extraction, while <\/span><span style=\"font-weight: 400;\">tar -czf<\/span><span style=\"font-weight: 400;\"> creates a new compressed archive. Reviewing archive contents first can help identify expected files, directory structures, and potentially unwanted entries before any data is written to the filesystem.<\/span><\/p>\n<p><b>Question: 384. Which command creates a compressed file using the <\/b><b>bzip2<\/b><b> compression format?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">bzcat<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">bzip2<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">bunzip2<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">zip2<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. bzip2<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">bzip2<\/span><span style=\"font-weight: 400;\"> command compresses files using the bzip2 compression algorithm. When applied to a regular file, it commonly creates a compressed version with a <\/span><span style=\"font-weight: 400;\">.bz2<\/span><span style=\"font-weight: 400;\"> suffix and removes the original file unless an appropriate option is used. The related <\/span><span style=\"font-weight: 400;\">bunzip2<\/span><span style=\"font-weight: 400;\"> command decompresses bzip2 files, while <\/span><span style=\"font-weight: 400;\">bzcat<\/span><span style=\"font-weight: 400;\"> can write decompressed content to standard output. bzip2 is a compression utility rather than an archive format by itself. Multiple files are often combined into a tar archive first and then compressed, producing formats such as <\/span><span style=\"font-weight: 400;\">.tar.bz2<\/span><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><b>Question: 385. Which command decompresses an <\/b><b>.xz<\/b><b> file?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">xzcat<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">unxz<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">xzip<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">decompress-xz<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. decompress-xz<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard utility for decompressing an <\/span><span style=\"font-weight: 400;\">.xz<\/span><span style=\"font-weight: 400;\"> file is <\/span><span style=\"font-weight: 400;\">unxz<\/span><span style=\"font-weight: 400;\">, while <\/span><span style=\"font-weight: 400;\">xz -d<\/span><span style=\"font-weight: 400;\"> can also perform decompression. <\/span><span style=\"font-weight: 400;\">xzcat<\/span><span style=\"font-weight: 400;\"> is useful when the decompressed data should be written directly to standard output instead of creating a separate output file. The command <\/span><span style=\"font-weight: 400;\">decompress-xz<\/span><span style=\"font-weight: 400;\"> is not a standard Linux utility. XZ compression is commonly encountered with archives such as <\/span><span style=\"font-weight: 400;\">.tar.xz<\/span><span style=\"font-weight: 400;\">, where <\/span><span style=\"font-weight: 400;\">tar<\/span><span style=\"font-weight: 400;\"> can handle the compression through an appropriate option. Understanding the distinction between compression utilities and archive utilities is important when working with Linux distribution packages and backups.<\/span><\/p>\n<p><b>Question: 386. Which command can copy raw data from an input source to an output destination using specified block sizes?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">dd<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">rawcopy<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">cpio<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">blockcp<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. dd<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">dd<\/span><span style=\"font-weight: 400;\"> command is designed for copying and converting data at a low level using specified input and output sources and configurable block sizes. It can be used for tasks such as copying disk images, creating files filled with specific data, or converting data between formats. Because <\/span><span style=\"font-weight: 400;\">dd<\/span><span style=\"font-weight: 400;\"> can overwrite devices or files directly, it must be used carefully: reversing the input and output paths can destroy data. Unlike ordinary file-copying commands, <\/span><span style=\"font-weight: 400;\">dd<\/span><span style=\"font-weight: 400;\"> provides explicit control over block sizes and data conversion operations, making it useful for specialized system-administration tasks.<\/span><\/p>\n<p><b>Question: 387. Which command displays information about loaded kernel modules?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">modinfo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">lsmod<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">modules<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">kmod-list<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. lsmod<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">lsmod<\/span><span style=\"font-weight: 400;\"> command displays information about currently loaded Linux kernel modules. Its output commonly includes the module name, size, and information about modules that depend on it. Kernel modules provide functionality such as hardware drivers and other dynamically loadable kernel components. <\/span><span style=\"font-weight: 400;\">modinfo<\/span><span style=\"font-weight: 400;\"> instead displays detailed information about a particular module, while <\/span><span style=\"font-weight: 400;\">modprobe<\/span><span style=\"font-weight: 400;\"> is used to load or remove modules while handling dependencies. Examining loaded modules can help administrators diagnose hardware-driver issues and understand which optional kernel functionality is currently active.<\/span><\/p>\n<p><b>Question: 388. Which command can display detailed information about a particular kernel module?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">moduleinfo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">lsmod -d<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">modinfo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">kinfo<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. kinfo<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard Linux command for displaying detailed information about a particular kernel module is <\/span><span style=\"font-weight: 400;\">modinfo<\/span><span style=\"font-weight: 400;\">. The command can show information such as the module filename, description, author, license, supported aliases, and parameters, depending on the module. <\/span><span style=\"font-weight: 400;\">lsmod<\/span><span style=\"font-weight: 400;\"> instead provides a list of currently loaded modules. <\/span><span style=\"font-weight: 400;\">modprobe<\/span><span style=\"font-weight: 400;\"> is primarily used to load or remove modules while resolving dependencies. Although module-management utilities are often related, each serves a different purpose. <\/span><span style=\"font-weight: 400;\">modinfo<\/span><span style=\"font-weight: 400;\"> is especially useful when an administrator needs to inspect a driver before loading it or investigate available module parameters.<\/span><\/p>\n<p><b>Question: 389. Which command is commonly used to load a kernel module along with its dependencies?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">modprobe<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">loadmod<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">insmod-all<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">moduleload<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. insmod-all<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard command for loading a kernel module while handling its dependencies is <\/span><span style=\"font-weight: 400;\">modprobe<\/span><span style=\"font-weight: 400;\">. It can locate the requested module using the system&#8217;s module configuration and load required dependent modules as appropriate. <\/span><span style=\"font-weight: 400;\">insmod<\/span><span style=\"font-weight: 400;\"> can insert a specific module but does not provide the same automatic dependency handling. Because kernel modules directly affect the running kernel, module operations generally require appropriate privileges. When troubleshooting hardware support, administrators can combine commands such as <\/span><span style=\"font-weight: 400;\">lsmod<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">modinfo<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">modprobe<\/span><span style=\"font-weight: 400;\"> to inspect, understand, and manage kernel modules.<\/span><\/p>\n<p><b>Question: 390. Which command displays information about PCI devices installed or detected on a Linux system?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">pciinfo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">lspci<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">pcilist<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">showpci<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. pciinfo<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard Linux utility for listing PCI devices is <\/span><span style=\"font-weight: 400;\">lspci<\/span><span style=\"font-weight: 400;\">. It can display devices connected through the PCI bus, including components such as network adapters, storage controllers, graphics hardware, and other expansion devices. Depending on the options and installed hardware database, <\/span><span style=\"font-weight: 400;\">lspci<\/span><span style=\"font-weight: 400;\"> can provide vendor, device, bus, and driver-related information. The command is particularly useful when diagnosing hardware detection or driver problems. Although tools with similar names may exist on specific systems, <\/span><span style=\"font-weight: 400;\">lspci<\/span><span style=\"font-weight: 400;\"> is the standard command associated with PCI device enumeration on Linux.<\/span><\/p>\n<p><b>Question: 391. Which command displays USB devices detected by the Linux system?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">usbshow<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">lsusb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">usbinfo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">listusb<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. lsusb<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">lsusb<\/span><span style=\"font-weight: 400;\"> command lists USB devices detected by the Linux system. Its output can include USB buses, device numbers, vendor identifiers, and product identifiers. This is useful when troubleshooting USB hardware such as keyboards, storage devices, cameras, or other peripherals. Additional options can provide more detailed information about individual devices. <\/span><span style=\"font-weight: 400;\">lsusb<\/span><span style=\"font-weight: 400;\"> is conceptually similar to <\/span><span style=\"font-weight: 400;\">lspci<\/span><span style=\"font-weight: 400;\">, but it focuses on the USB bus rather than PCI devices. Administrators can use it to confirm whether the operating system recognizes a connected USB device before investigating driver or application-level problems.<\/span><\/p>\n<p><b>Question: 392. Which command synchronizes filesystem buffers with storage devices?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">flush<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">sync<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">commit<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">writeback<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. commit<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard Linux command for requesting that buffered filesystem data be written to the underlying storage devices is <\/span><span style=\"font-weight: 400;\">sync<\/span><span style=\"font-weight: 400;\">. The command is useful before operations such as shutting down a system or disconnecting storage, because it requests that pending filesystem writes be flushed. Modern operating systems normally manage write caching automatically, so users do not need to run <\/span><span style=\"font-weight: 400;\">sync<\/span><span style=\"font-weight: 400;\"> after every write. However, it can be useful during system administration, storage maintenance, and scripts where explicitly requesting synchronization is appropriate. The other terms are not the standard command for this operation.<\/span><\/p>\n<p><b>Question: 393. Which command can create a CPIO archive from a list of files received through standard input?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">cpio<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">archive<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">pack<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">cpio-archive<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. cpio-archive<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard utility for creating and extracting CPIO archives is <\/span><span style=\"font-weight: 400;\">cpio<\/span><span style=\"font-weight: 400;\">. It commonly reads a list of pathnames from standard input, allowing it to be combined with commands such as <\/span><span style=\"font-weight: 400;\">find<\/span><span style=\"font-weight: 400;\">. For example, a pipeline can provide selected pathnames to <\/span><span style=\"font-weight: 400;\">cpio<\/span><span style=\"font-weight: 400;\"> for archival. CPIO has historically been used in Unix and Linux environments and is also associated with certain boot and packaging workflows. It differs from <\/span><span style=\"font-weight: 400;\">tar<\/span><span style=\"font-weight: 400;\">, which has its own archive format and command syntax. Understanding multiple archive utilities is useful for Linux administration and compatibility with existing system archives.<\/span><\/p>\n<p><b>Question: 394. Which package format is natively associated with Debian-based package management?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">.rpm<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">.deb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">.pkg<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">.tgz<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. .deb<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">.deb<\/span><span style=\"font-weight: 400;\"> package format is associated with Debian and Debian-derived Linux distributions. Debian package management tools such as <\/span><span style=\"font-weight: 400;\">dpkg<\/span><span style=\"font-weight: 400;\"> and higher-level tools such as APT work with this package ecosystem. RPM-based distributions use the <\/span><span style=\"font-weight: 400;\">.rpm<\/span><span style=\"font-weight: 400;\"> format instead. A <\/span><span style=\"font-weight: 400;\">.tgz<\/span><span style=\"font-weight: 400;\"> file is generally a gzip-compressed tar archive rather than a native Debian package format. Package formats contain software files and metadata needed by the package-management system. Understanding package formats is important when installing software because packages built for one distribution family may not be directly installable on another.<\/span><\/p>\n<p><b>Question: 395. Which command directly installs a local Debian package file?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">rpm -i package.deb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">apt-file package.deb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">dpkg -i package.deb<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">debinstall package.deb<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3. dpkg -i package.deb<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">dpkg -i<\/span><span style=\"font-weight: 400;\"> command installs a specified local Debian package file. <\/span><span style=\"font-weight: 400;\">dpkg<\/span><span style=\"font-weight: 400;\"> is the low-level package-management tool used by Debian-based systems. It installs and manages individual <\/span><span style=\"font-weight: 400;\">.deb<\/span><span style=\"font-weight: 400;\"> packages but does not provide the same automatic dependency-resolution behavior associated with higher-level tools such as APT. If a package has missing dependencies, additional package-management steps may be required. The <\/span><span style=\"font-weight: 400;\">rpm<\/span><span style=\"font-weight: 400;\"> command is associated with RPM packages, not Debian packages. Administrators should ensure that a package is appropriate for the operating system and architecture before installing it.<\/span><\/p>\n<p><b>Question: 396. Which command can query information about an installed RPM package?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">rpm -q<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">rpm -i<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">rpm -e<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">rpm -c<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. rpm -q<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">rpm -q<\/span><span style=\"font-weight: 400;\"> option queries the RPM package database. It can be used to determine whether a package is installed and, depending on additional options, retrieve package information, file lists, or other metadata. The <\/span><span style=\"font-weight: 400;\">-i<\/span><span style=\"font-weight: 400;\"> option is associated with installing an RPM package, while <\/span><span style=\"font-weight: 400;\">-e<\/span><span style=\"font-weight: 400;\"> is used for erasing or removing one. RPM-based distributions maintain package metadata that allows administrators to inspect installed software without manually searching the filesystem. Querying the package database is useful when troubleshooting software versions, ownership of installed files, and package installation status.<\/span><\/p>\n<p><b>Question: 397. Which command can display the machine architecture reported by the system?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">arch<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">machine<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">cpuarch<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">platform<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 4. platform<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The standard <\/span><span style=\"font-weight: 400;\">arch<\/span><span style=\"font-weight: 400;\"> command displays the machine architecture, typically producing a value such as <\/span><span style=\"font-weight: 400;\">x86_64<\/span><span style=\"font-weight: 400;\"> on a 64-bit x86 system. This information can help determine whether software packages or binaries are appropriate for the current system architecture. The <\/span><span style=\"font-weight: 400;\">uname -m<\/span><span style=\"font-weight: 400;\"> command can provide similar architecture information. Architecture identification is particularly relevant when installing compiled software, selecting packages, or troubleshooting binaries that cannot execute on a particular platform. The exact architecture string depends on the system&#8217;s hardware and operating environment.<\/span><\/p>\n<p><b>Question: 398. Which command displays the contents of a compressed gzip file to standard output without creating a decompressed file?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">gzip -l<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">gunzip -c<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">gzip -d -f<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">ungzip<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. gunzip -c<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">gunzip -c<\/span><span style=\"font-weight: 400;\"> command decompresses gzip data and writes the resulting content to standard output rather than replacing the compressed file with a decompressed file. This is especially useful in pipelines, where compressed content can be processed directly by another command. For example, a compressed text file can be decompressed and passed directly to <\/span><span style=\"font-weight: 400;\">grep<\/span><span style=\"font-weight: 400;\"> or another text-processing utility. The <\/span><span style=\"font-weight: 400;\">-l<\/span><span style=\"font-weight: 400;\"> option of <\/span><span style=\"font-weight: 400;\">gzip<\/span><span style=\"font-weight: 400;\"> is used for listing information about compressed files, while ordinary decompression without <\/span><span style=\"font-weight: 400;\">-c<\/span><span style=\"font-weight: 400;\"> generally creates an uncompressed output file.<\/span><\/p>\n<p><b>Question: 399. Which command can display information about the CPU architecture and processor details from the Linux virtual filesystem?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">cat \/proc\/cpuinfo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">cat \/etc\/cpu<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">cpuinfo &#8211;show<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">showcpu \/proc<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1. cat \/proc\/cpuinfo<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">\/proc\/cpuinfo<\/span><span style=\"font-weight: 400;\"> virtual file provides information about processors recognized by the Linux kernel. Running <\/span><span style=\"font-weight: 400;\">cat \/proc\/cpuinfo<\/span><span style=\"font-weight: 400;\"> can display details such as processor identifiers, model information, supported features, and other architecture-specific data. The <\/span><span style=\"font-weight: 400;\">\/proc<\/span><span style=\"font-weight: 400;\"> filesystem is a virtual interface through which the kernel exposes process and system information; its contents are generated dynamically rather than stored as ordinary files on disk. The exact fields in <\/span><span style=\"font-weight: 400;\">\/proc\/cpuinfo<\/span><span style=\"font-weight: 400;\"> vary between processor architectures. This information can be useful when investigating hardware capabilities and software compatibility.<\/span><\/p>\n<p><b>Question: 400. Which command can display the kernel&#8217;s currently recognized block devices and their relationships?<\/b><\/p>\n<ol>\n<li><b><\/b> <span style=\"font-weight: 400;\">blkshow<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>2.<\/b> <span style=\"font-weight: 400;\">lsblk<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>3.<\/b> <span style=\"font-weight: 400;\">blockdevs<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>4.<\/b> <span style=\"font-weight: 400;\">showblk<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2. lsblk<\/b><\/p>\n<p><b>Explanation:<\/b><\/p>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">lsblk<\/span><span style=\"font-weight: 400;\"> command lists block devices recognized by the Linux system and can display their hierarchical relationships. It commonly shows disks, partitions, logical volumes, and other block-device information in a tree-like format. This makes it useful when identifying storage devices and understanding how partitions or logical volumes relate to physical disks. Additional options can display filesystem information, UUIDs, labels, and other attributes. <\/span><span style=\"font-weight: 400;\">lsblk<\/span><span style=\"font-weight: 400;\"> is generally preferable to guessing device names because device naming can vary between systems. It is a valuable diagnostic tool during storage administration and installation tasks.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full LPI 101-500 Exam Dumps and Practice Test Dumps &nbsp; Question: 381. Which command is commonly used to create a compressed gzip archive with tar? tar -xf archive.tar.gz 2. tar -tf archive.tar.gz 3. tar -xzf archive.tar.gz 4. tar -czf archive.tar.gz files\/ Correct Answer: 4. tar -czf archive.tar.gz files\/ Explanation: The tar -czf command creates [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1648,1647],"tags":[],"_links":{"self":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18644"}],"collection":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/comments?post=18644"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18644\/revisions"}],"predecessor-version":[{"id":18645,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/18644\/revisions\/18645"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=18644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=18644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=18644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}