Bit bucket directory



Hello,

Is there a way to have a "black hole" directory, like /dev/null is a "black hole" file.

Let's call such a directory /dev/nulldir. Anything written to nulldir would disappear, and return success.

Background : I want to scp multiple large files to a remote system that has very limited disk space. (I'm testing scp behavior.)

$ scp xx1 xx2 root@xxxxxxxxxxxx:/dev/null
scp: /dev/null: Not a directory

I'd want to write...

$ scp xx1 xx2 root@xxxxxxxxxxxx:/dev/nulldir

and have it work :-)

Any ideas? Or some other way to look at the problem?

(My OS is Linux 2.6.22)

Regards.
.