Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Last active April 21, 2023 12:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/dccd75c4265d5e23fe6dcea69bae6b2f to your computer and use it in GitHub Desktop.
Save nolanlawson/dccd75c4265d5e23fe6dcea69bae6b2f to your computer and use it in GitHub Desktop.
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