AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

how to clear the contens of history command >

  • 1.  how to clear the contens of history command >

    Posted Fri June 04, 2010 01:21 AM

    Originally posted by: sidharth2009


    hi

    when we execute 'h' we get list of commands executed,
    what is the command to clear these contents.

    Regds


  • 2.  Re: how to clear the contens of history command >

    Posted Fri June 04, 2010 07:51 AM

    Originally posted by: hdkutz


    Hello,
    h is an alias for the history command.
    To get rid of the history - it depends.
    Find out which shell you are using.
    E.g.: To stop logging in ksh use
    set -o nolog

    Cheers,
    ku