![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| History command | akash_wagh | Filesystems, Disks and Memory | 2 | 01-22-2009 12:51 PM |
| ^p not giving command line history. | akbar | SUN Solaris | 0 | 02-21-2008 01:15 PM |
| Command history in AIX | priya_v111 | Shell Programming and Scripting | 2 | 09-18-2006 02:48 PM |
| Command history | a25khan | UNIX for Dummies Questions & Answers | 8 | 12-10-2003 06:05 AM |
| command history | vikasdeshmukh | UNIX for Dummies Questions & Answers | 3 | 11-14-2001 05:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
command line history
I am running Solaris 8 and using ksh. The history file (.sh_history) helps a lot, but it seems to get 'reset' after a certain period of time. In other words, after some usage of the shell, the command history would disappear and start anew. Is there some facility to specify the period of time to keep the history file from being cleared?
For example, I would want to keep my history for 3 months as opposed to 2 weeks. Thanks. -S |
|
||||
|
you can set the HISTSIZE environment variable for that or you can use the command
history -<no of history commands you are looking for> eg : history -50 Last edited by Krrishv; 01-05-2007 at 09:56 PM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|