tempfs article
This commit is contained in:
20
system/clean_your_downloads.md
Normal file
20
system/clean_your_downloads.md
Normal file
@@ -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
|
||||||
|
```
|
||||||
|
|
Reference in New Issue
Block a user