Get Latest Mar-2023 Real 101-500 Exam Questions and Answers FREE [Q109-Q124]

Share

Get Latest Mar-2023 Real 101-500 Exam Questions and Answers FREE

Truly Beneficial For Your Lpi Exam (Updated 246 Questions)

NEW QUESTION 109
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
fmt -f 1,4 /etc/passwd

  • A. cut -d : -f 1,4 /etc/passwd
  • B. sort -t : -k 1,4 /etc/passwd
  • C. split -c 1,4 /etc/passwd
  • D.
  • E. paste -f 1,4 /etc/passwd

Answer: B

 

NEW QUESTION 110
When booting from the hard disk, a computer successfully loads the Linux kernel and initramfs but hangs during the subsequent startup tasks. The system is booted using a Linux based rescue CD to investigate the problem. Which of the following methods helps to identify the root cause of the problem?

  • A. Using the dmesgcommand from the rescue CD's shell to view the original system's boot logs.
  • B. Investigating the file /var/log on the computer's hard disk for possible errors.
  • C. Rebooting again from the hard drive since the system successfully booted from the rescue CD.
  • D. Investigating the file /proc/kmsg on the computer's hard disk for possible errors.
  • E. Using chrootto switch to the file system on the hard disk and use dmesgto view the logs.

Answer: B

 

NEW QUESTION 111
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 -qv apache-xml.i386.rpm
  • B. rpm -qpl apache-xml.i386.rpm
  • C. rpm -qp apache-xml.i386.rpm
  • D. rpm -ql apache-xml.i386.rpm

Answer: B

 

NEW QUESTION 112
Which of the following commands is used to change options and positional parameters within a running Bash shell?

  • A. setsh
  • B. envsetup
  • C. history
  • D. set
  • E. bashconf

Answer: D

Explanation:
Explanation/Reference:

 

NEW QUESTION 113
After a power outage, the XFS file system of /dev/sda3is inconsistent. How can the existing file system errors be fixed?

  • A. By running xfs_repairon the file system
  • B. By running xfsadmin repairon the file system
  • C. By using mount -fto force a mount of the file system
  • D. By running xfsckon the file system
  • E. By mounting the file system with the option xfs_repair

Answer: A

 

NEW QUESTION 114
FILL BLANK
Which command is used to change the priority of an already running process? (Specify ONLY the command without any path or parameters.)

Answer:

Explanation:
renice

 

NEW QUESTION 115
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

  • A. +
  • B. &
  • C. %
  • D. !
  • E. #

Answer: B

 

NEW QUESTION 116
Creating a hard link to an ordinary file returns an error. What could be the reason for this?

  • A. The source file is a shell script.
  • B. The source and the target are on different filesystems.
  • C. The source file is already a hard link.
  • D. The source file is read-only.
  • E. The source file is hidden.

Answer: B

 

NEW QUESTION 117
Which command is used to query information about the available packages on a Debian system?

  • A. dpkg-search
  • B. apt-get
  • C. apt-cache
  • D. apt-search
  • E. dpkg

Answer: C

 

NEW QUESTION 118
Which of the following is the device file name for the second partition on the only SCSI drive?

  • A. /dev/hda1
  • B. /dev/sda2
  • C. /dev/sd0a2
  • D. /dev/sd1p2

Answer: B

 

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

Answer:

Explanation:
df

 

NEW QUESTION 120
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: E

 

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

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

Answer: A

 

NEW QUESTION 122
Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

  • A. query
  • B. which
  • C. apropos
  • D. whereis
  • E. find

Answer: E

 

NEW QUESTION 123
Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

Answer:

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

 

NEW QUESTION 124
......

101-500 dumps Free Test Engine Verified By It Certified Experts: https://www.lead2passexam.com/Lpi/valid-101-500-exam-dumps.html

View All 101-500 Actual Exam Questions, Answers and Explanations for Free: https://drive.google.com/open?id=124pjiMy4a21sIlxOeDoFawaO5Qw_LaRk