Detailed explanation of DD commands to create a certain size file in Linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.