Which of the following commands can be used to create a new file that is 100kB in size?
A.
dd
B.
file
C.
mkfile
D.
touch
The Answer Is:
A
This question includes an explanation.
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
101-500 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"