clear history from shell

Nicolas Calderon Asselin nicolas.calderon.asselin at gmail.com
Tue May 17 13:41:18 UTC 2016


On Mon, May 16, 2016 at 12:08 PM, Grizzly <Real_Grizz_Adams at yahoo.co.uk>
wrote:

> Monday, May 16, 2016  at 16:29, Tom H wrote:
> Re: clear history from shell (at least in part)
>
> >On Mon, May 16, 2016 at 3:57 PM, Karl Auer <kauer at biplane.com.au> wrote:
>
> >Is "history -w" necessary?
>
> From my (albeit) limited experience, yes, history -c clears the current
> history, but once you start a new terminal session its back like a bad
> penny,
> of all the many ways I found (via google) to clear the history this works
> the
> best (and is easy to remember)
>
> It would be nice if there were a "Unique" switch for history so if a
> command
> has been used before (or maybe was executed from history itself) its not
> added
> to list again, just a thought
>

First result from google for "bash history unique":
http://askubuntu.com/questions/15926/how-to-avoid-duplicate-entries-in-bash-history



> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20160517/6ee2e780/attachment.html>


More information about the ubuntu-users mailing list