- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Difference between export HISTORY & export HISTSIZ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 10:16 AM
тАО11-22-2002 10:16 AM
Difference between export HISTORY & export HISTSIZE
What is the "Difference between export HISTORY & export HISTSIZE" ?
Thanks,
Nikee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 10:22 AM
тАО11-22-2002 10:22 AM
Re: Difference between export HISTORY & export HISTSIZE
HISTSIZE is the number of previous commands maintained in HISTFILE.
Don't know of HISTORY but HISTFILE is the name of the file that the shell uses to keep your previous commands in. Do you mean HISTFILE?
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 12:41 PM
тАО11-22-2002 12:41 PM
Re: Difference between export HISTORY & export HISTSIZE
HISTSIZE=1024 would maintain 1K of history.
This was during the time the Sun Sparc 2's were being shipped.
Honestly, I dont even remember what OS it was on, Aix 3? Solaris 2.1? I didnt even work with HP-UX back then... ;(
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-22-2002 12:52 PM
тАО11-22-2002 12:52 PM
Re: Difference between export HISTORY & export HISTSIZE
Quote sunsolve
Problem Description
C shell and Korn shell only save one copy of a command history file.
When I exit a window manager like OpenWindows and CDE, only the command
history of the last shell to exit is saved. How can I save the command
histories from all of my shells when I exit the window manager?
Keywords: shell, history, window, manager
Problem Solution
Solaris' C shell and Korn shell are designed to write a user's command history
to a single file ($HOME/.history for C shell and $HOME/.sh_history or HISTFILE
for Korn shell), when they exit. When a user runs mutiple C shells or Korn
shells within a window manager such as OpenWindows or CDE, only the command
history of the last shell to exit is written to the history file. And
the last shell to exit is the shell that started the window manager, so none
of the commands executed by the user in shells within the window manager are
saved.
A public domain shell called tcsh (an enhanced C shell) allows the user to
merge the command histories of multiple tcsh shells into a single history
file. To use it, do the following:
1. use tcsh as the user's login shell
2. in the user's .cshrc or .tcshrc file, add the following entries:
set history = [positive number, indicating number of commands to buffer]
example: set history = 200
set savehist = ( [number of commands to save to histfile] merge )
example: set savehist = ( 200 merge )
The 'merge' literal is specific to the tcsh shell: it is not part of the
C shell or Korn shell. It directs all tcsh shells to merge their command
histories into a single history file (if no history file is specified, the
default file is $HOME/.history) instead of overwriting the file. The
merge literal allows all of the command histories from all open tcsh shells
to be recorded in one file, sorted by time stamp.
NOTE that tcsh is a public domain application, not a Sun product therfore Sun
does NOT support it. This information is only provided as a helpful suggestion
to customers who desire the ability to save multiple shell command histories.
Sun does not support the tcsh shell, or problems caused by use of the tcsh
shell, in any way.
end quote
it's a free document.
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2002 10:41 AM
тАО11-25-2002 10:41 AM
Re: Difference between export HISTORY & export HISTSIZE
Hope this helps.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2003 09:38 PM
тАО03-05-2003 09:38 PM
Re: Difference between export HISTORY & export HISTSIZE
This message is nothing to do with the subject. If yor are from Rly Kodur, India, please e-mail me on mbyreddy@hotmail.com.
Please ignore this msg, if it is not relavent to you.
Cheers
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2003 10:40 PM
тАО03-05-2003 10:40 PM
Re: Difference between export HISTORY & export HISTSIZE
export HISTFILE=$HOME/.sh_history
export HISTSIZE=500
export EDITOR=/usr/bin/vi
Note that in the POSIX shell for HP-UX, root must have the .sh_history file manually created for the first time, while ordinary users will have their .sh_history file created automatically.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-05-2003 11:05 PM
тАО03-05-2003 11:05 PM
Re: Difference between export HISTORY & export HISTSIZE
HISTSIZE is the environment variable used to count the numbers that history command can be remembered by POSIX shell.
No HISTORY variable.