this post was submitted on 03 Dec 2023
424 points (96.9% liked)

Linux

48315 readers
836 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Alt TextA screenshot of a file manager preview window for my ~/.cache folder, which takes up 164.3 GiB and has 246,049 files and 15,126 folders. The folder was first created about 1.75 years ago with my system

you are viewing a single comment's thread
view the rest of the comments
[–] ryannathans@aussie.zone 79 points 11 months ago (5 children)

I did this and now my games have no icons in lutris, some of my gnome settings got reset and my proton email bridge stopped working

[–] lloram239@feddit.de 115 points 11 months ago

Time to write some bug reports. ~/.cache is supposed to be disposable.

[–] sebsch@discuss.tchncs.de 50 points 11 months ago (1 children)

So the apps are broken. Cache is meant to be deleted at any time

[–] redd@discuss.tchncs.de 3 points 11 months ago (1 children)

not necessarily during runtime

[–] 30p87@feddit.de 2 points 11 months ago

But a restart of an app should fix it.

[–] MangoPenguin@lemmy.blahaj.zone 30 points 11 months ago

For some reason devs can't wrap their head around cache being temporary.

[–] Iapar@feddit.de 25 points 11 months ago

You shouldn't have done that Dave.

[–] stepanzak@iusearchlinux.fyi 4 points 11 months ago (2 children)

Cannot this be caused by deleting the folder and not just everything inside?

[–] glibg10b@lemmy.ml 9 points 11 months ago

It's likely. mkdir fails to create a subdirectory such as ~/.cache/mozilla/ if ~/.cache/ doesn't exist, unless -p is explicitly passed to mkdir

Of course, not everything is a shell script, but I imagine the directory creation functions in many languages work similarly

[–] ryannathans@aussie.zone 3 points 11 months ago

The contents were deleted