]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(du invocation): Use if=/dev/null rather
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 27 Nov 2004 09:37:22 +0000 (09:37 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 27 Nov 2004 09:37:22 +0000 (09:37 +0000)
than :|.  Problem reported by Dan Jacobson.
Use "seek=2GiB" rather than the wordier "seek=`echo '2^31'|bc`".
Say "KiB" not the (inaccurate) "kilobytes".
Similarly for "GiB" and "gigabytes".

doc/coreutils.texi

index 85c4188e874dd1ed422a9bd97c7053112cbbcb38..3e9a7d3c728aae30b0431e87816c80d6e019331c 100644 (file)
@@ -8818,16 +8818,16 @@ file is the number of bytes reported by @code{wc -c} on regular files,
 or more generally, @code{ls -l --block-size=1} or @code{stat --format=%s}.
 For example, a file containing the word @samp{zoo} with no newline would,
 of course, have an apparent size of 3.  Such a small file may require
-anywhere from zero to 16 or more kilobytes of disk space, depending on
+anywhere from 0 to 16 KiB or more of disk space, depending on
 the type and configuration of the file system on which the file resides.
 However, a sparse file created with this command:
 
 @example
-: | dd bs=1 seek=`echo '2^31'|bc` of=big
+dd bs=1 seek=2GiB if=/dev/null of=big
 @end example
 
 @noindent
-has an apparent size of 2 gigabytes, yet on most modern
+has an apparent size of 2 GiB, yet on most modern
 systems, it actually uses almost no disk space.
 
 @item -b