This folder is becoming fucking massive.
Is there a way I can automatically get my system to purge the folder whenever I shut my computer off?
Hopefully without making an alias?
>>60156561
>off
What's this?
>>60156561
Mounting tmpfs or ramfs will do that
I'd suggest you remove it when you turn on, just make a bash scriptrm -r /home/anon/.cache/*
>>60156575
I don't want my mommy's electricity bill to be too high
>>60156712
Why would I do it after a boot? Wouldn't it be better to do this during a shutdown so the applications don't get confused?
Since it appears there's no way to automatically do this, I was thinking of an alias like
alias shutown="sudo rm -rf /home/anon/.cache/* && sudo shutdown -P 0"
>>60156757
>>60156700
This is the proper answer, unless you're short on RAM. Plus it will make things faster
>>60156798
>>60156700
Thanks. It looks like tmpfs is the only option because ramfs requires root.
I'll edit my /etc/fstab entries
tmpfs /home/anon/.config tmpfs nodev,nosuid,noexec,nodiratime,size=1024M 0 0
>>60156947
>/home/anon/.config
>>60156947
>>60157684
How fug'd is OP?
>>60159552
Not that fug'd unless he deleted the original .config, otherwise it will just mount over the original folder.
OP will just have to replace the entry from their fstab with .cache