Christopher Schene
asked on
How do I make the history command on MAC display all stored command history
I specify my history file size as 10000 but when I type "history" on the MAC iterm command line I only see the last 500 command entries.
How do I show all 10,000?
Extract from my .bash_profile:
export CATALINA_HOME=/Library/Tom cat/apache -tomcat-8. 0.9
export CATALINA_BASE=/Library/Tom cat/apache -tomcat-8. 0.9
HISTFILESIZE=10000
alias ll="ls -ltr"
alias d=date
alias h=history
How do I show all 10,000?
Extract from my .bash_profile:
export CATALINA_HOME=/Library/Tom
export CATALINA_BASE=/Library/Tom
HISTFILESIZE=10000
alias ll="ls -ltr"
alias d=date
alias h=history
ASKER
Hmmm, when I tried it I still see the same thing (500 lines)
cschene-v1:~ cschene$ wc -l /Users/cschene/.bash_histo ry
7868 /Users/cschene/.bash_histo ry
cschene-v1:~ cschene$ history 7868 | wc -l
500
cschene-v1:~ cschene$
cschene-v1:~ cschene$ wc -l /Users/cschene/.bash_histo
7868 /Users/cschene/.bash_histo
cschene-v1:~ cschene$ history 7868 | wc -l
500
cschene-v1:~ cschene$
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That works!
Thanks!
Thanks!
or
history 10000
or change your alias:
alias "h=history ${HISTFILESIZE}"