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 to 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 and fills it 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.
- How to Create File commands in Linux
- Use the Linux at command in the Linux operating system to regularly send emails
- Usage of cron and linux at commands in linux