Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Then I would not have been able to demonstrate how to use the gzip command with dd.


sort by: page size:

> How do you combine dd with gzip?

# dd < /dev/ada0 bs=8m | gzip -c -9 > /mnt/file.raw.gz

> How do you use pv if the source is raw device?

# dd < /dev/ada0 bs=8m | pv | dd > /dev/ada1 bs=8m

> How do you dd over ssh?

# dd < /dev/ada0 bs=8m | gzip -9 | pv | ssh user@host 'dd > /dev/da1 bs=8m'

> This belief can make simple tasks complicated.

As master Dennis Ritchie once said - "UNIX is very simple, it just needs a genius to understand its simplicity."


I'm confused about the challenge. Why wouldn't simply using gzip work? I must be missing something obvious.

gzip is very slow. I don't know why anyone would still use it today.

Next time try gzip -1, it's much faster.

Why no comparsion with common contestants: gzip, bzip, dd?

IIRC gzip doesn't make sense under 500 bytes

If you'd included the "zip" format in your analysis, gzip would not be the best at something anymore.

I get the impression the author missed out on zcat for reading gzipped files.

You can definitely be in situations where you have python but not gzip.

My complaint is that I can't upload a gzip'd file and have it decompressed on their end, yes.

Yes, the other things I could have meant would have been odd, so I'm not sure why you spent time typing them out.


This probably won't work if you have gzip on, right?

gzip will negate a great deal of that advantage.

gzip?

Gzip?

Could be done with a gzip bomb.

I might be overexplaining but it's a joke because lossy compression of a gzip would end up with you losing data that could render the entire file unreadable.

Gzip could certainly be abused.

Not without changing the structure of the gzip unfortunately.

Always direct.

Today is the first time I've seen gzip actually happen though! If only all my other problems were so easily solved by whining!

But still: sending, compressing, uncompressing stuff that definitely adds no value and would be trivial to statically omit almost all of is still a downside...

next

Legal | privacy