This article explains how to create a file in Linux: dd. Use the DD Linux Command to create a certain size file.
Linux File Creation command: dd command
Copy the specified input file to the specified output file, and convert the format during the copy process. Syntax:
Code: [copy to clipboard] dd [Option 〕
Quote:
If = input file (or device name ).
Of = output file (or device name ).
IBS = Bytes: the number of bytes read from the buffer zone.
Skip = blocks skip the IBS * blocks block at the beginning of the read buffer.
Obs = Bytes: the number of bytes written into the buffer zone.
BS = Bytes: set the number of bytes in the read/write buffer at the same time (equal to setting obs and OBS ).
CBS = Bytes: converts bytes at a time.
Count = blocks only copies the input blocks block.
Conv = ASCII converts an ebcdic code to an ascii code.
Conv = ebcdic converts ASCII code to ebcdic code.
Conv = IBM converts ASCII code to alternate ebcdic code.
Conv = blick converts a variable bit to a fixed character.
Conv = ublock converts a fixed user to a variable bit
Conv = ucase converts lowercase letters to uppercase letters.
Conv = lcase converts uppercase letters to lowercase letters.
Conv = notrunc: the output file is not truncated.
Conv = swab exchange each pair of input bytes.
Conv = do not stop processing when noerror occurs.
Conv = Sync adjusts the size of each input record to the IBS size (filled with IBS ).
Fdformat command
Low-level formatting floppy disk.
Instance:
Create a m empty file
Dd If =/dev/Zero of=hello.txt BS = 100 m COUNT = 1
The preceding command is used to create a file in Linux: dd.