Linux home directory cache

How can I clean HOME folder in linux?

There is a way to clean in a controlled way the $HOME folders than usually save cache files? E.g: I have a .config folder with more than 300MB. How can I clean it?. Is there a program that can be used to control the saved files? In .mozilla folder you can clean up using the Firefox options.

One that works with all applications, no. Note that the cache files should be stored in .cache, not .config. In the case of web browser, a large directory in .config is usually due to the browser’s history.

2 Answers 2

Bleachbit is a program that supports the configuration directories of many programs and is able to delete things that aren’t quite necessary (bleachbit is similiar to ccleaner on windows, if you happen to know that).

At least Ubuntu has it in it’s repositories.

You can see on repology, which distribution provides Bleachbit packages. repology.org/metapackage/bleachbit/versions

In the $HOME/.config folder there are files created by many different programs, and as such there is no easy way to manage them all.

These files should be created/managed/removed by each single application, and deleting them can (will) result in loss of data (personal configurations in this case).

Being that all the data contained should be configuration data, this folder should not contain a lot of data, 300MB is quite a lot of config.

You can enquire which subfolder contains most of the data by using the command:

and you can see by yourself which folder has grown out of control.

Источник

is it safe to delete ~/home//.cache/ [duplicate]

IF it’s cache it is probably meant to be cleared eventually, but can I just manually delete the whole .cache folder? It’s eating over 10 gigabytes on a 64 GB partition. I think it is mostly unity game engine and wine. The os is Manjaro.

Yes. But you don’t have to wipe it off indiscriminately — you can leave ~/.cache/fontconfig in place for instance.

per your recent edit, are you certain that this cache directory is multiple levels below your home directory? ~ is frequently used to represent /home/ , so it’s easy to mis-read the title of your question. Do you have any clues as to what created this extra-level .cache directory?

Читайте также:  Stop process terminal linux

1 Answer 1

I wouldn’t delete «~/home//.cache/» itself, but it should be fine deleting everything below that.

Edit: I should add that I’d want to know exactly what’s taking up that much space. A handy GUI tool for that is Filelight. Or, from the shell:

This will give you directory total sizes in human readable format.

This is what I recommend doing, especially before you run that backup you’ve been meaning to do of all those dot directories that you keep putting off for some reason.

I did use a gui tool, I think it might have even been Firelight to track it down, and that is how I discovered that nearly the entire 10 GB is the unity game engine and wine.

Linked

Hot Network Questions

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

ubuntu clear user cache

To delete a cache, select the entry and then click the Clean button present at the bottom-right corner of the tool’s UI. Before you jump in and start cleaning everything using Ubuntu Cleaner, keep in mind that caches are there for a purpose (as was explained in the beginning of the tutorial).

Is it safe to delete user cache?

It’s not bad to clear your cached data now and then. Some refer to this data as “junk files,” meaning it just sits and piles up on your device. Clearing the cache helps keep things clean, but don’t rely on it as a solid method for making new space.

Can I delete home user cache?

For the most part you can delete most anything in your home directory, programs or applications that require . cache (or other dot files such as . local ) will re-create them. Most of the time, at worst, you will lose custom configurations, but no real harm to the system.

Where is cache folder in Ubuntu?

Cache file location. A lot of cache files are stored in the . cache folder in the home directory. Each user on a Linux OS has a .

How do I clear my apartment cache?

The clean command clears out the local repository of downloaded package files. It removes everything except the partials folder and lock file from /var/cache/apt/archives/ . Use apt-get clean to free up disk space when necessary, or as part of regularly scheduled maintenance.

How do I clear apt-get cache?

You can run ‘sudo apt-get clean’ to clean out any cached .

Читайте также:  Linux mint cinnamon интерфейс

Can I delete cache files?

Older Android versions gave you the option to delete all cached files at once by going to Settings > Storage > Cached Data. From there, simply tap OK when you see the option to delete all cache files. Unfortunately, there’s no built-in way to clear all the cache on modern versions of Android.

Does clearing cache delete passwords?

The answer is “No” and the passwords do not get deleted along with the cache if you proceed with clearing the cache without checking the checkbox before the ‘Passwords and other sign-in data’ field.

How do I empty the cache on my iPhone?

  1. Open your iPhone’s settings.
  2. Scroll until you see the eligible app, then tap it.
  3. Look for a «Clear cache» option. If the toggle next to it is green, tap it to clear the app’s cache.

How do I clean up my home directory in Linux?

Actually, the best way to clean you home folder is backup your personal document then rm -rf ~/*; rm -rf ~/. *. But if you have a heavy-configured desktop environment or other applications and you don’t know how to backup their configuration files, this is not a good choice.

What is cache in Linux?

Under Linux, the Page Cache accelerates many accesses to files on non volatile storage. This happens because, when it first reads from or writes to data media like hard drives, Linux also stores data in unused areas of memory, which acts as a cache.

Where cache files are stored in Linux?

Cache files are stored in /home/username/. cache which mostly consists of your browser’s data, IDE’s (if you use any ) and other software.

What is Cache tracker?

According to its website, “Tracker is a filesystem indexer, metadata storage system and search tool.” . This is because as well as searching for files in the traditional way, by name and location, Tracker searches files’ contents and metadata.”

What is cache directory?

Local cache directories on the server are only used with caches that use the compact storage type. The server writes one bundle file (which can include up to about 16,000 tiles) to the local cache directory. When complete, the bundle is moved to the shared cache directory.

How to Convert m4v to wav format in Ubuntu

File

How do I convert M4V to WAV?How do I convert M4V files?How do I make a WAV file?How do I convert m4a to mp3 in Ubuntu?How do I convert an M4A file to .

How To Install And Use Shutter Screenshot Tool In Ubuntu 18.04

Shutter

Shutter Screenshot Tool Installation Through GUI The Ubuntu Software utility will open, from where you can search for Shutter by clicking the search b.

How to Set or Change the Time Zone in Linux

Time

How do I change the timezone in Linux?How do I manually change the time in Linux?How do I change timezone to UTC in Linux?How do I change timezone on .

Latest news, practical advice, detailed reviews and guides. We have everything about the Linux operating system

Читайте также:  Linux mint закрыть доступ

Источник

can I assume that the .cache directory exists?

I’d like to cache some files in $HOME/.cache , but I don’t know under what OSes I can assume that it already exists. Can I try to create it myself if it does not, or is that an error? What entity creates it? Is the location of .cache standardized and by what standard?

1 Answer 1

(Linux) File System Hierarchy

The linux file system hierarchy ( man hier ) does not imply any $HOME/.cache directory. From that man page, highlighting added by me:

/home

On machines with home directories for users, these are usually beneath this directory, directly or not. The structure of this directory depends on local administration decisions.

freedesktop.org Specifications

The .config and .cache directories are specified by freedesktop.org as reasonable defaults to the environment variables $XDG_CONFIG_HOME and $XDG_CACHE_HOME . Quoted from these specifications, again highlighting is added by me:

$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.

To follow their specifications, you might want to read $XDG_CACHE_HOME first, and if not set use $HOME/.cache and create it, if necessary. You will very often encounter these variables not set – in fact, it is not set on any of my machines.

Источник

How to clean caches in my homedir

My home directory is getting huge (100GB plus). When backupping it I notices that there are quite some caches there. Which important caches are there in my homedir and how should I clean them? One cache in particular is bothering me, the cache in .gvfs, where a copy of my network harddisk seems to be stored. How do I neatly clear this cache?

3 Answers 3

The .gvfs is where network attached folders live. If you’ve used «Places/Connect to Server», or typed smb://server/share into Nautilus, that’s where your network drive will «mount».

You need to exclude your .gvfs folder from your back up, unless you actually want your network drive and all its contents to be included in your back up.

Other places you should consider excluding :

  • ~/.mozilla/**yourprofilename**/Cache
  • ~/.cache (this is also where Chromium puts its cache, if you use that instead of firefox)
  • ~/.thumbnails
  • if you use VirtualBox, your guest systems are likely stored in .VirtualBox. On the one hand, you’ll want to back those up. On the other, they’ll be huge, so maybe you should back them up separately from your generic home drive backup?
  • if you use Dropbox, you’ll probably not have much need to back that up! Exclude wherever you told Dropbox to put its folder.

Finally, you can do some of this analysis yourself! Go to your Applications menu and choose Accessories, then run «Disk Usage Analyzer» (AKA baobab).

Источник

Оцените статью
Adblock
detector