1
vote
2answers
52 views

Reset History inside a bash script [duplicate]

I want to make a bash script that clears the history i.e. works similarly as the command history -c So I started with the following code:- #!/bin/bash history #displaying history history -c ...
0
votes
2answers
572 views

clean history script not working

I'm creating a script to run in the start up that says: _cleanthehistory () { /bin/echo "cleaning the history" history -c } _cleanthehistory The deal here is that this does not work from the ...