Gentoo Archives: gentoo-user

From: Matt Neimeyer <matt@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Pipe Lines - A really basic question
Date: Thu, 09 Sep 2010 17:25:15
Message-Id: AANLkTin_3irWEkN8Goy=D3edp=x3XOYa5wgR4vkomLJe@mail.gmail.com
My generic question is: When I'm using a pipe line series of commands
do I use up more/less space than doing things in sequence?

For example, I have a development Gentoo VM that has a hard drive that
is too small... I wanted to move a database off of that onto another
machine but when I tried the following I filled my partition and 'evil
things' happened...

mysqldump blah...
gzip blah...

In this specific case I added another virtual drive, mounted that and
went on with life but I'm curious if I could have gotten away with the
pipe line instead. Will doing something like this still use "twice"
the space?

mysqldump | gzip > file.sql.gz

OR going back to my generic question if I pipe line like "type | sort
| unique > output" does that only use 1x or 3x the disk space?

Thanks in advance!

Matt

P.S. If the answer is "it depends" how do know what it depends on?

Replies

Subject Author
Re: [gentoo-user] Pipe Lines - A really basic question Etaoin Shrdlu <shrdlu@×××××××××××××.org>
Re: [gentoo-user] Pipe Lines - A really basic question Andrea Conti <alyf@××××.net>
Re: [gentoo-user] Pipe Lines - A really basic question Florian Philipp <lists@××××××××××××××××××.net>
Re: [gentoo-user] Pipe Lines - A really basic question Daniel Troeder <daniel@×××××××××.com>