Results 1 to 5 of 5

Thread: How to Delete Terminal History in Ubuntu

  1. #1
    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

  2. #2
    Dr. V Guest

    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

  3. #3
    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.

  4. #4
    Join Date
    Nov 2005
    Posts
    3,026

    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.

  5. #5
    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

Similar Threads

  1. Replies: 5
    Last Post: 06-05-2012, 08:19 AM
  2. Accessing Windows Partition through Ubuntu Terminal
    By Flavia in forum Operating Systems
    Replies: 3
    Last Post: 22-07-2011, 08:25 PM
  3. How to run script in terminal on ubuntu
    By Bageshri27 in forum Operating Systems
    Replies: 5
    Last Post: 24-06-2011, 07:15 AM
  4. Can't delete temporary roaming profile on a terminal server.
    By Alex Galkin in forum Windows Server Help
    Replies: 1
    Last Post: 21-05-2011, 12:54 AM
  5. How to open multiple terminal windows in Ubuntu
    By WinSlayer in forum Operating Systems
    Replies: 5
    Last Post: 16-03-2010, 04:40 AM

Tags for this Thread

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
  •  
Page generated in 1,714,077,937.42214 seconds with 17 queries