Ubuntu – Where does Chromium keep the YouTube video files


I know that in Windows, Internet Explorer stores .flv temp files in temporary folder (C:\Users\%username%\AppData\Local\Microsoft\Windows\Temporary Internet Files) when viewing YouTube. And the same make and Google Chrome in Windows (C:\Users\%username%\AppData\Local\Google\Chrome\User Data\Default\Cache). So it's easy to find a copy of that .flv file.

How about Chromium in Ubuntu? Does it store browsing temp data and where?

Best Answer

I wrote a small bash script that automates the excellent solution from Radu:


pidNum=$(ps ax | grep flash | grep chromium | grep -v "grep" | sed -e 's/^ *//g' -e 's/ *$//g' | tr -s " " | cut -d " " -f 1)
procNum=$(ls -l /proc/${pidNum}/fd | grep Flash | tr -s " " | cut -d " " -f 9)

if [[ "$filename" == "" ]]; then

echo "Copying /proc/${pidNum}/fd/${procNum} to '${filename}.flv'"
cp /proc/${pidNum}/fd/${procNum} "${filename}.flv"
ls -lah "${filename}.flv"
Related Question