- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Putty and HP-UX config
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
тАО04-26-2007 03:08 AM
тАО04-26-2007 03:08 AM
Putty and HP-UX config
The problem I am having is that I can not get the "esc" key to work to scroll through last commands, etc. Things like esc-k and esc-j don't work for me.
I think I am missing something obvious so hopefully someone can guide me in the right direction.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 03:16 AM
тАО04-26-2007 03:16 AM
Re: Putty and HP-UX config
vi editor style:
ESC k will bring the last command on the line, andput you in vi mode (actually, ESC puts you in vi mode, and k recallsthe last issued command).
l moves the cursor one position to the right.
h moves the cursor one position to the left.
k recalls the previous command.
j recalls the next command.
O moves the cursor to the beginning of the line.
$ moves the cursor to the end of the line.
fc finds next character c on the line.
i puts you in input mode.a brings the cursor forward one, then puts you in input mode.A brings the cursor to the end of the line, and puts you in input mode.ESC takes you out of input mode (or beeps if in vi mode).
This style of command line editing is enabled with ...
set -o vi
either in your .profile file, or manually during your logon session.
The previous command can be recalled and automatically executed bytypingron a command line.r [string]will recall and execute the last command used, that began with string.
Hope this helps,
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 03:27 AM
тАО04-26-2007 03:27 AM
Re: Putty and HP-UX config
escuse me for my silly question:
do you have check in
PUTTY configuration
Terminal - Keyboard
if "the Function keys and keypad"
is set to "ESC[ "
?
regards
pg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 03:37 AM
тАО04-26-2007 03:37 AM
Re: Putty and HP-UX config
Make sure that the $EDITOR environmental variable is set to 'vi' (this is usually accomplished through ~/.profile).
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 03:58 AM
тАО04-26-2007 03:58 AM
Re: Putty and HP-UX config
set -o vi
command somewhere in your .profile but if it is working at other places and not here, then I would check my environment variable, TERM, and also the putty terminal settings, keyboard sub-item.
Hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2007 04:15 AM
тАО04-26-2007 04:15 AM
Re: Putty and HP-UX config
Major mistake such that I did not have:
export HISTFILE=$HOME/.sh_history
export HISTSIZE=8192
in my .profile!
PLus, the set -o vi helped.
Thanks again to all.