clear history from shell

Grizzly Real_Grizz_Adams at yahoo.co.uk
Tue May 17 06:27:13 UTC 2016


Monday, May 16, 2016  at 23:57, Karl Auer wrote:
Re: clear history from shell (at least in part)

>On Mon, 2016-05-16 at 13:18 +0100, Grizzly wrote:
>> I have a simple script,

>You changed the shell from bash (or dash) to sh in the first line of
>your script. Change it to /bin/bash and your script will run.

>However, it will not work as you expect - it will clear the history in
>a new shell, not your interactive shell. And it will not exit your
>shell.

Yes I see that (or don't see anything) now

>After fixing the shell specifier, you could run the script like this
>and it would sort of work:

>. Scripts/myclean.sh

Now that works a dream




More information about the ubuntu-users mailing list