Operating System - HP-UX
1753278 Members
5637 Online
108792 Solutions
New Discussion юеВ

Re: Navigation keys on command prompt

 
Umesh Kumar_1
New Member

Navigation keys on command prompt

Hi,
i was curious to know all possible navigation option on command prompt of hp-ux like for e.g., cltr+c to switch or log off as a root user or terminate. likewise what are the keys to move on command prompt (how to bring up previously used commands)and that sort. Guess there are few tricks too.. looking forward for ur quick assistance.

Thanks in advance
UKUX
3 REPLIES 3
Tingli
Esteemed Contributor

Re: Navigation keys on command prompt

First,

# set -o vi

then, you can use Esc k to retrieve old command. Or Esc k/ to trace back the similar old command.
Pete Randall
Outstanding Contributor

Re: Navigation keys on command prompt

Typically these are set up in /etc/profile with the stty command so you might want to start with a peek at the /etc/profile file and then the man page for stty.

grep stty /etc/profile
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
stty susp ""
stty dsusp ""

Command recall is a funtion of the shell you are using and is usually (korn or posix shells) set up with the HISTFILE, HISTSIZE environmental variables and invoked with "set -o vi" in your login file (.kshrc, for example).


Pete


Pete

Pete
Sunny123_1
Esteemed Contributor

Re: Navigation keys on command prompt

Hi u can use following if you have posix or k shell

ksh -o vi
then
ESC+K=up
ESC+J-down
ESC+L=right
ESC+H=Left

Please assign points to each answer.

Regards
Sunny