piping output of dd through bzip2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



no need to even do that, dd's output only goes to 'of' if the of= parameter 
is specified, otehrwise it copies to standard output.

all you would need is:
dd if=/dev/hda | bzip <whatever>
replace <whatever> with the command line parameters needed for bzip to output 
to a file (refer to 'man bzip' for details).

> The output of dd always goes to the device or file specified for of=
> Example: dd if=/dev/hda of=something
> My problem here is I don't know how you can specify that of is to be piped
> into bzip2.  Some programs use the `-' to represent the standard pipe. in
> which case, you might be able to say:
> dd if=/dev/hda of=-; bzipz -
> Sorry, don't have experience with bzip2's command parms but hopefully this
> makes sense in concept.




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux