CLT25: Durchleuchtet. Kommandos in der Bash-Historie wiederfinden

https://tube.tchncs.de/w/4dvtZQpfHD6TGTZ1bAye2Z

CLT25: Durchleuchtet. Kommandos in der Bash-Historie wiederfinden

PeerTube
Effortlessly Retrieve Commands From Linux Command History - OSTechNix

Master the art of effortlessly retrieve lengthy commands from history in Linux like a pro with our expert tips and tricks.

OSTechNix

I needed to remove all duplicates from ~/.bash_history, and since it contains the date and time for each command, I ended up with lots of dates and times with no commands (since they were duplicates and got removed).

And I didn't want to check 34k+ of lines manually. So, I wrote a Python script to solve that.

in case you're interested, here is the code: https://gitlab.com/ds.python/useful-scripts

#BASH #history #bashhistory #python #duplicates #duplicate #dedup #code #python3 #linux #gnulinux

Python / useful-scripts · GitLab

GitLab.com

GitLab
GitHub - ellie/atuin: 🐱 Magical shell history

🐱 Magical shell history. Contribute to ellie/atuin development by creating an account on GitHub.

GitHub
Please don't judge my history.

Posted in r/linuxmemes by u/SafeSwordfish1324 ‱ 550 points and 76 comments

reddit
Avoid Duplicate Entries In Bash History In Linux - OSTechNix

We run many commands everyday. In this guide, we will see how to avoid duplicate entries in Bash history in Linux.

OSTechNix

How often do you clean your '~/.bash_history'?

#bashHistory

How To Enable Timestamp In Bash History In Linux - OSTechNix

How do you know the time at which the command was executed? Easy! This guide explains how to enable timestamp in Bash history in Linux.

OSTechNix
How To Display Bash History Without Line Numbers - OSTechNix

This brief tutorial describes all the possible ways to display Bash history without line numbers on Linux operating systems.

How To Avoid Duplicate Entries In Bash History In Linux - OSTechNix

When working in commandline, we often run some commands multiple times. In this guide, we will see how to avoid duplicate entries in Bash history in Linux.

OSTechNix