News for hackers. Stuff that matters.
Re:Linux shell tips and tricks by fit2rule on Sunday November 24, 2013 @11:42AM (#6790019)
Cheese note: I still do the ol' pipe dance when de-compressing archives, like this:

    gunzip -c somefile.tar.gz | tar xvf - 
The reason? Well, its like this: I learned it that way on machines that had, typically, about 4 megs available. So it used to be, back in the ol' days, that if you tried to do it like:

    tar xvzf somefile.tar.gz
.. you'd run out of RAM, get into swapfile sadness, and so on.

Piping it through the console first, used the tty-buffers, which blocked whenever exhaustion occurs, but nevertheless: recovered a lot smoother than when heavy swap was involved ..

Dunno if its still 'true' (could be a mythos I'm passing on from the old, drunk sysadmin I learned the rule from) but it aways bugs me when I forget to do it 'the new way' ..

Re:Linux shell tips and tricks by bediger4000 on Sunday November 24, 2013 @06:16PM (#6791624)
This is at least sometimes still true in corporate Linux environments. Giant, Immoral MegaCorps apparently can't be bothered to spring for big disks, so doing "tar xzf" or gunzipping something before un-tarring often fills up the filesystem. Embarassing, but true, given that you can hoof it to Office Depot and buy terabytes for a couple hundred, if they'd just let you.
Re:Linux shell tips and tricks by jlgaddis on Sunday November 24, 2013 @02:19PM (#6790673)
> I still do the ol' pipe dance when de-compressing archives, like this:

Same here. Old habits die hard, I suppose.