LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 08:05 PM   #1
mintyninja41
Member
 
Registered: Jul 2012
Location: Deep Space Nine
Distribution: Xubuntu LTS
Posts: 33
Blog Entries: 5

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, 10:14 PM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
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-22-2013, 12:34 AM   #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, 07:36 AM   #4
powerball
LQ Newbie
 
Registered: Jun 2010
Distribution: Slackware
Posts: 9
Blog Entries: 1

Rep: Reputation: 2
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:11 PM
Getting history back after typing history -c in the terminal in Ubuntu rajiucsc Linux - General 1 02-11-2012 01:48 PM
history clearance for a particular history number in linux sangupari Linux - Software 3 03-03-2010 04:08 AM
tcsh: can you save the history from multiple shells to one history file? BrianK General 2 04-23-2009 06:19 AM


All times are GMT -5. The time now is 06:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration