[2024] Use Real Lpi Dumps - 100% Free 101-500 Exam Dumps [Q33-Q54] | TestBraindump

[2024] Use Real Lpi Dumps - 100% Free 101-500 Exam Dumps [Q33-Q54]

Share

[2024] Use Real Lpi Dumps - 100% Free 101-500 Exam Dumps

Realistic 101-500 Dumps Latest Lpi Practice Tests Dumps


Prerequisites for 101-500 exam

There are no prerequisites for this certification


For more info visit:

LPIC1 exam information LPIC1 101-500 exam objectives

 

NEW QUESTION # 33
Which of the following commands displays the contents of a gzip compressed tar archive?

  • A. tar ztf archive.tgz
  • B. gzip -d archive.tgz | tar tvf -
  • C. tar cf archive.tgz
  • D. gzip archive.tgz | tar xvf -

Answer: A

Explanation:
Explanation
The command that displays the contents of a gzip compressed tar archive is tar ztf archive.tgz. This command uses the following options:
-z: Tells tar to read or write archives through gzip, allowing it to work on compressed files directly. -t: Lists the contents of an archive without extracting it. -f archive.tgz: Specifies the name of the archive file.
The output of this command will show the names of the files and directories stored in the archive, one per line.
For example, if the archive contains three files named file1, file2, and file3, the output will be:
file1 file2 file3
The other commands are incorrect for the following reasons:
* gzip archive.tgz | tar xvf -: This command will decompress the archive using gzip and pipe it to tar, which will extract the files to the current directory. The - option tells tar to read the archive from the standard input. This command does not display the contents of the archive, but rather extracts them.
* gzip -d archive.tgz | tar tvf -: This command is similar to the previous one, except that it uses the -d option for gzip to decompress the archive instead of compressing it, and the -t option for tar to list the contents instead of extracting them. However, this command is redundant and inefficient, as tar can handle compressed archives directly with the -z option. Also, the -d option for gzip will delete the original archive file after decompression, which may not be desirable.
* tar cf archive.tgz: This command will create a new archive named archive.tgz from the files and directories given as arguments. However, this command does not use the -z option, so the archive will not be compressed with gzip. Also, this command does not display the contents of the archive, but rather creates it.


NEW QUESTION # 34
Which of the following commands lists the dependencies of a given dpkg package?

  • A. apt-cache depends-onpackage
  • B. apt-cache requires package
  • C. apt-cache depends package
  • D. apt-cache dependencies package

Answer: C

Explanation:
Explanation
The apt-cache command is used to query the APT cache for information about packages. The depends option shows a listing of each dependency a package has and all the possible other packages that can fulfill that dependency. For example, apt-cache depends ubuntu-restricted-extras will show the dependencies of the ubuntu-restricted-extras package. The other options are not valid for the apt-cache command. References:
* How to Check Dependencies of a Package in Ubuntu/Debian-based Linux Distributions
* Check DEB package dependencies on Ubuntu / Debian


NEW QUESTION # 35
Which of the following apt-getsubcommands installs the newest versions of all currently installed packages?
auto-update

  • A.
  • B. update
  • C. install
  • D. dist-upgrade
  • E. full-upgrade

Answer: E


NEW QUESTION # 36
In compliance with the FHS, in which of the directories are man pages found?

  • A. /usr/doc/
  • B. /usr/share/man
  • C. /opt/man
  • D. /var/man
  • E. /var/pkg/man

Answer: B


NEW QUESTION # 37
Which of the following commands lists the dependencies of the RPM package file foo.rpm?

  • A. rpm -R foo.rpm
  • B. rpm -dep foo
  • C. rpm -pD foo
  • D. rpm -qpR foo.rpm
  • E. rpm -ld foo.rpm

Answer: D


NEW QUESTION # 38
Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)

  • A. r[oOoO]t-can-do*.txt
  • B. root*can?do-this.{txt,odt}
  • C. root*can*do??this.txt
  • D. root***{can,may}-do-this.[tT][xX][tT]
  • E. {root,user,admin}-can-??-this.txt

Answer: B,D,E

Explanation:
Explanation
The examples for Bash file globbing that match a file named root-can-do-this.txt are:
* root*can?do-this.{txt,odt}: This matches any file that starts with root, followed by any number of characters, followed by can, followed by any single character, followed by do-this, followed by either
.txt or .odt extension.
* {root,user,admin}-can-??-this.txt: This matches any file that starts with either root, user or admin, followed by a hyphen, followed by can, followed by any two characters, followed by -this, followed by
.txt extension.
* root***{can,may}-do-this.[tT][xX][tT]: This matches any file that starts with root, followed by any
* number of characters, followed by either can or may, followed by -do-this, followed by any combination of t, T, x or X for the extension.
The examples that do not match are:
* r[oOoO]t-can-do*.txt: This matches any file that starts with r, followed by either o, O, o or O, followed by t-can-do, followed by any number of characters, followed by .txt extension. This does not match because the file name has only one o after r.
* rootcando??this.txt: This matches any file that starts with root, followed by any number of characters, followed by can, followed by any number of characters, followed by do, followed by any two characters, followed by this, followed by .txt extension. This does not match because the file name has a hyphen between do and this. References:
* LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective
103.3: Perform basic file management
* LPI Linux Essentials Study Guide, Chapter 3: Working on the Command Line, Section 3.3: Globbing, Page 58


NEW QUESTION # 39
What does the command mount --bind do?

  • A. It mounts all available filesystems to the current directory
  • B. It mounts all file systems listed in /etc/fstab which have the option userbind set
  • C. It mounts all user mountable filesystems to the user's home directory
  • D. It permanently mounts a regular file to a directory
  • E. It makes the contents of one directory available in another directory

Answer: E

Explanation:
Explanation
The mount --bind command is used to create a bind mount, which is an alternate view of a directory tree. A bind mount takes an existing directory tree and replicates it under a different point. The directories and files in the bind mount are the same as the original. Any modification on one side is immediately reflected on the other side, since the two views show the same data. For example, after issuing the command:
mount --bind /some/where /else/where
the directories /some/where and /else/where have the same content, which is the content of /some/where. A bind mount can be useful for accessing hidden files, creating chroot environments, or changing the permissions or ownership of files.
The other options are not correct because:
* B. It mounts all available filesystems to the current directory: This is not what the mount --bind command does. The mount --bind command only creates a bind mount for a single directory tree. To mount all available filesystems to the current directory, one would need to use the mount -a command with the -t option and specify the current directory as the target.
* C. It mounts all user mountable filesystems to the user's home directory: This is not what the mount
--bind command does. The mount --bind command only creates a bind mount for a single directory tree.
To mount all user mountable filesystems to the user's home directory, one would need to use the mount
-a command with the -t option and specify the user's home directory as the target. However, this is not a common or recommended practice, as it may cause conflicts or errors with the existing files and directories in the user's home directory.
* D. It mounts all file systems listed in /etc/fstab which have the option userbind set: This is not what the mount --bind command does. The mount --bind command only creates a bind mount for a single directory tree. To mount all file systems listed in /etc/fstab which have the option userbind set, one would need to use the mount -a command with the -O option and specify userbind as the option.
However, this is not a standard or supported option for the mount command or the /etc/fstab file, and it may not work as expected.
* E. It permanently mounts a regular file to a directory: This is not what the mount --bind command does.
The mount --bind command only creates a bind mount for a directory tree, not a regular file. To mount a regular file to a directory, one would need to use the mount command with the -o loop option and specify the file and the directory as the source and the target. However, this is only possible for files that contain a valid filesystem image, such as an ISO file or a disk image. A bind mount is not permanent, and it can be unmounted with the umount command.
References:
* Understanding Bind Mounts | Baeldung on Linux
* What is a bind mount? - Unix & Linux Stack Exchange
* mount(8) - Linux manual page


NEW QUESTION # 40
Which of the following are valid stream redirection operators within Bash? (Choose two.)

  • A. #>
  • B. 2>&1
  • C. >>>
  • D. %>
  • E. <

Answer: B,E


NEW QUESTION # 41
What does the command mount -a do?

  • A. It ensuresthat all file systems listed with the option auto in /etc/fstab are mounted.
  • B. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
  • C. It shows all mounted file systems that have been automatically mounted.
  • D. It opens an editor with root privileges and loads /etc/fstab for editing.
  • E. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.

Answer: A


NEW QUESTION # 42
Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?

  • A. sed's/bob/Bob/' data
  • B. sed'/bob/Bob' data
  • C. sed's/bob,Bob/' data
  • D. sed'/bob/Bob/' data
  • E. sed's/bob/Bob/g' data

Answer: E

Explanation:
Explanation
The sed command is used to perform various text processing tasks on a file or a stream. The s command is used to substitute a pattern with a replacement. The g flag is used to replace all occurrences of the patternin a line. The / character is used to separate the pattern, the replacement, and the flags. Therefore, the command sed's/bob/Bob/g' data will change all occurrences of the word "bob" in file data to "Bob" and print the result to standard output. The other commands are incorrect because they either use the wrong syntax or do not replace all occurrences of the word "bob". References:
* LPI 101-500 Exam Objectives, Topic 103.7, Weight 4
* LPI Learning Materials, Chapter 3.7, Basic Scripting
* Web Search Results, 1


NEW QUESTION # 43
Which of the following commands redirects the output of lsto standard error?
ls >-1

  • A. ls |error
  • B.
  • C. ls <<ERR
  • D. ls >&2
  • E. ls >>2

Answer: E


NEW QUESTION # 44
Which of the following options must be passed to a filesystem's entry in /etc/fstab in order to mount the file system without root privileges?

  • A. noauto
  • B. auto
  • C. norestrict
  • D. user

Answer: D


NEW QUESTION # 45
Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)

  • A. visible TEST
  • B. declare -x TEST
  • C. export TEST
  • D. export -v TEST
  • E. declare +x TEST

Answer: C


NEW QUESTION # 46
Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
jobs
Explanation
The jobs command displays a list of all background tasks running in the current shell. A background task is a process that is started with the & operator or suspended with Ctrl+Z and resumed with the bg command. The jobs command shows the job number, the status, and the command name of each background task. For example, the following output shows two background tasks: one is running (sleep 10) and one is stopped (ping www.howtogeek.com).
1- Running sleep 10 & 2+ Stopped ping www.howtogeek.com
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.5: Create, monitor and kill processes, Weight: 4, Key Knowledge Areas: Use of jobs, fg and bg commands.
* How to Run and Control Background Processes on Linux, Topic: The jobs Command.


NEW QUESTION # 47
The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh.
What is the usual way to pass this change to the kernel from your boot loader?

  • A. Pass /bin/sh on the kernel parameter line.
  • B. Pass start=/bin/sh on the kernel parameter line.
  • C. Start in runlevel 1.
  • D. Pass init=/bin/sh on the kernel parameter line.

Answer: D


NEW QUESTION # 48
Which of the following statements is correct for a command ending with an &character?

  • A. The command is run in background of the current shell.
  • B. The command's output is redirected to /dev/null.
  • C. The command is run as a direct child of the initprocess.
  • D. The command's input is read from /dev/null.
  • E. The command's output is executed by the shell.

Answer: A


NEW QUESTION # 49
Which command will uninstall a package but leave its configuration files in case the package is re-installed?

  • A. dpkg -L pkgname
  • B. dpkg -r pkgname
  • C. dpkg -P pkgname
  • D. dpkg -s pkgname

Answer: B

Explanation:
Explanation
The dpkg command is used to manage Debian packages on Linux systems. The -r option removes a package but leaves its configuration files in case the package is re-installed. The -P option purges a package and removes its configuration files as well. The -s option shows the status of a package and the -L option lists the files installed by a package. References:
* LPI Linux Essentials, Chapter 6: Managing Software, Section 6.2: Debian Package Management
* LPI Linux Administrator, Exam 101: System Architecture, Topic 102: Linux Installation and Package Management, Objective 102.5: Manage shared libraries
* LPI Linux Engineer, Exam 201: Linux Kernel, Topic 201: System Architecture, Objective 201.1: Kernel Components and Compilation


NEW QUESTION # 50
Which of the following are modes of the vi editor? (Choose two.)

  • A. change mode
  • B. insert mode
  • C. review mode
  • D. command mode
  • E. edit mode

Answer: B,D


NEW QUESTION # 51
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

  • A. tune2fs -d 200 /dev/sda1
  • B. tune2fs -c 200 /dev/sda1
  • C. tune2fs -n 200 /dev/sda1
  • D. tune2fs -i 200 /dev/sda1
  • E. tune2fs --days 200 /dev/sda1

Answer: D

Explanation:
Explanation
The correct command to change the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting is tune2fs -i 200 /dev/sda1. This command sets the interval between two filesystem checks to 200 days. The tune2fs command allows you to view and change various filesystem parameters on Linux ext2, ext3, or ext4 filesystems. The -i option specifies the time interval between checks.
The other options are incorrect because they use the wrong parameters for the tune2fs command. Option A is wrong because the -d option is not supported by the tune2fs command. Option B is wrong because the -c option sets the maximum number of mounts, not days, before a check. Option D is wrong because the -n option is not supported by the tune2fs command. Option E is wrong because the --days option is not supported by the tune2fs command. References:
* [LPI Linux Essentials - 2.2 Mounting, Unmounting Filesystems]
* 15 tune2fs command examples in Linux [Cheat Sheet] - GoLinuxCloud
* Linux tune2fs command With Examples - GeeksforGeeks
* tune2fs command-file system management - Linuxstar
* tune2fs Command Examples - Gianforte School of Computing


NEW QUESTION # 52
A backup software heavily uses hard links between files which have not been changed in between two backup runs. Which benefits are realized due to these hard links? (Choose two.)

  • A. The old backups can be moved to slow backup media, such as tapes, while still serving as hard link target in new backups.
  • B. The backup is guaranteed to be uncharged because a hard linked file cannot be modified after its creation.
  • C. The backup runs faster because hard links are asynchronous operations, postponing the copy operation to a later point in time.
  • D. The backup consumes less space because the hard links point to the same data on disk instead of storing redundant copies.
  • E. The backup runs faster because, instead of copying the data of each file, hard links only change file system meta data.

Answer: A,D


NEW QUESTION # 53
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Answer:

Explanation:
cmdline, /proc/cmdline


NEW QUESTION # 54
......


Lpi 101-500 (LPIC-1 Exam 101, Part 1 of 2, version 5.0) Certification Exam is a globally recognized certification exam that validates the candidate's knowledge and skills related to Linux system administration. LPIC-1 Exam 101, Part 1 of 2, version 5.0 certification exam is suitable for IT professionals who want to establish their credibility and professionalism in the IT industry. 101-500 exam is designed to test the candidate's ability to perform real-world tasks related to Linux system administration. LPIC-1 Exam 101, Part 1 of 2, version 5.0 certification is the first of two exams required to obtain the LPIC-1 certification, which is widely recognized in the IT industry.

 

101-500 Dumps PDF - 101-500 Real Exam Questions Answers: https://actualtests.testbraindump.com/101-500-exam-prep.html