GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DD(1) FreeBSD General Commands Manual DD(1)

dd - convert and copy a file

dd [ option value ] ...

Dd copies the specified input file to the specified output with possible conversions. The standard input and output are used by default. The input and output block size may be specified to take advantage of raw physical I/O. The options are

Open file f for input.
Open file f for output.
Set input block size to n bytes (default 512).
Set output block size (default 512).
Set both input and output block size, superseding ibs and obs. If no conversion is specified, preserve the input block size instead of packing short blocks into the output buffer. This is particularly efficient since no in-core copy need be done.
Set conversion buffer size.
Skip n input records before copying.
Seek n records forward on input file before copying.
Catenate n input files (useful only for magnetic tape or similar input device).
Seek n records from beginning of output file before copying.
Copy only n input records.
By default, dd truncates the output file when it opens it; -trunc 0 opens it without truncation.
By default, dd prints the number of blocks read and written once it is finished. -quiet 1 silences this summary.

-conv ascii    Convert EBCDIC to ASCII.

Convert ASCII to EBCDIC.
Like ebcdic but with a slightly different character map.
Convert variable length ASCII records to fixed length.
Convert fixed length ASCII records to variable length.
Map alphabetics to lower case.
Map alphabetics to upper case.
Swap every pair of bytes.
Do not stop processing on an error.
Pad every input record to ibs bytes.


Where sizes are specified, a number of bytes is expected. A number may end with or to specify multiplication by 1024 or 512 respectively; a pair of numbers may be separated by to indicate a product. Multiple conversions may be specified in the style:

is used only if or conversion is specified. In the first two cases, n characters are copied into the conversion buffer, any specified character mapping is done, trailing blanks are trimmed and new-line is added before sending the line to the output. In the latter three cases, characters are read into the conversion buffer and blanks are added to make up an output record of size n. If is unspecified or zero, the and options convert the character set without changing the block structure of the input file; the and options become a simple file copy.

/src/cmd/dd.c

Dd reports the number of full + partial input and output blocks handled.


Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.