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 to copy the specified input file to the specified output
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 〕
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 the characters from lowercase to uppercase. 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 creates a file in linux: dd usage.