Pass Your Lpi 101-500 Exam with Correct 246 Questions and Answers [Q71-Q96]

Share

Pass Your Lpi 101-500 Exam with Correct 246 Questions and Answers

Latest [Jun 23, 2023] 2023 Realistic Verified 101-500 Dumps


The exam consists of 60 multiple-choice and fill-in-the-blank questions, and candidates have 90 minutes to complete the exam. The exam is administered by LPI (Linux Professional Institute), a non-profit organization that aims to promote and support the use of Linux in the IT industry. LPI is recognized globally as a leading provider of Linux certification and training.

 

NEW QUESTION # 71
Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt(Inode 525385)?
ln -h a.txt c.txt

  • A. ln c.txt a.txt
  • B. ln a.txt c.txt
  • C. ln -f c.txt a.txt
  • D.
  • E. ln -i 525385 c.txt

Answer: C


NEW QUESTION # 72
Which of the following files are found in the /boot/file system? (Choose two.)

  • A. Linux kernel images
  • B. Bash shell binaries
  • C. Initial ramdisk images
  • D. systemd target and service units
  • E. fsck binaries

Answer: A,D


NEW QUESTION # 73
FILL BLANK
Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
nice


NEW QUESTION # 74
Which chown command changes the ownership to dave and the group to staffon a file named data.txt?
chown dave/staff data.txt

  • A. chown dave+staff data.txt
  • B.
  • C. chown dave:staff data.txt
  • D. chown --user dave --group staff data.txt
  • E. chown -u dave -g staff data.txt

Answer: B


NEW QUESTION # 75
Which of the following commands are valid in the GRUB 2 configuration file? (Choose two.) menuentry

  • A. pxe-ifconfig
  • B. insmod
  • C. uefi
  • D.
  • E. kpartx

Answer: C,E


NEW QUESTION # 76
Which file from the /proc file system contains a list of all currently mounted devices?
(Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
mounts


NEW QUESTION # 77
Which of the following signals is sent to a process when the key combination Ctrl+C is pressed on the keyboard?

  • A. SIGINT
  • B. SIGSTOP
  • C. SIGCONT
  • D. SIGTERM
  • E. SIGKILL

Answer: A

Explanation:
Explanation/Reference:


NEW QUESTION # 78
What is the effect of the -voption for the grepcommand?

  • A. It enables color to highlight matching parts.
  • B. It shows the command's version information.
  • C. It outputs all lines and prefixes matching lines with a+.
  • D. It only outputs non-matching lines.
  • E. It changes the output order showing the last matching line first.

Answer: D


NEW QUESTION # 79
Which of the following commands displays the path to the executable file that would be executed when the command foois invoked?

  • A. whatis foo
  • B. lsattr foo
  • C. apropos foo
  • D. locate foo
  • E. which foo

Answer: E


NEW QUESTION # 80
Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

  • A. info
  • B. arch
  • C. uname
  • D. lspci
  • E. sysinfo

Answer: C


NEW QUESTION # 81
Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.)

Answer:

Explanation:
interrupts


NEW QUESTION # 82
A user accidentally created the subdirectory \dirin his home directory. Which of the following commands will remote that directory?

  • A. rmdir ~/'dir'
  • B. rmdir '~/\dir'
  • C. rmdir "~/\dir"
  • D. rmdir ~/\dir
  • E. rmdir ~/\\dir

Answer: D


NEW QUESTION # 83
Which of the following files, located in a user's home directory, contains the Bash history?

  • A. bash_histfile
  • B. .history_bash
  • C. history
  • D. .bash_history
  • E. bashrc_history

Answer: D


NEW QUESTION # 84
What is the purpose of the xargscommand?

  • A. It repeats the execution of a command using different parameters for each invocation.
  • B. It passes arguments to an X server.
  • C. It allows specifying long options (like --help) for commands that normally only accept short options (like - h)
  • D. It reads standard input and builds up commands to execute.
  • E. It asks a question, graphically, and returns the answer to the shell.

Answer: D


NEW QUESTION # 85
How is a symbolic link called bar.conf pointing to foo.conf created?

  • A. ln -s foo.conf bar.conf
  • B. ln -s bar.conf foo.conf
  • C. ln foo.conf bar.conf
  • D. ln bar.conffoo.conf

Answer: A


NEW QUESTION # 86
Which wildcards will match the following filenames? (Choose two.)

  • A. ttyS[1-5]
  • B. tty?[0-5]
  • C. ttyS0
  • D. tty[A-Z][012]
  • E. tty[Ss][02]
  • F. ttyS1
  • G. ttyS2
  • H. tty*2

Answer: A,F


NEW QUESTION # 87
A yum repository can declare sets of related packages. Which yumcommand installs all packages belonging to the group admintools?
yum pkgsel --install admintools

  • A. yum taskinstall admintools
  • B. yum install admintools/*
  • C. yum groupinstall admintools
  • D. yum collection install admintools
  • E.

Answer: A


NEW QUESTION # 88
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?

  • A. file /tmp/myfile.txt
  • B. touch/tmp/myfile.txt
  • C. sed -ie "s/1/2/" /tmp/myfile.txt
  • D. echo "Hello" >/tmp/myfile.txt
  • E. echo -n "Hello" >>/tmp/myfile.txt

Answer: A


NEW QUESTION # 89
Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
ldd


NEW QUESTION # 90
A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

  • A. Using lsmod --remove --autocleanwithout specifying the name of a specific module
  • B. Deleting the kernel module's directory from the file system and recompiling the kernel, including its modules
  • C. Using modinfo -kfollowed by the name of the offending module
  • D. Adding a blacklistline including the name of the offending module to the file /etc/modprobe.d/ blacklist.conf
  • E. Using modprobe -rfollowed by the name of the offending module

Answer: D


NEW QUESTION # 91
Where does the BIOS search for a bootloader?

  • A. On all connected storage media regardless of the boot device order.
  • B. On all connected storage media in the defined boot device order.
  • C. Only on hard disk drives in the defined boot device order.
  • D. The BIOS is not responsible to search for a valid bootloader.
  • E. Only on the last added storage media.

Answer: B


NEW QUESTION # 92
Which command reads and displays the current contents of the Kernel Ring Buffer on the command line?
(Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
dmesg


NEW QUESTION # 93
Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?

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

Answer: B


NEW QUESTION # 94
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

  • A. myapp | cat > file1.log
  • B. myapp | tee file1.log
  • C. tee myapp file1.log
  • D. myapp 0>&1 | cat > file1.log
  • E. cat < myapp | cat > file1.log

Answer: B


NEW QUESTION # 95
An administrator has issued the following command:
grub-install --root-directory=/custom-grub /dev/sda
In which directory will new configuration files be found? (Provide the full directory path only without the filename)

Answer:

Explanation:
/custom-grub/boot/grub/, /custom-grub/boot/grub


NEW QUESTION # 96
......

Get 2023 Updated Free Lpi 101-500 Exam Questions and Answer: https://pass4sure.examcost.com/101-500-practice-exam.html