News for hackers. Stuff that matters.
Re:Rm does not permanently delete files by wiredfool on Thursday May 19, 2016 @09:54AM (#11730168)
Looking at man shred, apparently one can shred stdout.
Re:Rm does not permanently delete files by brudgers on Thursday May 19, 2016 @03:16PM (#11732913)
"Shredding stdout" sounds like the highest complement for a command line utility.
Re:Rm does not permanently delete files by gcr on Thursday May 19, 2016 @11:15AM (#11730838)
Why not? One can shred any file descriptor. :-)

I bet one could even shred a network socket.

Re:Rm does not permanently delete files by emodendroket on Thursday May 19, 2016 @11:12AM (#11730823)
Is there any advantage to specifically disabling that?
Re:Rm does not permanently delete files by dTal on Friday May 20, 2016 @10:33AM (#11738069)
And yet it doesn't "work":

  dtal@reepicheep:~$ cat /dev/urandom | shred -
  shred: -: invalid file type
Re:Rm does not permanently delete files by colanderman on Saturday May 21, 2016 @10:23AM (#11744765)
Your command points stdin to the output of some random command. Even if you actually redirected stdout (pipe to cat, not from), it still wouldn't work, because cat's stdin isn't a file.

You need to point stdout to an actual file, like this:

    shred > /my/secret/file.txt
Why would you do this? At the end of a long batch of commands that all write to some temporary file opened on stdout. Not uncommon in shell-land.