[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/home/anon/.cache

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 3

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
>>
File: stevejobscheeseheadwithnachos.jpg (41KB, 500x363px) Image search: [Google]
stevejobscheeseheadwithnachos.jpg
41KB, 500x363px
I'd suggest you remove it when you turn on, just make a bash script
rm -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
>>
File: 1489018990799.jpg (182KB, 515x408px) Image search: [Google]
1489018990799.jpg
182KB, 515x408px
>>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
Thread posts: 10
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.