Use the DD this Linux command to create a certain size file.
Linux Create File command: DD command
Copies the specified input file to the specified output file, and can be converted to format during the copy process. Grammar:
Code:[copy to clipboard]dd(option)
QUOTE:
if = input file (or device name).
of = output file (or device name).
ibs = Bytes Read bytes bytes at a time, that is, the number of bytes read into the buffer.
Skip = Blocks skips the Ibs*blocks block at the beginning of the read buffer.
Obs = bytes Writes bytes bytes At a time, that is, the number of bytes written to the buffer.
BS = bytes Sets the number of bytes in the read/write buffer (equal to setting up Obs and OBS).
CBS = bytes Converts bytes bytes at a time.
Count = blocks only the blocks blocks that are entered.
CONV = ASCII converts EBCDIC code to ASCII code.
Conv = EBCDIC converts ASCII code to EBCDIC code.
CONV = IBM converts ASCII code to alternate EBCDIC code.
CONV = Blick Converts a bit of change to a fixed character.
CONV = ublock Converts fixed to change bit
CONV = UCase turns letters from lowercase to uppercase.
CONV = LCase Changes the letter from uppercase to lowercase.
CONV = Notrunc does not truncate the output file.
CONV = Swab Exchange Each pair of input bytes.
CONV = NoError does not stop processing when an error occurs.
Conv = sync the size of each input record to the size of the IBS (with IBS).
Fdformat command
Low-level formatted floppy disk.
Instance:
Create a 1GB empty file
DD If=/dev/zero of=aaa.txt bs=1000m count=1
The above is the Linux create File command: DD usage.