![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with the History command | cleansing_flame | UNIX for Dummies Questions & Answers | 2 | 02-04-2008 09:25 AM |
| Command history in AIX | priya_v111 | Shell Programming and Scripting | 2 | 09-18-2006 11:48 AM |
| History command | akash_wagh | Filesystems, Disks and Memory | 0 | 08-31-2005 02:54 AM |
| command history | vikasdeshmukh | UNIX for Dummies Questions & Answers | 3 | 11-14-2001 02:37 AM |
| History Command | jack | UNIX for Dummies Questions & Answers | 2 | 08-01-2001 10:01 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
||||
|
||||
|
tikul yeah HISTSIZE works but in the next login. when i logged into my account again it worked! thanks to you
google, had a question for you. you asked me to echo a space to my .sh_history file. now whenever i access it, it's always empty. isn't that file supposed to get loaded with the commands used by the user again? can you comment on that please |
| Forum Sponsor | ||
|
|
|
#9
|
||||
|
||||
|
For the KSH, set the following variables in your .profile. Then either source your profile or log out and come back in. I havent encountered the issues you describe.
HISTFILE The name of the file used to store history. When assigned to, history is loaded from the specified file. Also, several invocations of the shell running on the same machine share their history if their HISTFILE parameters all point at the same file. -------------------------------------------------------------------------------- If HISTFILE isn't set, no history file is used. This is different from the original Korn shell, which uses $HOME/.sh_history; in the future, ksh may also use a default history file. -------------------------------------------------------------------------------- HISTSIZE The number of commands normally stored for history, default 128. |
||||
| Google The UNIX and Linux Forums |