Visto en: https://linuxhandbook.com/newsletter/25-37/?attribution_id=69315b4f7f7be70001e98162&attribution_type=post
#Linux #BashShell
DCLUG GNU / Linux Tips
Just sharing these, as they may be useful or interesting
DCLUG GNU / Linux Tips
Just sharing these, as they may be useful or interesting
Fun #BashShell #LinuxTip for when you want to remove a bunch of similar commands from the bash history.
> for i in `history | grep -i [part of command to remove] | cut -f 1 -d ' ' | sort -r ` ; do history -d ${i} ; done
The [part of command to remove] should be enough so you find the commands you want to remove, without accidentally including others.
The "sort -r" reverses the results so history deletes from the end, not the top. Very needed. #LearnedFromExperience
This Course is awesome!!!
https://youtube.com/playlist?list=PLIhvC56v63IKioClkSNDjW7iz-6TFvLwS&si=S36TeISg7O27_nVE
@epidiah I'm a huge advocate for #PowerShell on #Linux - it's everything a shell should be in the modern age.
But... I still fire off a quick #bashshell as often as not when I can't remember the PSH way to do something. Old habits die hard.
Anyone interested to follow and be followed by me?
I'm interested in:
#archlinux
#linux
#BASHShell
#lgbtq
#atheism
Look forward to hearing from you ☺️