ralph332.bsky.social

ralph332.bsky.social

@ralph332.bsky.social

20 followers18 following7 posts

ralph332.bsky.social reposted

Want to to delete all `foo` commands from your bash history. Here is how to do it with some bash kung-fu: line=$(history | grep 'foo' | awk '{ print $1 }' | sort -r) history -d $line See www.cyberciti.biz/faq/delete-c... for more info. #unix #linux #history #macos #freebsd

cyberciti.bizHow to delete a single command from history on a Linux/Unix Bash shellExplains how to delete and clear the bash command line terminal history for given single command line number or all history once on a Linux, macOS & Unix.

You are up to date.