READ Free Dumps For LPI- 117-201
Question ID 21484 | Which command would you use to apply a diff file to an original?
|
Option A | patch > diff-file
|
Option B | patch < diff-file
|
Option C | patch << diff-file
|
Option D | cat diff-file >> kernel
|
Option E | cat diff-file << kernel
|
Correct Answer | B |
Explanation Explanation: From the man pages: SYNOPSIS patch [options] [originalfile [patchfile]] but usually just patch -pnum < patchfile
Question ID 21485 | One of the IDE hard drives in a server is transferring data very slowly. What command must be
run to enable DMA on it?
|
Option A | hdparm -d /dev/hda
|
Option B | hdparm --dma /dev/hda
|
Option C | hdparm --dma /dev/hda1
|
Option D | hdparm -d /dev/hda1
|
Option E | hdparm -d1 /dev/hda
|
Correct Answer | E |
Explanation Explanation: hdparm provides a command line interface to various kernel interfaces supported by the Linux SATA/PATA/ SAS "libata" subsystem and the older IDE river subsystem. Many newer (2008 and later) USB drive enclosures now also support "SAT" (SCSI-ATA Command Translation) and therefore may also work with hdparm. Eg. recent WD "Passport" models and recent NexStar-3 enclosures. Some options may work correctly only with the latest kernels. -d Disable/enable the "using_dma" flag for this drive. This option now works with most combinations of drives and PCI interfaces which support DMA and which are known to the kernel IDE driver. It is also a good idea to use the appropriate -X option in combination with -d1 to ensure that the drive itself is programmed for the correct DMA mode, although most BIOSs should do this for you at boot time. Using DMA nearly always gives the best performance, with fast I/O throughput and low CPU usage.