Find the answer to your Linux question:
Results 1 to 3 of 3
What is the cmd for clearing buffer/log of previous used cmd's access via the arrow up key? Thanks,...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025

    cmd for clearing buffer/log of previous used


    What is the cmd for clearing buffer/log of previous used cmd's access via the arrow up key?
    Thanks,
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Those commands are stored in $HOME/.bash_history

    if your logged in as root, type:
    Code:
    echo "" > /root/.bash_history
    otherwise, cd to your home dir, and type:
    Code:
    echo "" > .bash_history

    Jason

  3. #3
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    Thanks, I needed/wanted it for when I was root usr. I'll add it to my ongoing list of newbie cmd's.
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

Posting Permissions

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