- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- History Command in HPUX
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
тАО06-11-2008 11:24 AM
тАО06-11-2008 11:24 AM
History Command in HPUX
Pls guide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 11:32 AM
тАО06-11-2008 11:32 AM
Re: History Command in HPUX
env | grep HIST
If HISTFILE is set thats where command line history will be. Note this can't be NFS, it won't work.
If its not set, set it in the /etc/profile for the whole system.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 11:57 AM
тАО06-11-2008 11:57 AM
Re: History Command in HPUX
Depending on what kind of shell you are using, there are different ways and places to set it up and different ways to use it (recall the previous commands).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 07:17 PM
тАО06-11-2008 07:17 PM
Re: History Command in HPUX
In the past there were ksh hangs if HISTFILE was over NFS. I heavily depend on that to have a shared history file for 17 shells and various machines.
If you have the right NFS patches, it works.
You do have to be careful for different OS versions and when the count gets past 64K, bad things happen ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 07:17 PM
тАО06-11-2008 07:17 PM
Re: History Command in HPUX
See the related forums.
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1213240542245+28353475&threadId=965150
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1213240575723+28353475&threadId=58131
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1213240587544+28353475&threadId=52458
http://forums12.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1213240580195+28353475&threadId=1142515
Regards,
Asif sharif
Asif Sharif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 10:10 PM
тАО06-11-2008 10:10 PM
Re: History Command in HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 10:28 PM
тАО06-11-2008 10:28 PM
Re: History Command in HPUX
I get an empty gnu page from 2003.
Since history is a shell builtin, you'll need to look at your shell's man page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 01:27 AM
тАО06-12-2008 01:27 AM
Re: History Command in HPUX
$history
or
man history (for help)
2)If u r using POSIX shell, then can also use
cat .sh_history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-12-2008 06:03 AM
тАО06-12-2008 06:03 AM