It seems Adobe is on a mission to make downloading Flash videos as difficult as possible for those of us used to grabbing them from /tmp. A few weeks ago, I noticed Flash videos were no longer being saved in the /tmp directory. Instead, they were being placed in the browser’s cache folder… minor inconvenience, life goes on. After a recent update however, the files are no longer being saved in the cache folder. A quick
lsof | grep -i flash
plugin-co 26044 o 17u REG 8,1 2020248 393786 /tmp/FlashXXxaK1Jq (deleted)
You guessed it… there is no file called FlashXXxaK1Jq in the /tmp directory. I see what you did there Adobe, nice one. I’ll spare you most of the technical details but the output indicates that the file is somewhere in the /proc directory. Using the process id 26044 (the second field in the output of the lsof command), we can hunt down the file FlashXXxaK1Jq in the /proc directory. So:
cd /proc/26044/fd ; ls -l | grep FlashXXxaK1Jq
will give you something like:
lrwx------ 1 o o 64 2011-10-18 10:30 17 -> /tmp/FlashXXxaK1Jq (deleted)
So the flash video is named 17 and being symlinked in a sneaky manner to /tmp/FlashXXxaK1Jq (deleted). Now do something like:
cp 17 ~/Videos/funny-youtube-video.flv
and you’re done. Go back to your Videos folder and watch that cat playing the piano to your heart’s content.
And now, I must cover my tuchis so here goes… downloading copyrighted material may be illegal where you live.