- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HISTSIZE Shell Variable
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
тАО02-06-2003 05:09 AM
тАО02-06-2003 05:09 AM
HISTSIZE Shell Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 05:17 AM
тАО02-06-2003 05:17 AM
Re: HISTSIZE Shell Variable
Try these sintax into the root .profile:
EDITOR=vi; export EDITOR
HISTFILE=/.sh_history; export HISTFILE
HISTSIZE=800; export HISTSIZE
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 05:18 AM
тАО02-06-2003 05:18 AM
Re: HISTSIZE Shell Variable
You might have a corrupted history file, try "mv"'ing it and starting over?
Also, after the root user log's in, echo $HISTFILE, $HISTSIZE
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 05:21 AM
тАО02-06-2003 05:21 AM
Re: HISTSIZE Shell Variable
Make sure that 'EDITOR=vi' and that you have exported your variables. Verify this with 'env'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 06:02 AM
тАО02-06-2003 06:02 AM
Re: HISTSIZE Shell Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 06:08 AM
тАО02-06-2003 06:08 AM
Re: HISTSIZE Shell Variable
The man page for sh-posix (and ksh) define the rules about HISTSIZE and the maximum number of displayed commands. Note that multiple shells run by the same user (using the same $HISTFILE) will see a certain amount of conflicts as each shell tries to manage the same history file. If you remove the definition for HISTFILE, you'll get a default history of 128 lines.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 06:08 AM
тАО02-06-2003 06:08 AM
Re: HISTSIZE Shell Variable
Serious consequences can result from changing root's shell - if that's what you were implying, don't do it!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 06:11 AM
тАО02-06-2003 06:11 AM
Re: HISTSIZE Shell Variable
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 06:26 AM
тАО02-06-2003 06:26 AM
Re: HISTSIZE Shell Variable
I think our problem was not adding the dash before the # of commands we wanted to display! Will check to see. Thank-you everyone.
Thanks to all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 07:13 AM
тАО02-06-2003 07:13 AM
Re: HISTSIZE Shell Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-06-2003 07:58 AM
тАО02-06-2003 07:58 AM
Re: HISTSIZE Shell Variable
type history
history is an exported alias for fc -l
type (and the base command whence) totally obsolete which and whereis because only type and whence will tell you what the shell is going to do with a particular string. For example:
type ls
ls is an alias for /usr/bin/ls -aF
Hummmm, so if I unalias ls then:
unalias ls
type ls
ls is /usr/bin/ls
A lot of Trojan horses will masquerade as a normal command but type will show you is really going to happen.
I get tired of typing 'history' so I do this:
alias h="fc -l"
and then I can type:
h
or
h -50
and see the history quickly.
Bill Hassell, sysadmin