Add dd(1) manpage

Formatting is a bit weird, will need fixing.
This commit is contained in:
sin 2014-06-11 11:49:44 +01:00
parent 3754c402ca
commit c80061b08f
2 changed files with 46 additions and 0 deletions

View File

@ -67,6 +67,7 @@ SRC = \
MAN1 = \ MAN1 = \
chvt.1 \ chvt.1 \
clear.1 \ clear.1 \
dd.1 \
df.1 \ df.1 \
dmesg.1 \ dmesg.1 \
eject.1 \ eject.1 \

45
dd.1 Normal file
View File

@ -0,0 +1,45 @@
.TH DD 1 ubase-VERSION
.SH NAME
\fBdd\fR - Copy a file
.SH SYNOPSIS
\fBdd\fR [\fIoperand...\fR]
.SH DESCRIPTION
\fBdd\fR copies the standard input to the standard output. By default input
data is read and written in 64kB blocks. When finished, \fBdd\fR displays the
number of records read and written as well as the total number of bytes copied.
\fBdd\fR syncs the filesystem once it is done copying. If you want
to disable that use the \fInosync\fR option.
.SH OPERANDS
.TP
if=\fIfile\fR
Read input from \fIfile\fR instead of the standard input.
.TP
of=\fIfile\fR
Write output to \fIfile\fR instead of the standard output. If an initial
portion of the output \fIfile\fR is skipped using the seek operand, the output
file is truncated at that point.
.TP
bs[=\fIN\fR]
If bs is not specified, the default blocksize is 64kB. If bs is specified
without setting it to a specific value then an optimal value between the source
and target filesystem will be selected. If this process fails it will fallback
to the system's pagesize. Adjust \fIN\fR to set the block size of the transfers
in bytes.
.TP
seek=\fIN\fR
Seek \fIN\fR blocks from the beginning of the output before copying.
.TP
skip=\fIN\fR
Skip \fIN\fR blocks from the beginning of the input before copying.
.TP
count=\fIN\fR
Copy only \fIN\fR input blocks.
.TP
direct
Use direct I/O for data.
.TP
quiet
Enable quiet output.
.TP
nosync
Do not sync the filesystem once we are done copying.