The officially official Devuan Forum!

You are not logged in.

#1 2019-09-17 16:02:45

danista
Member
Registered: 2017-10-18
Posts: 40  

.cache folder in root

How to remove .cache folder in / ? I do not know what software creates this directory. It is always empty.

Offline

#2 2019-09-18 15:35:46

danista
Member
Registered: 2017-10-18
Posts: 40  

Re: .cache folder in root

Do you have such a directory in the root drive? I found entries only in /var/log/fontconfig.log

/.cache/fontconfig: not cleaning non-existent cache directory

But it probably has nothing to do.
I checked the settings fontconfig

<!-- Font cache directory list -->
                
        <cachedir>/var/cache/fontconfig</cachedir>
        <cachedir prefix="xdg">fontconfig</cachedir>
        <!-- the following element will be removed in the future -->
        <cachedir>~/.fontconfig</cachedir>

Offline

#3 2019-09-18 18:49:09

backwater
Member
From: Lima, Peru
Registered: 2019-09-17
Posts: 3  

Re: .cache folder in root

danista wrote:

How to remove .cache folder in / ? I do not know what software creates this directory. It is always empty.

Hi Danista,

Well even if you delete it (with rm -rf), programs that require cache to run will create a new .cache folder so it is pointless to remove it. be careful now with that command, you don't want to brick your system. :-)


Virtue et Silencio.

Offline

#4 2019-09-18 21:02:59

danista
Member
Registered: 2017-10-18
Posts: 40  

Re: .cache folder in root

Thanks for the answer, backwater. I tried to create a file with the name ".cache" as a result, this does not affect the operation of the my system.

In my previous version Debian this folder was not available. I think this is due to the pulse. I did not installing the pulse, but the folder is created in ~ /.config/pulse

Offline

#5 2019-09-19 14:58:29

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: .cache folder in root

It gets created when you run a root application on the user's desktop. My /root/.cache has subdirectories named after the apps I've run as root.

Offline

#6 2019-09-19 16:58:16

danista
Member
Registered: 2017-10-18
Posts: 40  

Re: .cache folder in root

I don't mean /root/.cache but /.cache

├── bin
├── boot
├── .cache
├── dev
├── etc
├── home
├── lib
├── media
├── mnt
├── opt
├── proc
├── root
├── run
├── sbin
├── srv
├── sys
├── tmp
├── usr
└── var

a folder is created at boot time

Offline

#7 2019-09-20 00:44:50

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,409  

Re: .cache folder in root

danista wrote:

I don't mean /root/.cache but /.cache

a folder is created at boot time

Oh! I checked two asciis, one jessie and a beowulf. I don't have one, and I don't recall ever seeing that.

Offline

#8 2019-09-20 07:41:48

yeti
Member
From: I'm not here: U R halucinating
Registered: 2017-02-23
Posts: 304  

Re: .cache folder in root

I see "/.cache"...
...not on devuan1/amd64.
...not on devuan1/i386.
...on devuan2/amd64.
...on devuan2/i386.
...on devuan3/amd64.
...on devuan3/i386.
...not on devuan3/armel(pi1).
...not on devuan3/armhf(pi2).
...not on devuan3/arm64(pi3).
...on devuan3/armhf(cubie3).
...on devuan-ceres/amd64.
...on devuan-ceres/i386.
...on debian10/amd64.
...not on raspbian10/armhf.

The beowulf systems may have inherited by being upgraded from ascii and my debian10 was upgraded from debian9, so "/.cache" may be a relict too. My Cubies started their existence as debian9 and were "transgraded" to ascii and later upgraded to beowulf. Maybe the devuan-PIs simpy don't have it because X11 never was installed? I think my raspbian10-PIs haven't seen X11 too. The devuan1-systems run XFCE like most other systems and don't have "it".

Currently I don't see a pattern...

Last edited by yeti (2019-09-20 10:30:57)


<𝚋𝚘𝚍𝚢 𝚘𝚗𝚕𝚘𝚊𝚍='𝚍𝚘𝚌𝚞𝚖𝚎𝚗𝚝.𝚋𝚘𝚍𝚢.𝚒𝚗𝚗𝚎𝚛𝙷𝚃𝙼𝙻="𝙳𝚒𝚜𝚊𝚋𝚕𝚎 𝙹𝚂!";'>
𝔓𝔩𝔢𝔞𝔰𝔢 𝔩𝔢𝔞𝔳𝔢 𝔶𝔬𝔲𝔯 𝔣𝔞𝔲𝔩𝔱𝔰 𝔦𝔫 𝔱𝔥𝔢 𝔰𝔢𝔠𝔱𝔦𝔬𝔫 𝔟𝔢𝔩𝔬𝔴 𝔞𝔫𝔡 𝔡𝔬𝔫'𝔱 𝔣𝔬𝔯𝔤𝔢𝔱 𝔱𝔬 𝔲𝔫𝔰𝔲𝔟𝔰𝔠𝔯𝔦𝔟𝔢!

Offline

#9 2019-09-20 16:35:38

chris2be8
Member
Registered: 2018-08-11
Posts: 264  

Re: .cache folder in root

Where is root's home directory? head -1 /etc/passwd should show you.

If that's / then root's files such as .cache would end up there.

Chris

Offline

#10 2019-09-20 20:37:10

danista
Member
Registered: 2017-10-18
Posts: 40  

Re: .cache folder in root

# head -1 /etc/passwd
root:x:0:0:root:/root:/bin/bash

Offline

#11 2019-09-20 20:42:48

danista
Member
Registered: 2017-10-18
Posts: 40  

Re: .cache folder in root

yeti wrote:

...on debian10/amd64.

I thought that this bug is only in Devuan.. Thx

Offline

#12 2019-09-21 16:00:09

chris2be8
Member
Registered: 2018-08-11
Posts: 264  

Re: .cache folder in root

danista wrote:
# head -1 /etc/passwd
root:x:0:0:root:/root:/bin/bash

OK, that's one possible cause ruled out.

Chris

Offline

Board footer