LPI 101-500 Lab 2021

Want to know Testking 101-500 Exam practice test features? Want to lear more about LPI LPIC-1 Exam 101 - Part 1 of 2 - version 5.0 certification experience? Study Exact LPI 101-500 answers to Updated 101-500 questions at Testking. Gat a success with an absolute guarantee to pass LPI 101-500 (LPIC-1 Exam 101 - Part 1 of 2 - version 5.0) test on your first attempt.

Also have 101-500 free dumps questions for you:

NEW QUESTION 1

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. Start in runlevel 1.
  • B. Pass init=/bin/sh on the kernel parameter line.
  • C. Pass /bin/sh on the kernel parameter line.
  • D. Pass start=/bin/sh on the kernel parameter line.

Answer: B

NEW QUESTION 2

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

  • A. <<
  • B. <|
  • C. !<
  • D. &<

Answer: A

NEW QUESTION 3

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

  • A. shutdown -R 1 now
  • B. shutdown -single now
  • C. init 1
  • D. telinit 1
  • E. runlevel 1

Answer: CD

NEW QUESTION 4

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 5

What is true regarding the command
ls > files
if files does not exist?

  • A. The output of ls is printed to the terminal
  • B. files is created and contains the output of ls
  • C. An error message is shown and ls is not executed
  • D. The command files is executed and receives the output of ls
  • E. Any output of ls is discarded

Answer: B

NEW QUESTION 6

Which of the following commands displays the contents of a gzip compressed tar archive?

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

Answer: B

NEW QUESTION 7

The USB device filesystem can be found under /proc/_____/usb/. (Please fill in the blank with the single
word only)

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
bus

NEW QUESTION 8

The /etc/____ file lists currently mounted devices.

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
mtab

NEW QUESTION 9

When given the following command line. echo "foo bar" | tee bar | cat
Which of the following output is created?

  • A. cat
  • B. foo bar
  • C. tee bar
  • D. bar
  • E. foo

Answer: B

NEW QUESTION 10

What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

  • A. Device IRQ settings
  • B. PCI bus speed
  • C. System battery type
  • D. Device vendor identification
  • E. Ethernet MAC address

Answer: ABD

NEW QUESTION 11

What happens after issuing the command vi without any additional parameters?

  • A. vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.
  • B. vi starts and requires the user to explicitly either create a new or load an existing file.
  • C. vi exits with an error message as it cannot be invoked without a file name to operate on.
  • D. vi starts in command mode and opens a new empty file.
  • E. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

Answer: D

NEW QUESTION 12

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

  • A. To create RAID 9 arrays.
  • B. To dynamically change the size of logical volumes.
  • C. To encrypt logical volumes.
  • D. To create snapshots.
  • E. To dynamically create or delete logical volumes.

Answer: BDE

NEW QUESTION 13

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 14

Which of the following commands will reduce all consecutive spaces down to a single space?

  • A. tr 's' ' ' < a.txt > b.txt
  • B. tr -c ' ' < a.txt > b.txt
  • C. tr -d ' ' < a.txt > b.txt
  • D. tr -r ' ' 'n' < a.txt > b.txt
  • E. tr -s ' ' < a.txt > b.txt

Answer: E

NEW QUESTION 15

Which of the following file permissions belong to a symbolic link?

  • A. -rwxrwxrwx
  • B. +rwxrwxrwx
  • C. lrwxrwxrwx
  • D. srwxrwxrwx

Answer: C

NEW QUESTION 16

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 -i 200 /dev/sda1
  • D. tune2fs -n 200 /dev/sda1
  • E. tune2fs --days 200 /dev/sda1

Answer: C

NEW QUESTION 17

Which of the following files, located in a user’s home directory, contains the Bash history?

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

Answer: B

NEW QUESTION 18

What is the process ID number of the init process on a SysV init based system?

  • A. -1
  • B. 1
  • C. It is different with each reboot.
  • D. It is set to the current run level.

Answer: C

NEW QUESTION 19

When removing a package, which of the following dpkg options will completely remove the files including configuration files?

  • A. --clean
  • B. --delete
  • C. --purge
  • D. –remove

Answer: C

NEW QUESTION 20

Which of the following commands will print the last 10 lines of a text file to the standard output?

  • A. cat -n 10 filename
  • B. dump -n 10 filename
  • C. head -n 10 filename
  • D. tail -n 10 filename

Answer: D

NEW QUESTION 21

You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?

  • A. rpm -qp apache-xml.i386.rpm
  • B. rpm -qv apache-xml.i386.rpm
  • C. rpm -ql apache-xml.i386.rpm
  • D. rpm -qpl apache-xml.i386.rpm

Answer: D

NEW QUESTION 22

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

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

Answer: B

NEW QUESTION 23

Which of the following commands will write a message to the terminals of all logged in users?

  • A. bcast
  • B. mesg
  • C. print
  • D. wall
  • E. yell

Answer: D

NEW QUESTION 24

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 25

Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)

  • A. ~/.lib64/
  • B. /usr/lib64/
  • C. /var/lib64/
  • D. /lib64/
  • E. /opt/lib64/

Answer: AD

NEW QUESTION 26

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

  • A. /sbin/mke2fs -j /dev/sdb1
  • B. /sbin/mkfs -t ext3 /dev/sdb1
  • C. /sbin/mkfs -c ext3 /dev/sdb1
  • D. /sbin/mke3fs -j /dev/sdb1

Answer: AB

NEW QUESTION 27

How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?

  • A. rpm –qp apache-xml.rpm
  • B. rpm –qv apache-xml.rpm
  • C. rpm –ql apache-xml.rpm
  • D. rpm –qpl apache-xml.rpm

Answer: D

NEW QUESTION 28

You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?

  • A. telinit 1
  • B. shutdown -r now
  • C. killall -9 inetd
  • D. /bin/netstop --maint
  • E. /etc/rc.d/init.d/network stop

Answer: A

NEW QUESTION 29

Which variable defines the directories in which a Bash shell searches for executable commands?

  • A. BASHEXEC
  • B. BASHRC
  • C. PATH
  • D. EXECPATH
  • E. PATHRC

Answer: C

NEW QUESTION 30

Which grep command will print only the lines that do not end with a / in the file foo?

  • A. grep'/$' foo
  • B. grep '/#' foo
  • C. grep -v '/$' foo
  • D. grep -v '/#' foo

Answer: C

NEW QUESTION 31
......

P.S. Easily pass 101-500 Exam with 243 Q&As Certshared Dumps & pdf Version, Welcome to Download the Newest Certshared 101-500 Dumps: https://www.certshared.com/exam/101-500/ (243 New Questions)