Re: Bit bucket directory



Noob wrote:

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)

No cookie? :-)
.



Relevant Pages

  • Re: Bit bucket directory
    ... Anything written to nulldir would disappear, and return success. ... I want to scp multiple large files to a remote system that has very limited disk space. ... $ scp xx1 xx2 root@xxxxxxxxxxxx:/dev/nulldir ... I wouldn't consider writing my own file system "quick". ...
    (comp.unix.programmer)
  • Re: Bit bucket directory
    ... nulldir would disappear, and return success. ... I want to scp multiple large files to a remote system ... $ scp xx1 xx2 root@xxxxxxxxxxxx:/dev/nulldir ...
    (comp.unix.programmer)