Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active February 18, 2021 22:40
Embed
What would you like to do?
Calculate IndexedDB disk usage on Ubuntu, for Firefox, Chrome, and Epiphany Browser
#!/usr/bin/env bash
set -e
if [ -z "$1" ]; then
PORT=3000
else
PORT=$1
fi
echo "chrome"
du -bs ~/.config/google-chrome/Default/IndexedDB/http_localhost_"$PORT".indexeddb.leveldb
echo "firefox"
du -bs ~/.mozilla/firefox/*.default-release/storage/default/http+++localhost+"$PORT"
echo "epiphany"
du -bs ~/.local/share/epiphany/databases/indexeddb/v1/http_localhost_"$PORT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment