- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: about history command
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
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
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-30-2004 04:18 PM
06-30-2004 04:18 PM
How to enable the history? I made entry for variable in .profile file in Home directory.
But after exporting aslo next login its not working
HISTFILE=/home/user/.sh_history
HISTSIZE=100
export HISTFILE
help me how to enable this permantently while login..
Shankar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 04:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 04:26 PM
06-30-2004 04:26 PM
Re: about history command
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 04:46 PM
06-30-2004 04:46 PM
Re: about history command
You don't need HISTFILE (unless you are root). The default is to use $HOME/.sh_history (see man sh-posix).
What shell is the user using?
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 06:55 PM
06-30-2004 06:55 PM
Re: about history command
Even "set -o vi" will do the job for you. As Geoff has rightly pointed out, .sh_history is where your command history is stored.
HTH.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 07:02 PM
06-30-2004 07:02 PM
Re: about history command
We can use the history of commands usage from csh shell.
Default location of HISTFILE is /home/.sh_history. The users wants to use the histroy of commands has to have the full permission on /home/ directory.
If you want to have default history enablement after the startup,make changes on the /home/USER/.profile file.
To enable the history on shell use as like "set -o vi" or "ksh -o vi" with your HISTFILE options on that .profile file
See ksh man page for HISTFILE and command Re-entry part to know about this history of commands.
Regards,
Muthukumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 10:36 PM
06-30-2004 10:36 PM
Re: about history command
Pls consider the following environment definition into your .profile:
EDITOR=vi; export EDITOR
HISTFILE=/.sh_history; export HISTFILE
HISTSIZE=10000; export HISTSIZE
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2004 11:03 PM
06-30-2004 11:03 PM
Re: about history command
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=59366
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2005 08:05 AM
01-21-2005 08:05 AM
Re: about history command
This is Don Conway......are you the shankar I worked with at Fisher Controls in Marshalltown, Iowa?
Don
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2005 08:07 AM
01-21-2005 08:07 AM
Re: about history command
Shankar,Ganesh
This is Don Conway......are you the shankar I worked with at Fisher Controls in Marshalltown, Iowa?
Don donald.conway@chra.army.mil