LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-15-2009, 06:14 PM   #1
Latte
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Rep: Reputation: 0
bash history limit


Can anyone tell me how to confirm the default limit of the history kept in .bash_history?

A Google search reveals people saying the default limit is 500 (lines? filesize in bytes?). e.g., http://www.ducea.com/2006/05/15/linu...-bash_history/

I know there is an option to set the size, using HISTSIZE in .bashrc as discussed on this site at http://www.linuxquestions.org/questi...istory-136137/ and others.

But how can I confirm the existing default without have to type command after command to see when the first command gets pushed out?

Thanks.
 
Old 12-15-2009, 06:27 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
echo $HISTSIZE
 
Old 12-15-2009, 06:42 PM   #3
Latte
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
echo $HISTSIZE
Awesome, thanks. Can you tell me where that setting is stored at, too (not that I am ungrateful for your answer)?
 
Old 12-15-2009, 07:46 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442

Rep: Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791Reputation: 2791
Basically, they are set in the usual login profile files eg /etc/profile http://www.linuxfromscratch.org/blfs...s/profile.html and you can override them at the user level in .bash_profile.
 
  


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
Bash history delete command from bash itself ashishag Linux - Software 6 05-02-2010 03:39 AM
Where's my bash history? subnet_rx Red Hat 6 02-07-2007 06:35 PM
need someone to look into this bash history bytez Linux - General 7 10-16-2006 10:26 PM
bash history slowly Linux - General 2 11-12-2004 11:35 AM
Bash History ukndoit Linux - Security 2 10-16-2003 09:02 AM

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

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