How to increase history number in UNIX?


 
Thread Tools Search this Thread
Operating Systems Solaris How to increase history number in UNIX?
# 1  
Old 01-27-2013
How to increase history number in UNIX?

Hi All,
when i use history command i got the last 1000 command
i want to increase this to 10000
how can i do that
# 2  
Old 01-27-2013
Read your shell's man page.
# 3  
Old 01-27-2013
Hi RudiC

history man page i found

the history shell variable may be set to the maximum number of command lines that will saved in the history file, that is:
set history = 200


and on google
i found another way
HISTFILESIZE = 200
HISTSIZE = 200

what i don't know the difference between the 2 way
# 4  
Old 01-27-2013
Code:
man bash:

Quote:
HISTFILESIZE
The maximum number of lines contained in the history file. When this variable is assigned a value, the history file is truncated, if necessary, by removing the
oldest entries, to contain no more than that number of lines. The default value is 500. The history file is also truncated to this size after writing it when
an interactive shell exits.
. . .
HISTSIZE
The number of commands to remember in the command history (see HISTORY below). The default value is 500.
HISTSIZE commands are kept "online" in an interactive session, whilst up to HISTFILESIZE commands will be saved between sessions. The set history doesn't ring a bell.
This User Gave Thanks to RudiC For This Post:
# 5  
Old 01-27-2013
thank you RudiC for your support and learning how to find all what i need in man
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX. The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Discussion started by: Neo
8 Replies

2. Shell Programming and Scripting

Increase bash history size

Hi I am trying to increase the number of commands recorded in my .bash_history file. I followed what is indicated and have add to my .bashrc export HISTCONTROL=ignoreboth export HISTSIZE=1000000 export HISTFILESIZE=1000000 export HISTIGNORE='ls'but the .bash_history only contains 690... (5 Replies)
Discussion started by: louisJ
5 Replies

3. Infrastructure Monitoring

Increase MAXLOGMATCH number of lines after installation

Hi, I did compiled net-snmp with a value of MAXLOGMATCH 1000. Now I need to monitor more then 1000 strings on my server. I've entered the lines in smpd.conf but they are being ignored. Only upto 1000 lines are being checked. Can I increase the value of MAXLOGMATCH without recompiling? (0 Replies)
Discussion started by: mustu
0 Replies

4. Shell Programming and Scripting

history: Badly formed number

% history clean history: Badly formed number. :( % echo $0 /usr/local/bin/tcsh % uname SunOS % grep -e "hist" .tcshrc.user set history=90 set savehist=80 Please suggest what could be the problem here. Thanks in advance. (1 Reply)
Discussion started by: mayankmehta_83
1 Replies

5. Solaris

How to increase or decrease inode number of the particular UFS filesystem

Hi Gurus I want to know the command & tips regarding, how to increase or decrease inode number of the particular ufs filesystem. Is it possible to do it in a live/production environment. Regards (3 Replies)
Discussion started by: girish.batra
3 Replies

6. Programming

how to increase number like this

hi all i got a assignment but this is part of it only.. i need the logic that all.. below is the kind of output that i want to get. 1 12 123 1234 12345 2345 345 45 5 i noe i need to use for loop cos currently i am doing a short cut way which is (1 Reply)
Discussion started by: xiaojesus
1 Replies

7. Shell Programming and Scripting

how to suppress list number from history command output

i run history command and I want to eliminate the list number. So far this perl script works as long as the list is a exact 3 character long. cat dd | perl -pe 's,\d{3},,' 70 export JAVA_HOME=. 81 export JAVA_HOME=. 82 export JAVA_HOME=`pwd` export JAVA_HOME=`pwd` ... (1 Reply)
Discussion started by: soemac
1 Replies

8. UNIX for Advanced & Expert Users

Increase the counter in UNIX

HI! All Iam facing an issue with split comman in unix Prifix=Z_PRICE_NEW`date "+%Y%m%d%H%M%S"` split -5000 Product.txt $Prifix find . -name "$Prifix*" -print | { while read FILE; do mv $FILE $FILE.txt done } when is execute the comman the command is working fine and generating the... (2 Replies)
Discussion started by: mohdtausifsh
2 Replies

9. UNIX for Advanced & Expert Users

How to increase the buffer size in Unix

When I checked with top command, I found tht my buffers are always 137M, which means that they are sort of overloaded. My Inactive memory is 520M. Is it possible to increaase the buffer size and what would be the command for that? (0 Replies)
Discussion started by: ziabegg
0 Replies

10. UNIX for Dummies Questions & Answers

Unix History Question: Why are filenames/dirnames case sentsitive in Unix?

I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies
Login or Register to Ask a Question