[Free] 2018(Jan) EnsurePass Testinsides LPI 201-400 Dumps with VCE and PDF 191-200
LPIC-2 Exam 201
Question No: 191 CORRECT TEXT – (Topic 8)
You would like to temporarily change your command line editor to be vi. What command should you type to change it?
Answer: set -o vi
Explanation: The readline support in the bash shell defaults to emacs editing mode. You can easily switch that to vi mode by issuing the following command: set -o vi. This will last until you logoff. The next time you log on, the default editing mode will be used.
Question No: 192 – (Topic 8)
What file will show you the IRQs being used by different hardware devices?
Explanation: The IRQs being used by the hardware devices are listed in the
B:The IRQs are not listed in the /proc/irqs file. C:The IRQs are not listed in the /proc/irq file. D:The IRQs are not listed in the /proc/int file. E:The IRQs are not listed in the /proc/ints file.
Question No: 193 – (Topic 8)
When an ext2 partition is formatted, a fixed percentage of the blocks on the disk are reserved for use by the root user. After the filesystem has been created this percentage can be modified using which utility?
Explanation: The tune2fs utility can be used to modify the reserved blocks. For example, the tune2fs – u lt;usernamegt; command can be used to allow a user to use the reserved blocks.
Question No: 194 – (Topic 8)
You have added a new file system to /etc/exports, but users complian that they still get “Permission denied” errors when they try to mount the new file system. Which of the following is the best solution to this problem?
Reboot the server.
Add the option (no_root_squash) to the entry already added.
Run the command exportfs -a
Run the command export -nfs.
Explanation: The exportfs command makes local directories available for Network File System (NFS) clients to mount. This command is normally invoked during system startup by the /etc/rc.nfsfile and uses information in the /etc/exports file to export one or more directories, which must be specified with full path names.
The /etc/xtab file lists directories that are currently exported. To display this file, enter the exportfs command without flags or arguments. To alter the file or to alter the characteristics of one of its directories, root users can edit the /etc/exports file and run the exportfs command. The -a option exports all directories listed in the /etc/exports file. Such alterations can be done at any time. Never edit the /etc/xtab file directly.
A:It is not necessary to reboot the server. The exportfs command can be run at any time.
B:The no_root_squash option is used to allow root permission to an exported directory to the root user on a remote machine.
C:It is not necessary to restart NFS.
E:Export -nfs is the wrong command.
Question No: 195 – (Topic 8)
You want to compile a kernel with an experimental change that is distributed in “patch” format. However, you want to make sure that the patch works correctly before changing the original kernel source code. How can you test the patch before actually applying it?
Explanation: The patch -dry-run command is used to test a patch before applying it. This will produce a text output listing all the files that would be patched. If there are no ‘Failed’ messages, then the patch is safe to install.
A:Patch -p1 will apply the patch.
B:Patch -context will apply the patch as a ‘context diff’ file.
C:Patch -unified will apply the patch as a ‘unified diff’ file.
Question No: 196 CORRECT TEXT – (Topic 8)
The easiest, most basic form of backing up a file is to it to another location.
Explanation: The easiest way to backup a file is to copy it to another location. Having a backup copy of a file is always recommended.
Question No: 197 – (Topic 8)
You have compiled and installed a new kernel on your SCSI based machine. After installing the new kernel, the boot process stops at a point with the error “VFS PANIC: Unable to mount root FS.” You can boot again off the old kernel without any problems. Given that /etc/modules.conf is correct and that the SCSI controller is selected as a module in the kernel, what most likely is the cause?
The module failed to build.
The new kernel can’t initialize the SCSI controller.
There is no initrd image for the new kernel.
SCSI disk support isn’t enabled in the kernel.
SCSI generic support isn’t enabled in the kernel.
Explanation: The question states that that the machine is SCSI based and you can boot to the old kernel.
This indicates that the system is successfully booting from the SCSI drive (when using the old kernel). The SCSI controller module needs to be loaded at boot time before the system is able to mount the root file system. To load the SCSI controller module at boot time, you need an initrd image for the new kernel.
Reference: http://www.linuxhelp.co.za/RedHat61/rhref/s1-sysadmin-build-kernel.htm#S2- SYSADMIN-INITRD
A:It is unlikely that the module failed to build.
B:The new kernel can’t initialize the SCSI controller. However, the reason for this is most likely to be that there is no initrd image for the new kernel.
D:SCSI support can be loaded as a module if an initrd image exists. It does not have to be enabled (compiled) in the kernel.
E:SCSI support can be loaded as a module if an initrd image exists. It does not have to be
enabled (compiled) in the kernel.
Question No: 198 – (Topic 8)
You are entering a long, complex command line and you reach the right side of your screen before you have finished typing. You want to finish typing the necessary commands but have the display wrap around to the left. Which of the following key combinations would achieve this?
Esc, /, Enter
esc, /, ctrl-d
Explanation: There is a way to enter a long command such that it will be broken at the end of the top line and continued on the next. This can be accomplished by typing a backslash (\) character before pressing enter at the breakpoint, as follows:
$ echo This is a long command so why not break it here \
gt; and start on the next line. lt;entergt; which gives as output:
This is a long command so why not break it here and start on the next line.
The gt; is the shell#39;s way of letting the user know that the current line is a continuation of the previous line.
A:This key combination will not wrap the text.
C:This key combination will not wrap the text.
D:This key combination will not wrap the text.
Question No: 199 CORRECT TEXT – (Topic 8)
The command flushes the filesystem buffers and ensures that the changes that you have made to a file are written to disk.
Explanation: The sync command is used to flush the filesystem buffers and ensures that the changes that you have made to a file are written to disk. When you shutdown the system, the system runs the sync command to flush the buffers to disk, but the command can be manually entered at any time.
Question No: 200 – (Topic 8)
You need to use grep to search for specific log entries. Given the following three log entries, which grep command will match only one line? Assume that every pattern matches at least one line.
Jun 16 01:46:18 hostname pumpd: PUMP: got an offer
Jun 17 21:52:28 hostname kernel: SCSI subsystem driver Revision: 1.00 Jul 20 11:09:01 hostname /USR/SBIN/CRON: (mail) CMD runq
A. grep “hostname\ [^\]*\[A-Z]*:”
B. grep “Ju[I-Z]\[0-9].*:.1”
C. grep “hostname,*[pumpd]*” D. grep “[0-9]:[1-8]*\ host.*\(.*\)” E. grep “US*[^]]*]*:”
|Lowest Price Guarantee||Yes||No||No|
|Free VCE Simulator||Yes||No||No|