101-500 Exam - LPIC-1 Exam 101 - Part 1 of 2 - version 5.0

certleader.com

It is more faster and easier to pass the LPI 101-500 exam by using Highest Quality LPI LPIC-1 Exam 101 - Part 1 of 2 - version 5.0 questuins and answers. Immediate access to the Up to date 101-500 Exam and find the same core area 101-500 questions with professionally verified answers, then PASS your exam with a high score now.

Online 101-500 free questions and answers of New Version:

NEW QUESTION 1

When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

  • A. –rep-space
  • B. -printnul
  • C. -nospace
  • D. –ignore-space
  • E. –print0

Answer: E

NEW QUESTION 2

Which of the following commands lists all currently installed packages when using RPM package management?

  • A. yum --query --all
  • B. yum --list --installed
  • C. rpm --query --all
  • D. rpm --list –installed

Answer: C

NEW QUESTION 3

Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)

  • A. Some parts of the boot process can be configured from the BIOS
  • B. Linux does not require the assistance of the BIOS to boot a computer
  • C. The BIOS boot process starts only if secondary storage, such as the hard disk, is functional
  • D. The BIOS initiates the boot process after turning the computer on
  • E. The BIOS is started by loading hardware drivers from secondary storage, such as the hard disk

Answer: AD

NEW QUESTION 4

Which of the following commands shows the definition of a given shell command?

  • A. where
  • B. stat
  • C. type
  • D. case

Answer: C

NEW QUESTION 5

When running the command
sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?

  • A. The file order is incorrec
  • B. The destination file must be mentioned before the command to ensure redirection.
  • C. The command sed did not match anything in that file therefore the output is empty.
  • D. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens itfor reading.
  • E. Redirection for shell commands do not work using the > characte
  • F. It only works using the | character instead.

Answer: C

NEW QUESTION 6

Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
du

NEW QUESTION 7

Which of the following vi commands deletes two lines, the current and the following line?

  • A. d2
  • B. 2d
  • C. 2dd
  • D. dd2
  • E. de12

Answer: C

NEW QUESTION 8

Which command will display messages from the kernel that were output during the normal boot sequence? dmesg, /bin/dmesg

  • A. Mastered
  • B. Not Mastered

Answer: A

NEW QUESTION 9

Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
/usr/local/bin/

NEW QUESTION 10

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

  • A. :r
  • B. :n
  • C. :w
  • D. :e

Answer: D

NEW QUESTION 11

In Bash, inserting 1>&2 after a command redirects

  • A. standard error to standard input.
  • B. standard input to standard error.
  • C. standard output to standard error.
  • D. standard error to standard output.
  • E. standard output to standard input.

Answer: C

NEW QUESTION 12

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

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

Answer: B

NEW QUESTION 13

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

  • A. iconv
  • B. expand
  • C. unexpand
  • D. tab

Answer: C

NEW QUESTION 14

Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

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

Answer: D

NEW QUESTION 15

Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
/var, /var/, var, var/

NEW QUESTION 16

What is the difference between the --remove and the --purge action with the dpkg command?

  • A. --remove removes the program, --purge also removes the config files
  • B. --remove only removes the program, --purge only removes the config files
  • C. --remove removes a package, --purge also removes all packages dependent on it
  • D. --remove removes only the package file itself, --purge removes all files related to the package

Answer: A

NEW QUESTION 17

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

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
mounts

NEW QUESTION 18

Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?

  • A. –a
  • B. –c
  • C. --no-clobber
  • D. --continue

Answer: A

NEW QUESTION 19

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

  • A. The source file is hidden.
  • B. The source file is read-only.
  • C. The source file is a shell script.
  • D. You do not own the source file.
  • E. The source and the target are on different filesystems.

Answer: E

NEW QUESTION 20

Which of the following commands is used to update the list of available packages when using dpkg based package management?

  • A. apt-get update
  • B. apt-get upgrade
  • C. apt-cache update
  • D. apt-get refresh
  • E. apt-cache upgrade

Answer: A

NEW QUESTION 21

Which of the following statements is correct when talking about /proc/?

  • A. All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.
  • B. All files within /proc/ are read-only and their contents cannot be changed.
  • C. All changes to files in /proc/ are immediately recognized by the kernel.
  • D. All files within /proc/ are only readable by the root user.

Answer: C

NEW QUESTION 22

Regarding the command: nice -5 /usr/bin/prog
Which of the following statements is correct?

  • A. /usr/bin/prog is executed with a nice level of -5.
  • B. /usr/bin/prog is executed with a nice level of 5.
  • C. /usr/bin/prog is executed with a priority of -5.
  • D. /usr/bin/prog is executed with a priority of 5.

Answer: B

NEW QUESTION 23

Which of the following commands installs all packages with a name ending with the string foo?

  • A. zypper get “*foo”
  • B. zypper update “foo?”
  • C. zypper force “foo*”
  • D. zypper install “*foo”
  • E. zypper add “.*foo”

Answer: D

NEW QUESTION 24

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

  • A. The command is SetUID and it will be executed with the effective rights of the owner.
  • B. The command will be executed with the effective rights of the group instead of the owner.
  • C. The execute flag is not set for the owne
  • D. Therefore the SetUID flag is ignored.
  • E. The command will be executed with the effective rights of the owner and group.

Answer: C

NEW QUESTION 25

Which daemon handles power management events on a Linux system?

  • A. acpid
  • B. batteryd
  • C. pwrmgntd
  • D. psd
  • E. inetd

Answer: A

NEW QUESTION 26

Which of the following commands will display the inode usage of each mounted filesystem?

  • A. du –i
  • B. df –i
  • C. lsfs –i
  • D. printfs –i

Answer: B

NEW QUESTION 27

Which of the following are modes of the vi editor? (Choose two.)

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

Answer: BE

NEW QUESTION 28
......

100% Valid and Newest Version 101-500 Questions & Answers shared by prep-labs.com, Get Full Dumps HERE: https://www.prep-labs.com/dumps/101-500/ (New 243 Q&As)