Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

best way to clean the .config directory

323 views
Skip to first unread message

seth hurst

unread,
Feb 16, 2023, 8:33:16 AM2/16/23
to
Was wondering the best way to clean the .config directory? Would it be
better to make the changes to my programs and settings then backup the
directory?

Marco Moock

unread,
Feb 16, 2023, 9:15:29 AM2/16/23
to
What do you want to clean?
That directory contains user specific configuration files for the
applications. You can delete folders there, but this will reset the
application's preferences.

seth hurst

unread,
Feb 16, 2023, 10:17:04 AM2/16/23
to
On Thu, 16 Feb 2023 15:15:26 +0100, Marco Moock wrote:

> Am 16.02.2023 schrieb seth hurst <hursts...@gmail.com>:
>
>> [quoted text muted]
>
> What do you want to clean?
> That directory contains user specific configuration files for the
> applications. You can delete folders there, but this will reset the
> application's preferences.

it sometimes gets full after a wile of installing and
uninstalling programs. I would like to not delete the folders for the
programs I already have on my system but for the ones that are not
installed. archlinux on a 1tb drive with a 6tb exsternal. Vanella arch
running lxde-gtk3 version.

Dan Purgert

unread,
Feb 16, 2023, 11:32:16 AM2/16/23
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
If you've removed the program, then you can certainly nuke
$HOME/.config/program -- but honestly most configs are really small, a
quick check here is on average under 1 MiB (and then there's Unity
sitting at just under a GiB...).

Discounting unity, there's like 100 MiB worth of actual config files in
there; even if I somehow cleaned 90% of that, the freed space is nothing
more than rounding error.

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmPuWikACgkQbWVw5Uzn
KGCXCxAAhQ8/0uaC2uG/RPY9atyxoQao+A1AofLg0JqM+i1jOJRNyVGoz4KtDFYr
GzOfW69F7YmusC6y26Awc28eyezZ1Jc2sAeSM8j0GnBxK8hbmpuGp5bZ0Df3LipI
WG3EPxkr96D/FHS6HhNZpbLmv7R8niOrNyZNX6Ufgt2SAk7mtD58b4jersi5K4a9
iRewzvmFfniNWrzB435PntwaeEb/MPbSRd6X3fiFzWQ/uhOiH2ePV0dyBsz0719B
YtwiDHOL6NZJUmj1uXisTHeMMVBJySmhgcdFn9pG3SI7I9NPqzxPuIP5IedWyi0B
EiSmPLrQ6EQCOM2FAKFqKbur624pJaXls5AGzYSH+d1f+fd0+B4+bCoR+rl2501v
f/BUe3FSl3N7Q9tXvMBgM9x/lE/VgxW3ZGZGXhw3/cUx7VOVF4P77i0ZhxbjRK+8
fXwv5VWzL1DNVTvN51uWjNV7uddXpqQht7YAHv2paowcwLJswXMPwGngdzhNW5n4
/QD8Ok0kdZmNjCIt5mchDdi8JMT3OTN+eOhie6uB0c0KZ0FCn8QWylauR24a0vRn
6qriF4O9IFHS9rWJeaq/dtqlxVsvFSLyUSeIqbNu41EekO80YM0LUA2h3xlp8pXo
fnyGcqSUSdNbWN7yTCLYCovp3m3/FzuBdstaiZRGaoN51ZWXj9g=
=nZUu
-----END PGP SIGNATURE-----

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

Blue-Maned_Hawk

unread,
Feb 16, 2023, 5:51:13 PM2/16/23
to
On 2/16/23 11:29, Dan Purgert wrote:
> Discounting unity, there's like 100 MiB worth of actual config files in
> [.config]; even if I somehow cleaned 90% of that, the freed space is
> nothing more than rounding error.
>

​Maybe it's rounding error for _your_ system, but that doesn't mean it
is for others.

--
⚗︎ | /blu.mɛin.dʰak/ | shortens to "Hawk" | he/him/his/himself/Mr.
bluemanedhawk.github.io
Bitches stole my whole ass ␔🭖᷿᪳𝼗᷍⏧𒒫𐻾ࣛ↉�⃣ quoted-printable, can't
have shit in Thunderbird 😩

J.O. Aho

unread,
Feb 17, 2023, 2:13:23 AM2/17/23
to
There is no best way, tend to be a manaul work to clean up after
programs as they can store files in many places like ~/.local/share
~/.cache and so on.

Take a backup of your config directory, then you can restore config if
you happen to remove the config. If you use btrfs, then just take a new
read only snapshot just before you start and you can easilly restore the
files.

--
//Aho

Dan Purgert

unread,
Feb 17, 2023, 7:46:48 AM2/17/23
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2023-02-16, Blue-Maned_Hawk wrote:
> On 2/16/23 11:29, Dan Purgert wrote:
>> Discounting unity, there's like 100 MiB worth of actual config files in
>> [.config]; even if I somehow cleaned 90% of that, the freed space is
>> nothing more than rounding error.
>>
>
> Maybe it's rounding error for _your_ system, but that doesn't mean it
> is for others.

As far as I am aware; tools displaying size data round to the nearest
100M when the size is <10G (e.g. you see "9.8G" for a file / directory
that is 9.75 to 9.84G), or to the nearest 1G when the size is 10G or
more (e.g. you see "27G" for files that are 26.5 to 27.4G).

Now, the drive in this machine is "only" 250G, and I believe that seth
mentioned his $HOME resides on a 1T filesystem. So even if we ignore
that the 90MiB is lost in rounding; we're talking about freeing up
approximately 0.04% of my drive (or 0.01% of seth's). A few hundredths
of one percent of the drive's capacity really aren't worth chasing
after; especially considering there are easier ways to free up space
(like deleting that 40G of stuff I have in ~/Downloads ).

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmPvdrgACgkQbWVw5Uzn
KGDHrQ/+MwY9+ny93T1mU6W4KNdARtMtXsEZD2tTXVGfEmBNj03geIjLIVMnIeiD
H6+VSrN5LTfQfFwdqu/RBeChUX0IS9XqECuM79eHoAf11+8C3sxBW+dZ5ms1fSSw
2xUGefjN83dwZnQSlg1iG/jMtG7bBA55/L68WEwwJpUy9IXPZ91fHlMNFH4O8NFu
+U8k8E6ZrjtfrgrYhL/kmhU+CUte7+MEiKlqsTij1cv5HyRNwM1HlOPUdtPmIri5
dP570MAKLZvz1B4STMtnQdvSpIZMnpkY1PkCOv9+HN0DygI9+xxAYaWK9F6r1oxJ
Ydt1UmkOT/Xu4nNZk2p+KPMUzJgFIxygP9N7XFSGwpjLqvehS4vaWQ8gbcOtzf+P
59CTxfHenSJvJFj1Qszd/WH+pYKkefij7J0O0LHAl5OkjEgkmnAS5lcCQyRiwmVr
gtH5/LhsxrpQHsg3YEjr3VQaZFK+GZpMJBOwECLumX631P/1HwK+HWigqItloQnH
MSapkbq0G9FrlZn8U/zuk6uVT+1eES6rK1Ov50iHhGfninIiWaHsIuTjDye0C0/9
yMfCNWELXXdzZKLmbp7iGaxO9Yj5k4Ye/iBeuA8EbfS/Ojo5Z/zZsqh0R/lrvtzB
qwr9p9XwDpP5lglRcRwKPO1MQ2QezGjbHLU5B5MFXVx6yC6McrI=
=Sm85

wimpunk

unread,
Feb 17, 2023, 10:08:12 AM2/17/23
to
On 2/16/23 14:29, seth hurst wrote:
Maybe you can check on the atime of the files?

find .config -type f -atime +365

I guess if you didn't used that file for a year, it's probably related
to a program you don't use anymore.
0 new messages