Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Raspberry Pi OS • Clearing history in a bash script

$
0
0
Hello all,

I'm trying to clear my bash history within a script, via "history -c". It doesn't work, so I've preceded it with "set -o history" (to enable the history command within the shell) but this doesn't appear to help.

Any ideas?

Thanks,
Richard.

Statistics: Posted by riph72-lumi — Thu Feb 19, 2026 1:54 pm — Replies 11 — Views 217



Viewing all articles
Browse latest Browse all 7503

Trending Articles