Command for creating a file in linux: Command for creating a file of a certain size -- dd

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 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.

  1. How to Create File commands in Linux
  2. Use the Linux at command in the Linux operating system to regularly send emails
  3. Usage of cron and linux at commands in linux

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.