summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.1
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-10-11 20:09:05 +0000
committerjoerg <joerg@FreeBSD.org>1997-10-11 20:09:05 +0000
commit4841b45bbe197e54bb7732317930e8591d51362c (patch)
tree2bbaeb532cca6a0c260f5fc674f9d1d0ce9b10cb /bin/dd/dd.1
parent11466e2a6f0898af142d8fbff4ead6b7078c6e04 (diff)
downloadFreeBSD-src-4841b45bbe197e54bb7732317930e8591d51362c.zip
FreeBSD-src-4841b45bbe197e54bb7732317930e8591d51362c.tar.gz
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)
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 157e52e..85aca7b 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
OpenPOWER on IntegriCloud