1833554 Members
3050 Online
110061 Solutions
New Discussion

Re: History problem

 
Sauvik Basu
Advisor

History problem

Whenever I try the history command I get the following error message:
csh: fc: Cannot access or open the history file.
Please help.
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: History problem

You need to export HISTFILE in your profile - either your personal .profile or in /etc/profile:

export HISTFILE=/tmp/.sh_history.$(whoami)

and

set -o vi

You may also want to export HISTSIZE, though I normally don't bother.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: History problem

Sorry, didn't notice that you're using csh - I guess it would be setenv rather than export, then.


Pete

Pete