- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Console terminal
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
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
тАО12-06-2000 01:23 AM
тАО12-06-2000 01:23 AM
Console terminal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 01:26 AM
тАО12-06-2000 01:26 AM
Re: Console terminal
If I remember well, HISTSIZE defauts to 0 for root.
Make sure HISTFILE is set to /.sh_history
and HISTSIZE to some positive integer (i.e. 256).
Make sure your shell is in vi editing mode 'set -o vi'
Regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 01:26 AM
тАО12-06-2000 01:26 AM
Re: Console terminal
# ksh
# set -o vi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 01:30 AM
тАО12-06-2000 01:30 AM
Re: Console terminal
HISTFILE=${HOME}/.history_files/.hist.`who am i|awk '{print $1}'`.$$.`date +%d%m%y.%H%M`
HISTSIZE=1000
export HISTFILE HISTSIZE
set -o vi
or if you dont want unique history files then just set HISTFILE to $HOME/.sh_history (or whatever). We use unique history files as an audit trail as we have rootxx userids.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 01:33 AM
тАО12-06-2000 01:33 AM
Re: Console terminal
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0xee04a24d9abcd4118fef0090279cd0f9!0,00.html
essentially, you have to ensure that HISTFILE is defined for root - its better to set it up in the /etc/profile so that it is defined for everyone:
# echo "export HISTFILE=~/.sh_history" >> /etc/profile
logout and back in, and voila, all subsequent logins will be recorded.
also see man sh-posix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2000 01:41 AM
тАО12-06-2000 01:41 AM
Re: Console terminal
VISUAL=vi ; export VISUAL
HISTFILE=$HOME/.sh_history ; export HSITFILE