remove command history

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default remove command history

    If I press button "up" I can see all comand which I write before.
    How I can clear this command history under suse linux 8.0?


    Evgeniy Petrov Guest

  2. Similar Questions and Discussions

    1. Regex command to remove deleted emails
      I'm trying to use the following to remove deleted emails (deleted emails have file names that end in ",ST"): rm -f $(find /home/vmail Maildir |...
    2. How To activate command line history in debugger?
      Hi all, does anybody know how to enable the command line history in the debugger? Under Suse 8.2 is it already active. Not under Knoppix...
    3. Windows Explorer Right Click Command (+ Custom Command Script)
      Ok got a tricky question about custom scripts, I would like to add a Windows Explorer Right Click Command - that allows me to select an image/s...
    4. How to destroy (remove from memory) created with new command members
      I create (for example) 50 bitmap members with new command are they removed from memory or do i need do do it myself ??? if YES then - how to...
    5. how to remove a programe from the add/remove list manually
      i am using winXP home, i just remove a programe from the start menu(start>>all programes>>name of the programe>>uninstall),but the programe name is...
  3. #2

    Default Re: remove command history



    Evgeniy Petrov wrote:
    > If I press button "up" I can see all comand which I write before.
    > How I can clear this command history under suse linux 8.0?
    What shell. You are looking at a shell feature, not an OS feature.

    Speaking only for myself,

    Joe Durusau


    joe durusau Guest

  4. #3

    Default Re: remove command history

    On 2004-06-10, Evgeniy Petrov wrote:
    > If I press button "up" I can see all comand which I write before.
    > How I can clear this command history under suse linux 8.0?
    Please don't multi-post.

    This has been answered in the Linux group you posted to.


    --
    Chris F.A. Johnson [url]http://cfaj.freeshell.org/shell[/url]
    ================================================== =================
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License
    Chris F.A. Johnson Guest

  5. #4

    Default Re: remove command history

    > > If I press button "up" I can see all comand which I write before.
    > > How I can clear this command history under suse linux 8.0?
    >
    > What shell. You are looking at a shell feature, not an OS feature.
    GNU bash, version 2.05.0(1)-release (i386-suse-linux)

    Copyright 2000 Free Software Foundation, Inc.



    Evgeniy Petrov Guest

  6. #5

    Default Re: remove command history

    > > > If I press button "up" I can see all comand which I write before.
    > > > How I can clear this command history under suse linux 8.0?
    > >
    > > What shell. You are looking at a shell feature, not an OS feature.
    >
    > Since he's on Linux, I'd guess bash. That's all they seem to know about
    > most of the time.
    >
    > Evgeniy, try reading the bash man page. Look for paragraphs on command
    > history. Also notice if you have a ~/.bash_history file. That contains
    > commands saved from old sessions.
    >
    > Trying to cover your tracks???
    No. I have a problem with another administrator. He is learning unix. For
    this he repeat all my comands step by step. So I think sytem will crach
    soon. I can't remove his right becouse there are a lot of political
    problems.

    I have two files in /home/user/ directory .I guess file .bash_history is
    very old for this.
    But if I clear file .kshrc_history this file is restoring automatically. So
    right now I havn't idea how clear command history.
    11250 Jun 11 14:04 .kshrc_history

    Jul 23 2003 .bash_history





    Evgeniy Petrov Guest

  7. #6

    Default Re: remove command history

    On Fri, 11 Jun 2004 15:24:44 +0400, Evgeniy Petrov <evg@mail.wurth.ru> wrote:
    >
    > I have two files in /home/user/ directory .I guess file .bash_history is
    > very old for this.
    > But if I clear file .kshrc_history this file is restoring automatically. So
    > right now I havn't idea how clear command history.
    > 11250 Jun 11 14:04 .kshrc_history
    Brute force and ugly, but could you symbolically link it to /dev/null?

    Dave Hinz Guest

  8. #7

    Default Re: remove command history

    On 2004-06-11, Evgeniy Petrov wrote:
    >
    >> > If I press button "up" I can see all comand which I write before.
    >> > How I can clear this command history under suse linux 8.0?
    >>
    >> What shell. You are looking at a shell feature, not an OS feature.
    >
    > GNU bash, version 2.05.0(1)-release (i386-suse-linux)
    In your .bashrc and/or .bash_profile file:

    unset HISTFILE

    Your history will then not be saved; you will only have command
    history from the current session.

    --
    Chris F.A. Johnson [url]http://cfaj.freeshell.org/shell[/url]
    ================================================== =================
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License
    Chris F.A. Johnson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139