Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to Delete Terminal History in Ubuntu

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 14-10-2009
Member
 
Join Date: Feb 2009
Posts: 14
How to Delete Terminal History in Ubuntu
  

Good evening,

Hello , I have started using Linux recently, and I am using the little terminal in ubuntu linux but I would like to clear all the command , that I made, I have tried several ways to clear the history in the terminal but fail to do so , can you tell me how to delete terminal history in ubuntu , please help me thanks in advance

Reply With Quote
  #2  
Old 14-10-2009
Dr. V
 
Posts: n/a
Re: How to Delete Terminal History in Ubuntu

By pressing ctrl + h, You can display the Bash_history file. there you can delete the contents of the file with del (delete on the keyboard),after that click save. and you are returned to the terminal , there you can check that command history is available or not
Reply With Quote
  #3  
Old 14-10-2009
Member
 
Join Date: Nov 2005
Posts: 1,203
Re: How to Delete Terminal History in Ubuntu

The history command allows to manipulate the command history in linux. This command allows us with the-cd 'clear history.also You can delete the terminal history by deleting the file '.bash_history' from your home folder. You'll need to click on 'Show Hidden Files' in the 'View' menu first to be able to see it.
Reply With Quote
  #4  
Old 14-10-2009
Member
 
Join Date: Nov 2005
Posts: 3,023
Re: How to Delete Terminal History in Ubuntu

To clear the terminal history, enter the following at the command line
Terminal:-

gnulinux@gnulinux:~$ history -c


Another way to clear the history is to enter the following command:
Terminal:-
gnulinux@gnulinux:~$ sudo gedit ~/.bash_history

Enter your root password.

Remove / Delete all the commands from the file and save the file.

Close the terminal, and re-open it. Your history has now been removed.
Reply With Quote
  #5  
Old 08-12-2011
Member
 
Join Date: Dec 2011
Posts: 1
Re: How to Delete Terminal History in Ubuntu

I like clearing the screen after deleting history for a fresh, clean, uncluttered work environment. So, I do this:

history -c ; clear
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Delete Terminal History in Ubuntu"
Thread Thread Starter Forum Replies Last Post
Internet Explorer 9 wont delete cookies when set to delete all history on exit Ritesh Singh Technology & Internet 5 06-05-2012 08:19 AM
Accessing Windows Partition through Ubuntu Terminal Flavia Operating Systems 3 22-07-2011 08:25 PM
How to run script in terminal on ubuntu Bageshri27 Operating Systems 5 24-06-2011 07:15 AM
Can't delete temporary roaming profile on a terminal server. Alex Galkin Windows Server Help 1 21-05-2011 12:54 AM
How to open multiple terminal windows in Ubuntu WinSlayer Operating Systems 5 16-03-2010 04:40 AM


All times are GMT +5.5. The time now is 02:10 AM.