Re: How to clear history of commands in unix

From: Laurenz Albe (albe_at_culturallNOSPAM.com)
Date: 09/09/04

  • Next message: Stephane CHAZELAS: "Re: How to clear history of commands in unix"
    Date: Thu, 9 Sep 2004 07:39:50 +0000 (UTC)
    
    

    astrorail <srinee@gmail.com> wrote:
    > exec "$0" returns with a message
    > -tcsh: Command not found.

    grep $LOGNAME /etc/passwd|awk -F: '{ print $7 }'

    This will tell you how to invoke your shell.

    > my shell is tcsh.
    > i restarted the shell but the h command still shows the history
    > commands. May be I am not deleting the proper history file.

    Look at the man page of your shell to find out about command history.

    Yours,
    Laurenz Albe


  • Next message: Stephane CHAZELAS: "Re: How to clear history of commands in unix"

    Relevant Pages

    • Re: Global history with context
      ... In bash (or, failing that, in some other shell), can I ... The bash history mechanism doesn't seem to be able to do ... I want every command I enter, in every shell, to be ...
      (comp.unix.shell)
    • Global history with context
      ... In bash (or, failing that, in some other shell), can I ... The bash history mechanism doesn't seem to be able to do ... I want every command I enter, in every shell, to be ...
      (comp.unix.shell)
    • Re: command stack in buffer
      ... Vijay Shanker Dubey ... But if my history list ... > execute same command multiple times. ... "ssh -" and the shell finds the right one. ...
      (Ubuntu)
    • Re: command line history
      ... it stores my command line history between ... But on my mac os/x 10.4.7, when I SSH to the mac, I have no history. ... my shell is tc. ...
      (comp.sys.mac.system)
    • Re: How to disable command prompt history?
      ... last executed commands by pressing Up Arrow? ... That would depend on which shell you are running. ... By default most of the shells like bash, zsh, ksh have history option. ... I /could/ recreate that arcane command ...
      (freebsd-questions)