this post was submitted on 27 May 2024
33 points (97.1% liked)

Linux

48039 readers
791 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
 

I've used distrobox more and more and am at the point where I need to start saving and integrating history differently. Or like, when I'm installing and building something complicated, I need to start saving that specific session's history. I am curious what others might be doing and looking for simple advice and ideas.

you are viewing a single comment's thread
view the rest of the comments
[–] Shdwdrgn@mander.xyz 8 points 5 months ago (1 children)

I think this is the only change I've made that affects my history... It simply ignores multiple copies of a command when you repeat it multiple times, making it easier to up-arrow through the unique things I've executed.

export HISTCONTROL=ignoredups

[–] treadful@lemmy.zip 3 points 5 months ago (1 children)

I was originally worried this would dedupe the entire history file, eliminating occasionally useful historical context. Apparently from what I've read, it only compares it to the most recent entry in the history file. Might have to include this one too. Thanks

[–] Shdwdrgn@mander.xyz 0 points 5 months ago (1 children)

I only include it because pretty much every guide on zfs setups recommends disabling it these days. I don't believe it's anything I've every had to use despite several drive crashes over the years.

[–] treadful@lemmy.zip 3 points 5 months ago (1 children)

Reply to the wrong person? What does shell history have to do with zfs?

[–] Shdwdrgn@mander.xyz 1 points 5 months ago

Heh sorry about that. There's also a zfs conversation going on where I had suggested disabling the 'dedup' option. I've never heard of dedupe being used in the context of the shell history, so yeah, I got confused.