- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to see histroy file
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
Forums
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
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
тАО03-28-2009 06:27 AM
тАО03-28-2009 06:27 AM
how to see histroy file
Can anyone help me regarding history file in hp-ux 11i v3? Like linux how can I see history file for last all executed command?
Aungshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 07:32 AM
тАО03-28-2009 07:32 AM
Re: how to see histroy file
# ksh -o vi
Esc-k
or
# strings $HOME/.sh_history
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 07:48 AM
тАО03-28-2009 07:48 AM
Re: how to see histroy file
Hi,
When I type the following command it prompt :
# strings $HOME/.sh_history
//.sh_history: No such file or directory
Please suggest.
Aungshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 08:04 AM
тАО03-28-2009 08:04 AM
Re: how to see histroy file
What kind of shell does your user have (ksh,bash,csh)?
# su - user
# echo $HISTFILE
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 09:18 AM
тАО03-28-2009 09:18 AM
Re: how to see histroy file
Aungshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 10:49 AM
тАО03-28-2009 10:49 AM
Re: how to see histroy file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2009 05:26 PM
тАО03-28-2009 05:26 PM
Re: how to see histroy file
regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 01:09 PM
тАО03-29-2009 01:09 PM
Re: how to see histroy file
The ksh shell will not create the .sh_history file for the root user automatically. You must also set two variables in /etc/profile:
export HISTFILE=$HOME/.sh_history
export HISTSIZE=2000
Then as root, run the command:
touch $HOME/.sh_history
Then login again and your shell history will begin working.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 09:03 PM
тАО03-29-2009 09:03 PM
Re: how to see histroy file
Are you using root (Super User) account or a normal user.
Suraj