AIX

AIX

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

 View Only
  • 1.  History Of Commands

    Posted Wed October 11, 2006 01:53 PM

    Originally posted by: SystemAdmin


    I would like to display the list of shell commands i executed for the same session.

    Your help is highly appreciated and thanks in advance


  • 2.  Re: History Of Commands

    Posted Wed October 11, 2006 02:50 PM

    Originally posted by: SystemAdmin


    Use typescript as follows
    script /tmp/session01.log
    • issue whatever commands you are going to do
    exit
    This will store all the output in the session to /tmp/session01.log


  • 3.  the last 100 or so

    Posted Wed October 18, 2006 09:16 AM

    Originally posted by: nagger


    The last 100 or so commands can be listed via the history command but this includes commands in previous sessions.

    Deleting the home directory .sh_history
    removes the history but note ksh keeps the history of its commands so you have to start the ksh again.