Create an empty file of a specified size under Linux __linux

Source: Internet
Author: User
Tags lowercase

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.

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.