Results 1 to 5 of 5

Thread: Getting rid of history in a terminal

  1. #1

    Getting rid of history in a terminal

    Hi,

    How do I delete the command history in a terminal apart from that Edit menu option called 'Clear all histories? Any particular command to achieve so? Thanks................

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,758
    .bash_history file located in the user's home directory.

    /home/andrew/.bash_history is mine for example.

  3. #3
    > .bash_history

    the above command will clear the history

  4. #4
    history -c
    arrogance breeds ignorance

    Screaming Electron, Full of BSD Goodness

  5. #5
    Newbie
    Join Date
    Apr 2007
    Location
    Siler City NC
    Posts
    4

    Cool I learned something new!!

    Quote Originally Posted by Kernel_Killer View Post
    history -c
    Thanks! I learned something new today.

Similar Threads

  1. Generating C++ graphics in a terminal
    By tech291083 in forum Redhat / Fedora
    Replies: 0
    Last Post: 06-05-2007, 08:58 AM
  2. terminal help
    By nader43 in forum Linux - General Topics
    Replies: 1
    Last Post: 02-10-2007, 07:21 AM
  3. Mutex destroys in my Terminal
    By Nexus2 in forum Linux - General Topics
    Replies: 2
    Last Post: 08-17-2005, 02:06 AM
  4. 2003 Terminal Server Client
    By friskydrifter in forum Windows - General Topics
    Replies: 11
    Last Post: 10-13-2004, 12:45 PM
  5. mozilla and it's history
    By bobblebob in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 09-22-2003, 04:10 PM

Bookmarks

Posting Permissions

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