|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Previous command
Hi,
i would like to retrieve (only retrieve, not execute) a previous command which i executed on the command prompt. I tried the 'up arrow' key, but its not working. Instead,it showed me some funny characters. I searched around and i found the way to do it was using the way below. Several websites quoted as saying ".. using control key ^P .. ". What keys do i type to get the control P ? I tried shift + P and Ctrl + P, neither worked. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
What shell and TERM?
|
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
What shell are you using?
On hpux normally it would be Esc+k (previous, previous...) or Esc +j (forward...) Or you can type history... |
|
#4
|
|||
|
|||
|
I got the following output when i did a Code:
echo $0 /bin/ksh I suppose its k shell? In this case, what should be the key to retrieve the last command? |
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
How to Check the Os error messages in HP-UNIX
![]() Hi , Can anybody help me for checking the OS error messages in HP-UNIX Servers like /var/adm/messages in linux servers .. |
| Sponsored Links | |
|
|
#6
|
||||
|
||||
|
In ksh if you are in vi mode (i.e. have set -o vi ), use Code:
ESC and k (or ESC and -) to move back, or ESC and j to move forward ( or ESC and + ) If you have set -o emacs, or gmacs, use Code:
control-p for previous command and control-n for next command. HTH, |
| Sponsored Links | ||
|
![]() |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Previous Command | vskr72 | UNIX for Dummies Questions & Answers | 2 | 04-20-2007 11:03 AM |
| Previous Command | vskr72 | Shell Programming and Scripting | 1 | 04-19-2007 07:04 PM |
| Previous Command | vskr72 | UNIX for Advanced & Expert Users | 0 | 04-19-2007 06:51 PM |
| Seeing previous command | JackieChan | UNIX for Dummies Questions & Answers | 4 | 06-02-2006 09:35 AM |
| getting the previous command | luft | UNIX for Dummies Questions & Answers | 5 | 08-18-2005 11:02 AM |
|
|