- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: using "tab", "backspace" and "arrow" keys.
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
тАО03-09-2009 11:27 PM
тАО03-09-2009 11:27 PM
I am connecting my HP-UX thru Telnet using putty.
1) I am not able to use "tab key" for auto completion of the command. is it possible in HP-UX like Linux.
2)The whole command is erased When I press "backspace key" to erase a single letter in a command that I entered wrongly.
3)can we use arrow keys to move cursor forward and backword in a command that we are going to execute.
Solved! Go to Solution.
- Tags:
- autocompletion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2009 11:38 PM
тАО03-09-2009 11:38 PM
Re: using "tab", "backspace" and "arrow" keys.
1)HP-UX uses escape K. I've spoken to several experts and they recommend against trying to make tab work with HP-UX
2)stty erase
3) Escape K.
If you fiddle around enough you can make this stuff work like Linux. However I found it useful to have HP-UX behave differently so I know what type of system I am on.
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
тАО03-09-2009 11:39 PM
тАО03-09-2009 11:39 PM
SolutionIt deponds on the shell which you are using.
For auto completetion you should press Esc key two times after typed first few characters.
For command history you should press Esc+k key combination. Afer Esc+k , press k till you get the desired history command.
You can also install bash shell on HP to get the features of Linux bash shell.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:26 AM
тАО03-10-2009 12:26 AM
Re: using "tab", "backspace" and "arrow" keys.
you given this answer
2)stty erase
for my this question
how to erase a single letter if i entered a command wrongly?
I am not able to understand your answer.
- Tags:
- stty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2009 12:48 AM
тАО03-10-2009 12:48 AM
Re: using "tab", "backspace" and "arrow" keys.
rather than fiddling with stty commands on the HP-UX box its probably easier just to get PuTTY to behave correctly.
In your PuTTY Configuration Dialog, go to Terminal->Keyboard page and change the Backspace key from its default of Control-? (127) to Control-H
Now as long as no-one is hard setting a specific TERM value on the HP-UX server it should work correctly.
As far as the other items are concerned, I agree with the other posters - don't make HP-UX like Linux, learn how to use the vi style command history functions (i.e. press ESC once and then use standard vi editing commands to move about through the current command and command history). The (horrible in my opinion) functionality in Linux is much more a product of the PC "doskey" style functionality which "assumes" all keys are mapped correctly. On UNIX you never know when you'll run across a system where terminal emulation isn't configured correctly, so being able to fall back on a method that doesn't need to use extended keys is much preferrable.
As already indicated, if you really want this functionality install bash on your server. But DO NOT make bash the default shell for root (unless you want to break your box).
HTH
Duncan
I am an HPE Employee

- Tags:
- putty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:25 AM
тАО03-11-2009 06:25 AM
Re: using "tab", "backspace" and "arrow" keys.
See I am connecting HP-UX server. that is configured with Telnet. and I am using Putty
to connect.
after connecting
1) i am not able to auto complete the commands using pressing "esc twice".
2)i am not able to get comman history by pressing "esc + k" and again k.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:37 AM
тАО03-11-2009 06:37 AM
Re: using "tab", "backspace" and "arrow" keys.
In order to scroll up pand down in the command history, using esc-k, first you need to set your command history correctly and history scroll keys (called vi binding I think). In your .profile enter the following:
export HISTFILE=$HOME/.sh_history
export HISTSIZE=500
set -o vi
log out and log back in.
you should be able to perform the functions.
Hope this helps
UNIX because I majored in cryptology...
- Tags:
- history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 06:40 AM
тАО03-11-2009 06:40 AM
Re: using "tab", "backspace" and "arrow" keys.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2009 07:48 AM
тАО03-11-2009 07:48 AM
Re: using "tab", "backspace" and "arrow" keys.
if you absolutely have to have them, you will need to install bash and all of its prerequisites.
as noted above, *don't* install anything other then /sbin/sh for root's default shell.
in the event you want bash for root, simply start it at the command line after login