LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-21-2017, 05:44 AM   #1
kunal_777
LQ Newbie
 
Registered: May 2017
Posts: 6

Rep: Reputation: Disabled
How to clear permanent history in linux???


How can i clear history permanently in linux...???
 
Old 05-21-2017, 05:47 AM   #2
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
I think you need to clarify what history. Browser history? Command line history? All activity?

Cheers
 
Old 05-21-2017, 05:53 AM   #3
kunal_777
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
I want all command history????
 
Old 05-21-2017, 05:54 AM   #4
kunal_777
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
May be u can help me with browser history too....
 
Old 05-21-2017, 10:49 AM   #5
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Code:
history -c
clears BASH history, but there maybe other things recording the history such as auditd.
 
1 members found this post helpful.
Old 05-21-2017, 11:00 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
The browser should have the option to clear all the history (or cookies): try looking in its menu under settings, or preferences. It may be "buried" — in this one I need Settings - Preferences - Advanced.

Flash cookies are different, since the browser doesn't know they are there. They'll be in places like
.macromedia/Flash_Player/
.adobe/Flash_Player/
and it's a good idea to delete them now and then.
 
1 members found this post helpful.
Old 05-21-2017, 11:03 AM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by kunal_777 View Post
May be u can help me with browser history too....
The way that you delete browser history varies somewhat from one browser to another. Go into the your browser options, settings, or preferences. Some browsers have a setting to delete history and/or cookies every time you close the browser. Some browsers have a menu entry called "tools". Click on tools and you may find menu entries to delete history and/or cookies for one time only. There are some browsers which have both types of options.

The browser which does the best job of removing cookies, history, etc. is Vivaldi. Vivaldi is a fairly new browser created by one of the founders of the Opera browser. Vivaldi has come a long way very fast and I think that the current version of Vivaldi is the best browser available. Vivaldi shines when it comes to keeping web sites from mining information from your history and cookies, provided that you set the Vivaldi options to do so.

---------------------
Steve Stites

Last edited by jailbait; 05-21-2017 at 11:05 AM.
 
1 members found this post helpful.
Old 05-22-2017, 02:58 AM   #8
TempLinux
LQ Newbie
 
Registered: May 2017
Posts: 2

Rep: Reputation: Disabled
ln -sf /dev/null /home/your-username/.bash_history

Or use a liveDVD. Nothing will be retain after a reboot like cookies, website visits, etc

Last edited by TempLinux; 05-22-2017 at 03:00 AM.
 
1 members found this post helpful.
Old 05-22-2017, 08:24 AM   #9
kunal_777
LQ Newbie
 
Registered: May 2017
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for giving me the solution's anyway...thanks....
 
Old 05-22-2017, 08:14 PM   #10
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Bleachbit is good program to clear all histories.
 
1 members found this post helpful.
Old 05-23-2017, 01:59 PM   #11
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by r3sistance View Post
Code:
history -c
clears BASH history, but there maybe other things recording the history such as auditd.
In addition to that you still might want to
Code:
rm $HOME/.bash_history
which typically still contains data after history -c.
 
  


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
unable to clear Firefox web History in redhat-Linux indiankrish Linux - Newbie 6 02-28-2016 09:58 AM
How to clear history in LINUX? meandsushil Linux - Newbie 7 12-01-2010 01:12 AM
How do I clear history in Linux ibrahimt Linux - Security 8 07-14-2009 02:15 AM
How to clear history hi_msh Linux - Newbie 2 01-12-2006 05:40 AM
Clear History Mystified Linux - Newbie 1 03-25-2002 09:27 AM

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

All times are GMT -5. The time now is 12:45 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