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

Linux

47538 readers
514 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
[–] [email protected] 79 points 10 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

[–] [email protected] 50 points 10 months ago (1 children)

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

[–] [email protected] 2 points 10 months ago

not necessarily during runtime

[–] [email protected] 29 points 10 months ago

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

[–] [email protected] 24 points 10 months ago

You shouldn't have done that Dave.

[–] [email protected] 4 points 10 months ago (2 children)

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

[–] [email protected] 9 points 10 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

[–] [email protected] 3 points 10 months ago

The contents were deleted