Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-15-2012, 11:23 PM   #1
Registered: Dec 2011
Location: Columbus, OH
Distribution: Slackware 13.37
Posts: 38

Rep: Reputation: 0
Question The difference in $HISTSIZE AND $HISTFILESIZE using backtrack 5

Ok, so I have noticed that $HISTSIZE & $HISTFILESIZE and I understand that they show the size of the history file but why dose these two different figures. Here is what I have:

root@root:/dev# echo $HISTSIZE
root@root:/dev# echo $HISTFILESIZE
Could I get a good explanation so that I can understand the difference between these two variables if they show the file history.
Old 09-16-2012, 06:58 AM   #2
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Lines .vs Commands : Practically speaking not a big difference.

$HISTFILESIZE environment variable: The maximum number of lines contained in the history file. When this variable is assigned a value, the history file is truncated, if necessary, to contain no more than that number of lines. The default value is 500.

$HISTSIZE environment variable: The number of commands to remember in the command history (see HISTORY below). The default value is 500.


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: Making a Difference; Selling a Difference LXer Syndicated Linux News 0 09-23-2010 06:00 AM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 05:26 AM
-bash: HISTSIZE: readonly variable -bash: HISTFILESIZE: readonly variable deathsfriend99 Linux - Newbie 4 12-08-2009 01:51 PM
Maximum value of HISTSIZE ? henokmikre Linux - Newbie 1 06-01-2009 05:44 AM
HISTFILE versus HISTFILESIZE calutateo Linux - Newbie 1 07-25-2005 09:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:47 PM.

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