Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

- - - - -

How to clear Terminal, or bash shell history in Ubuntu


  • Please log in to reply
No replies to this topic

#1 Guest_Khiam_*

Guest_Khiam_*

  •  Avatar image
  • Guests
  • OFFLINE
  •  

Posted 06 October 2020 - 02:43 AM

Hello, Linux users !

 

In this tutorial I will show you how to remove your history for Terminal, or bash shell (formerly command line).

 

Let's go :

 

1. Open Terminal and paste one of these commands :

sudo su

or

sudo -i

2. List your command history with history.

history

3. Delete your command history.

 

Use -c and -w parameters.

history -c && history -w

Or clear ./.bash_history history path :

echo > ./.bash_history

Enjoy it



BC AdBot (Login to Remove)

 





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users