aboutsummaryrefslogtreecommitdiff
path: root/bin/dd/dd.1
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-10-11 20:09:05 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-10-11 20:09:05 +0000
commit4ddfeabd8f60b0f24a08fb8d715647b68f519cfd (patch)
tree6404b83653dec7695f1c35506cdfc96fdb030a12 /bin/dd/dd.1
parent964a4c2866120399e597a610db1f59ba25da04d0 (diff)
downloadsrc-4ddfeabd8f60b0f24a08fb8d715647b68f519cfd.tar.gz
src-4ddfeabd8f60b0f24a08fb8d715647b68f519cfd.zip
Teach dd(1) about an option to write sparse files. Can be useful for
things like diskless clients' swap files etc. Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many stylistic changes by me)
Notes
Notes: svn path=/head/; revision=30312
Diffstat (limited to 'bin/dd/dd.1')
-rw-r--r--bin/dd/dd.19
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/dd/dd.1 b/bin/dd/dd.1
index 157e52e9adba..85aca7bf94d7 100644
--- a/bin/dd/dd.1
+++ b/bin/dd/dd.1
@@ -33,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)dd.1 8.2 (Berkeley) 1/13/94
-.\" $Id: dd.1,v 1.4 1997/02/22 14:02:43 peter Exp $
+.\" $Id: dd.1,v 1.5 1997/04/28 04:07:29 steve Exp $
.\"
.Dd January 13, 1994
.Dt DD 1
@@ -250,6 +250,13 @@ regularly sized blocks to be written.
This option is incompatible with use of the
.Cm bs= Ns Ar n
block size specification.
+.It Cm sparse
+If one or more output blocks would consist solely of
+.Tn NUL
+bytes, try to seek the output file by the required space instead of
+filling them with
+.Tn NULs ,
+resulting in a sparse file.
.It Cm swab
Swap every pair of input bytes.
If an input buffer has an odd number of bytes, the last byte will be