Posted On 2007-04-27 by FortyPoundHead
Keywords: Command Reference
Tags: Linux Commandline Linux
Views: 1589

Dump Data - convert and copy a file (use for RAW storage), create a boot floppy.

dd [OPTION]...

The numeric-valued options below (BYTES and BLOCKS) can be followed
by a multiplier: `b''=512, `c''=1, `w''=2, `xM''=M, or any of the standard
block size suffixes like `k''=1024 (*note Block size::).

input file : Read from FILE instead of standard input.

output file : Write to FILE instead of standard output. Unless `conv=notrunc''
is given, `dd'' truncates FILE to zero bytes (or the size specified
with `seek='').

Read BYTES bytes at a time.

Write BYTES bytes at a time.

Both read and write BYTES bytes at a time. This overrides `ibs''
and `obs''.

Convert BYTES bytes at a time.

Skip BLOCKS `ibs''-byte blocks in the input file before copying.

Skip BLOCKS `obs''-byte blocks in the output file before copying.

Copy BLOCKS `ibs''-byte blocks from the input file, instead of
everything until the end of the file.

Convert the file as specified by the CONVERSION argument(s).
(No spaces around any comma)


Convert EBCDIC to ASCII.

Convert ASCII to EBCDIC.

Convert ASCII to alternate EBCDIC.

For each line in the input, output `cbs'' bytes, replacing the
input newline with a space and padding with spaces as

Replace trailing spaces in each `cbs''-sized input block with a

Change uppercase letters to lowercase.

Change lowercase letters to uppercase.

Swap every pair of input bytes. GNU `dd'', unlike others,
works when an odd number of bytes are read--the last byte is
simply copied (since there is nothing to swap it with).

Continue after read errors.

Do not truncate the output file.

Pad every input block to size of `ibs'' with trailing zero
dd can be used to create a boot floppy:

dd if=boot.img of=/dev/fd0 bs=1440


if = the input file or device
of = the output file or device
bs = the block size for both input and output files

About the Author

FortyPoundHead has posted a total of 1974 articles.


Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Recent Forum Posts

VBScript Formatting String Text
Williamhawk posted on November 21, 2017 at about 2:54 in VBScript

Is There a Media Player for Linux Which Can Play
Williamhawk posted on November 21, 2017 at about 2:50 in Linux Help

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News