this post was submitted on 07 Dec 2023
18 points (95.0% liked)

Linux

47549 readers
617 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
 

Electron folder under /home/cache has reached 1.3GB.

I want to clean it but I don't know how or would be wrong?

Is there a command like yarn cache clean?

top 10 comments
sorted by: hot top controversial new old
[–] Strit@lemmy.linuxuserspace.show 17 points 10 months ago (2 children)

It's a cache. It's meant to be deleted from time to time, especially if the application is not good at it by itself.

So simply delete the folder. Anything electron will need after that will be re-downloaded when the application is run again.

[–] sorrybookbroke@sh.itjust.works 7 points 10 months ago* (last edited 10 months ago)

You should delete the contents of the cache folder instead of the folder itself as sadly some apps will break pretty spectacularly if they can't find the folder itself. Otherwise you're entirely correct

[–] sandayle@iusearchlinux.fyi 6 points 10 months ago (1 children)
[–] greybeard@lemmy.one 26 points 10 months ago (2 children)

General trick for unknowns like this, you can rename a folder, open the applications. If they work, it is likely safe to delete that folder. If not, you rename that folder back. A simple way to test removing something non-destructively.

[–] empireOfLove@lemmy.one 4 points 10 months ago (2 children)

folder.old

then it's all fun and games till you've been fucking with it for 3 hours and you get to folder.old.old.old.old.old

[–] greybeard@lemmy.one 2 points 10 months ago

I've been there.

[–] turbowafflz@lemmy.world 1 points 10 months ago (1 children)

I always do folder.save, then folder.oldsave, then folder.oldoldsave. It isn't any better but it is slightly different

[–] bustrpoindextr@lemmy.world 4 points 10 months ago (1 children)
[–] IlliteratiDomine@infosec.pub 4 points 10 months ago

.bak gang rise up.

[–] sandayle@iusearchlinux.fyi 2 points 10 months ago

Nice trick, thanks.