LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2013, 07:05 PM   #1
mintyninja41
Member
 
Registered: Jul 2012
Location: United States
Distribution: macOS and Linux Mint
Posts: 34
Blog Entries: 6

Rep: Reputation: 1
History utility error in Linux Mint 14; cannot delete history


I am running a 32-bit Linux Mint 14 (Nadia, with MATE) on my Compaq Presario V2000. It has otherwise functioned normally (excepting an error with a video capture program-but that's another story). However, since installation of the OS, in the MATE terminal emulator, I have not been able to delete history of commands via the command "history -c" in the terminal emulator. I've googled around, but I haven't found a solution. I am not terribly adept at the Linux command line, though I've needed to use it to install wireless firmware (learned that by googling), and so I am not sure where the history utility logs these entries. Again, when the command is used in an instance of the terminal, the history appears cleared in that terminal instance, but opening a new terminal window and pulling up the history shows the histories that I have seemingly deleted. If I may, where is the history stored, so I can delete the logged commands?

Thank You.
 
Old 03-21-2013, 09:14 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 106Reputation: 106
Lightbulb

The bash history file is typically set in your home directory as a hidden Filip ( .) . The name is usually dictated by your .bashful. file in your home directory.

Just empty..... >history
 
1 members found this post helpful.
Old 03-21-2013, 11:34 PM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Is history command exist there? Perhaps it's your working shell which isn't allowing history command to run. So first switch to bash or csh/tcsh and then try again, as:
Code:
~$ bash
OR
~$ csh
OR
~$ tcsh
~$ history -c
Also you can:
Code:
~$ cat /dev/null > ~/.bash_history
 
1 members found this post helpful.
Old 03-22-2013, 06:36 AM   #4
powerball
LQ Newbie
 
Registered: Jun 2010
Distribution: Slackware
Posts: 10
Blog Entries: 1

Rep: Reputation: 12
Hi booklover, yeah man the ".bash_history" file is what you want to edit. It's in your ~/ directory and a hidden file so that's why you couldn't find it. I like this command to turn off history in KDE:
Code:
echo "unset HISTFILE" >> /etc/profile
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: HISTORY Those that fail to learn from history are doomed to repeat it LXer Syndicated Linux News 0 04-11-2012 03:11 PM
Getting history back after typing history -c in the terminal in Ubuntu rajiucsc Linux - General 1 02-11-2012 12:48 PM
history clearance for a particular history number in linux sangupari Linux - Software 3 03-03-2010 03:08 AM
tcsh: can you save the history from multiple shells to one history file? BrianK General 2 04-23-2009 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration