LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-22-2004, 06:29 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
clearing konsole history


Hi, when press up on the keyboard it shows the history of what ityped in... How do i clear this?
 
Old 08-22-2004, 06:41 PM   #2
m0rt3r
Member
 
Registered: Mar 2004
Distribution: slackware 10
Posts: 75

Rep: Reputation: 15
I'm not so sure if this is done the same as in slackware but i supposed it is.
to clear your konsole history just do the following:
Code:
history -c
 
Old 08-22-2004, 06:52 PM   #3
m0rt3r
Member
 
Registered: Mar 2004
Distribution: slackware 10
Posts: 75

Rep: Reputation: 15
I almost forgot, The maximun number of lines in history is 500 by default, you can decrese that amount by adding this two lines to the profile.
use whatever file editor you are most comfortable with.
since i use emacs i would do the following:
Code:
emacs /etc/profile
then add this two lines
Code:
export HISTFILESIZE=0
export HISTSIZE=50
then saver your changes.
after you've saved your changes do the following
Code:
source /etc/profile
that would set the history file to 50 lines instead of 500

Oh by the way i don't know if under SUSE there is a /etc/profile file.
But just in case there is no profile file you can add those two lines to your .bashrc file. If you don't have a .bashrc file you can create it and then add the lines there.
 
Old 08-22-2004, 10:05 PM   #4
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
awesome thanks, so the whole history that i had is gone now right? no cache history or anything correct?
 
Old 08-23-2004, 03:16 AM   #5
apertran
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
another way is to remove ~/.bash_history file.
 
Old 08-23-2004, 08:21 AM   #6
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
Quote:
Originally posted by minm
awesome thanks, so the whole history that i had is gone now right? no cache history or anything correct?
no - you simply changed the size of it
delete the ~/.bash_history file - this should fix ya

man history you might try that
 
  


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
Clearing history AumDiar Linux - Newbie 7 01-03-2005 11:05 PM
zaurus (OZ 3.3.5) can konsole save comand history? Brain Drop Linux - Laptop and Netbook 1 04-02-2004 09:40 AM
Problems clearing Konsole history sergeantroach Linux - Software 2 11-01-2003 04:45 PM
question about history file on several konsole? doublefailure Linux - General 1 04-08-2002 03:49 AM
Clearing Konsole wyvis Linux - Newbie 1 01-14-2002 04:23 PM


All times are GMT -5. The time now is 04:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration