72 lines
2.6 KiB
HTML
72 lines
2.6 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>dd(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>dd(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
dd - disk dumper
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>dd</STRONG> [<EM>option</EM> = <EM>value</EM>] ...
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>dd</STRONG> <STRONG>if=/dev/fd0</STRONG> <STRONG>of=/dev/fd1</STRONG>
|
|
# Copy disk 0 to disk 1
|
|
|
|
<STRONG>dd</STRONG> <STRONG>if=x</STRONG> <STRONG>of=y</STRONG> <STRONG>bs=1w</STRONG> <STRONG>skip=4</STRONG>
|
|
# Copy <EM>x</EM> to <EM>y</EM>, skipping 4 words
|
|
|
|
<STRONG>dd</STRONG> <STRONG>if=x</STRONG> <STRONG>of=y</STRONG> <STRONG>count=3</STRONG>
|
|
# Copy three 512-byte blocks
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
This command is intended for copying partial files. The block size, skip
|
|
count, and number of blocks to copy can be specified. The options are:
|
|
|
|
<STRONG>if</STRONG> = file - Input file (default is <EM>stdin</EM>)
|
|
<STRONG>of</STRONG> = file - Output file (default is standard output)
|
|
<STRONG>ibs</STRONG> = n - Input block size (default 512 bytes)
|
|
<STRONG>obs</STRONG> = n - Output block size (default is 512 bytes)
|
|
<STRONG>bs</STRONG> = n - Block size; sets <EM>ibs</EM> and <EM>obs</EM> (default is 512 bytes)
|
|
<STRONG>skip</STRONG> = n - Skip <EM>n</EM> input blocks before reading
|
|
<STRONG>seek</STRONG> = n - Skip <EM>n</EM> output blocks before writing
|
|
<STRONG>count</STRONG> = n - Copy only <EM>n</EM> input blocks
|
|
<STRONG>conv</STRONG> <STRONG>=</STRONG> <STRONG>lcase</STRONG> - Convert upper case letters to lower case
|
|
<STRONG>conv</STRONG> <STRONG>=</STRONG> <STRONG>ucase</STRONG> - Convert lower case letters to upper case
|
|
<STRONG>conv</STRONG> <STRONG>=</STRONG> <STRONG>swab</STRONG> - Swap every pair of bytes
|
|
<STRONG>conv</STRONG> <STRONG>=</STRONG> <STRONG>noerror</STRONG> - Ignore errors and just keep going
|
|
<STRONG>conv</STRONG> <STRONG>=</STRONG> <STRONG>silent</STRONG> - Suppress statistics (Minix specific flag)
|
|
|
|
Where sizes are expected, they are in bytes. However, the letters <STRONG>w</STRONG>, <STRONG>b</STRONG>,
|
|
or <STRONG>k</STRONG> may be appended to the number to indicate words (2 bytes), blocks
|
|
(512 bytes), or K (1024 bytes), respectively. When <EM>dd</EM> is finished, it
|
|
reports the number of full and partial blocks read and written.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/vol.1.html">vol(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|