Solved

HISTFILE and HISTSIZE on HP,  Solaris, & LINUX servers

Posted on 2011-02-15
2
1,318 Views
Last Modified: 2012-05-11
How do I set these variables (HISTFILE and HISTSIZE) in the .profile (using ksh). Same way for both HP and Solaris? What about for Linux?
0
Comment
Question by:sonriks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
alphabet26 earned 500 total points
ID: 34900170
Solaris and Linux can use export on the same line
export HISTFILE=$HOME/.sh_history

Open in new window

I seem to recall HPUX needs it set then exported
HISTFILE=$HOME/.sh_history; export VARIABLE

Open in new window

0
 
LVL 1

Author Closing Comment

by:sonriks
ID: 34937241
thanks a lot!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question