Solved

HISTFILE and HISTSIZE on HP,  Solaris, & LINUX servers

Posted on 2011-02-15
2
1,283 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
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now