From af52292ef8014733ed838d51d597b678468b1650 Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 22 Aug 2025 16:18:28 +0200 Subject: [PATCH] tempfs article --- system/clean_your_downloads.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 system/clean_your_downloads.md diff --git a/system/clean_your_downloads.md b/system/clean_your_downloads.md new file mode 100644 index 0000000..a512453 --- /dev/null +++ b/system/clean_your_downloads.md @@ -0,0 +1,20 @@ +--- +title: "Clean Your Downloads" +tags: [ "system", "tmpfs" ] +--- + +'Downloads` directory always too full of crap? +Make it a temporary filesystem! +Everything will be deleted whenever you reboot. + + +```sh +rm -rf ~/Downloads # Be brave! +mkdir Downloads +cp /etc/fstab /tmp/ +echo "tmpfs $HOME/Downloads tmpfs defaults,size=1G 0 0" | sudo tee -a /etc/fstab +sudo systemctl daemon-reload # Ignore this if you don't use systemd +sudo mount -a +mount | tail -1 +``` +