Linux.com

Home Linux Community Forums Software Command Line Original file of "set history" command? [SOLVED]

Original file of "set history" command? [SOLVED]

Link to this post 01 Dec 11

Hi,
Shell = csh
I have "set history=1000"
I need to check a command which I had executed more than couple of days ago, which has crossed 1000 history limit.
Can I find it?
Where actually it gets stored (for eg: bash = .bash_history)
And finally, what is the maximum number of history set path can be set in "C" shell

Thanks
Kiran

Link to this post 01 Dec 11

Unfortunately I'm afraid you can't get that command you executed.

AFAIK, the file you are looking for is .history

And about the limit... probably there isn't. Just notice that the file will grow and grow and continue to grow... ;)

Regards

Link to this post 11 Dec 11

@linuxque

Where did you set the history count value?

Not sure how far back you can go in the .bash_history file to find all your executed commands. The recent ones are always displayed.

Link to this post 31 Dec 11

Wonderful thread.

Can someone let know where exactly these history entries are stored ?
I mean the direct log - which the command 'histry' will fetch and show ?
Thank you.

Link to this post 31 Dec 11

In bash by default it's ~/.bash_history

Regards

Link to this post 31 Dec 11

Thank you very much Marc. Sorry I forgot, oh yes yes, I remember now.

Happy New Year !

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board