The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I Want Delete History in SSH

Discussion in 'General Discussion' started by A_1, Mar 5, 2007.

  1. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    i want delete the history in my SSH
    how i can do that ?
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    in your root directory you can modify .bash_history
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    On RHE, CentOS, FC, and SUSE:
    history -c
     
  4. A_1

    A_1 Active Member

    Joined:
    Jan 5, 2007
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Many Thanks for help
     
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Here's a neat tip :)


    edit your .bash_logout file in your home folder
    Code:
    vi ~/.bash_logout
    
    and add the following code

    Code:
    history -c
    
    Then, whenever you logout, it will clear the history.
     
Loading...

Share This Page