Last active
April 21, 2023 12:43
-
-
Save nolanlawson/dccd75c4265d5e23fe6dcea69bae6b2f to your computer and use it in GitHub Desktop.
Calculate IndexedDB disk usage on Ubuntu, for Firefox, Chrome, and Epiphany Browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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