The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #8  
Old 12-10-2003
a25khan's Avatar
Registered User
 

Join Date: Dec 2003
Location: My home :D
Posts: 35
tikul yeah HISTSIZE works but in the next login. when i logged into my account again it worked! thanks to you . have a good one

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 . Thank you n have a good one
Forum Sponsor
  #9  
Old 12-10-2003
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
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
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0