Which of the following commands updates the already installed RPM package rpmname?
Correct Answer: B
Question 52
Which of the following options must be passed to a filesystem's entry in /etc/fstab in order to mount the file system without root privileges?
Correct Answer: D
Question 53
Which wildcards will match the following filenames? (Choose two.) ttyS0 ttyS1 ttyS2
Correct Answer: B,C
Question 54
Which of the following is the device file name for the second partition on the only SCSI drive?
Correct Answer: B
Explanation The correct device file name for the second partition on the only SCSI drive is /dev/sda2. This is because SCSI drives use the naming scheme sdX, where X is a letter starting from a for the first drive, b for the second drive, and so on. The partitions on each drive are numbered from 1 to the maximum number of partitions supported by the drive. Therefore, the first partition on the first SCSI drive is /dev/sda1, the second partition on the first SCSI drive is /dev/sda2, the first partition on the second SCSI drive is /dev/sdb1, and so on. The other options are incorrect because they do not follow the SCSI naming scheme. Option A is wrong because it uses the naming scheme for IDE drives, which is hdX. Option C is wrong because it uses the naming scheme for BSD drives, which is sdXaY, where X is a number and Y is a letter. Option D is wrong because it uses the naming scheme for Solaris drives, which is sdXpY, where X is a number and Y is a number. References: * [LPI Linux Essentials - 2.1 Using Devices, Linux Filesystems, Filesystem Hierarchy Standard] * [LPI Linux Essentials - 2.2 Mounting, Unmounting Filesystems] * [LPI Linux Essentials - 2.3 Disk Partitions] * Device file - ArchWiki * What is the Linux drive naming scheme? - Ask Ubuntu
Question 55
Which of the following commands can be used to create a new file that is 100kB in size?
Correct Answer: A
Explanation The dd command can be used to create a new file that is 100kB in size. The dd command copies data from one source to another, using specified input and output block sizes. To create a new file that is 100kB in size, the dd command can use /dev/zero as the input source, which provides an endless stream of zeros, and specify the output file name, the output block size (bs) and the count of blocks to copy. For example, dd if=/dev/zero of=file.txt bs=1k count=100 will create a file named file.txt that is 100kB in size. The file command can be used to determine the type of a file. The mkfile command is not a valid Linux command. The touch command can be used to create a new empty file or update the access and modification times of an existing file, but it does not specify the size of the file. References: [LPI Exam 101 Detailed Objectives],Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, dd command, file command, touch command