- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Short cuts in HP-UX 11.00 - with question!
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
тАО08-29-2001 05:56 AM
тАО08-29-2001 05:56 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 06:02 AM
тАО08-29-2001 06:02 AM
Re: Short cuts in HP-UX 11.00 - with question!
HISTFILE=$HOME/.sh_history
export HISTFILE
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 06:04 AM
тАО08-29-2001 06:04 AM
Re: Short cuts in HP-UX 11.00 - with question!
HISTFILE=$HOME/.sh_history
export HISTFILE
set -o vi
Carsten
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 06:08 AM
тАО08-29-2001 06:08 AM
Re: Short cuts in HP-UX 11.00 - with question!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 06:13 AM
тАО08-29-2001 06:13 AM
Re: Short cuts in HP-UX 11.00 - with question!
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 07:01 AM
тАО08-29-2001 07:01 AM
Re: Short cuts in HP-UX 11.00 - with question!
you can use this if you want.
set your EDITOR to "vi" if it is not already done through your profile.
EDITOR=vi
export EDITOR
then use
ksh -o vi
this will create a file .sh_history in your home directory if it is not available and will use one if it is already available. After this you can use
Hope this helps
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 07:54 AM
тАО08-29-2001 07:54 AM
Solutionexport HISTFILE=$HOME/.sh_history
Then logout and back in again. If .sh_history does not exist (primarily for root), you may have to create it using the touch command:
touch $HOME/.sh_history
Actually, only a single ESC is neede to recall the last command as in: ESC k
Some really useful command recall features:
Search for a particular command:
ESC /
then after the first occurance of the search is found, use the letter n to move to the next one just like vi).
Recall a specific command:
history (that's an alias for fc -l)
or
history -100 (show the last 100 entries)
To recall a specific command:
r 123
You can edit a recalled command using most of the vi line edits and once the line is correct, press return to execute.
See the man page for sh-posix
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2001 08:43 AM
тАО08-29-2001 08:43 AM
Re: Short cuts in HP-UX 11.00 - with question!
and if you add "set -o viraw" after the
"set -o vi" you do get the Filename Completion
feature when you press
first few characters of a filename...
HTH,
Wodisch