I would like to backup some KDE settings but don’t really know which files to copy from .config
Searching for their names in github.com/KDE has given me some idea about their purposes but I couldn’t find any comments or documentation there either.
I would like to backup some KDE settings but don’t really know which files to copy from .config
Searching for their names in github.com/KDE has given me some idea about their purposes but I couldn’t find any comments or documentation there either.
A trick you can do to find out individual settings files, is:
~/.configfolder, rungit init.git add .git commit -m "Initial commit"git statusorgit diffto see which file got changed.You can then run
git restore .and repeat from step 4.If you’re done checking settings, just delete
~/.config/.git/.Or do something like this, which is simpler, easier on your SSD, and doesn’t require installing git:
That finds files under the
.configdirectory that were modified less than 3 minutes ago.thanks thats really useful! its amazing how much utility the linux shell has
(thanks both of you)
You’re welcome.
BTW, commands like these predate Linux. You’ll find them on BSD, macOS, Solaris, and practically every other OS with a Unix heritage.
Edit: You might find this video (or at least the segment I’ll link) interesting.
https://youtu.be/tc4ROCJYbm0?t=297
Ah, neat. I had to come up with my trick, because I wanted to know specifically which line changed to what. That’s pretty easy to see with
git diffthen. But yeah, if you just want to know which files changed, that’s certainly saner. 🙃