How to scroll back and forwrd in HP-UX?

Thread Tools Search this Thread
Operating Systems HP-UX How to scroll back and forwrd in HP-UX?
# 1  
Old 07-13-2011
Data How to scroll back and forwrd in HP-UX?

How to scroll back and forwrd in HP-UX?

1.How to auto complete commands in HP-UNIX, which key should be used as in Linux "tab" key is being used.
2. How to scroll back and forward in HP-UX ; in Linux we use up and down arrow.SmilieSmilieSmilieSmilie
# 2  
Old 07-13-2011
After installing HP-Unix you will notice that the command history is not working. That is pressing Esc+k returns nothings. If you execute the history command you will see error message like this:
sh: fc: Cannot access or open the history file.
You have to manually enable this feature. To do this add the following two line on your ~/.profile file and create the .sh_history file using touch command. Then log in again. You will see it is working.


Last edited by vbe; 07-13-2011 at 12:33 PM.. Reason: added $HOME...
# 3  
Old 07-13-2011
After having set correctly your .profile (or .kshrc...), filename completion is done by using the Esc key twice, the back an forth in command history uses Esc+k or j (like in vi...)
This User Gave Thanks to vbe For This Post:
# 4  
Old 07-22-2011
Within your .profile make sure that you have the $HISTFILE environment variable set and exported (see above) and one or both of these two possible lines:
VISUAL=vi ; export VISUAL
EDITOR=vi ; export EDITOR

Then you can use the keystroke sequence <esc>/k to present the last command typed for editing. Move backwards or forwards through the command history using the "-" or "+" keys respectively. If you find a command you want to edit, type "v" which will invoke "vi". Then after editing, use the usual ":wq!" to exit vi and the edited command will execute.
Tip: If you decide to not execute any command (edited or not), blank the command in vi (eg. the "dd" vi command) and then ":wq!".

Last edited by methyl; 07-22-2011 at 08:11 PM.. Reason: more typos than usual
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

UZoo ad disabling scroll on page

The ad for UZoo disables scrolling. Very annoying (0 Replies)
Discussion started by: Unregistered
0 Replies

2. UNIX for Dummies Questions & Answers

help with continous scroll

I figured out my question. mods please delete. Thank you (2 Replies)
Discussion started by: rpmischris
2 Replies

3. UNIX Desktop Questions & Answers

Xaw3d asciiTextWidget: how to scroll right without scrollbar

this is kinda solved Hi I need to program an ordinary text field which scrolls to the right when it gets filled. It must be in Xaw3d. I cannot get the asciiTextWidget to do it. Which resource do you need to set in asciiTextWidget to allow the widget to scroll to the right when typing text... (1 Reply)
Discussion started by: Bibi Monash
1 Replies

4. Shell Programming and Scripting

Changing the scroll limit in ksh

I don't have my SysV bible with me currently and I can't remember how to change the amount of lines visible in my shell. Currently I can only scroll back to see the last 100 lines of stdout. Any help is greatly appreciated. blessings, Tony <>< (2 Replies)
Discussion started by: port43
2 Replies

5. AIX

Matching command scroll - ksh

In ksh is there a was to scroll thru all matching commands? For example I executed several commands over several days. Is there a way to scroll thru all the matching 'find' commands only that was executed? No messing with the .history file. Anyway to do this from the command prompt? TIA. (3 Replies)
Discussion started by: Un1xNewb1e
3 Replies

6. Solaris

How to scroll through the man page in Solaris

Hey All, I generally login to the Solaris box using Putty. But when I read a man page, I am not being able to scroll line by line using traditional 'j' or 'k' keys. Any idea about how can we scroll through line by line while reading a manage page over Putty (2 Replies)
Discussion started by: paragkalra
2 Replies

7. Shell Programming and Scripting

Scroll records from database, one at a time

Hi, I need to come up with a site that will display all the records in the database, but one at a time. Not sure how to go about it. Please pour in your suggestions. Thanks ---------- Post updated at 04:38 AM ---------- Previous update was at 12:52 AM ---------- Can... (3 Replies)
Discussion started by: sh_kk
3 Replies

8. UNIX for Dummies Questions & Answers

How To Scroll Processes In top?

I'm using top to view processes. But, I do not know how to scroll down the list to view what is not showed in the terminal window. Anyone know how to do this? (1 Reply)
Discussion started by: keenansnews
1 Replies

9. AIX

aixterm scroll?

on a AIX sys i have been trying to get the mouse scroll wheel to page the terminal for about 2 yrs now on aixterm. any ideas. the below syntax does not work in aixterm but does work in xterm. ------------------------- this does not work in aixterm but does work in xterm,, with a cat Xdefult |... (2 Replies)
Discussion started by: nullwhat
2 Replies

10. UNIX for Dummies Questions & Answers

Is there a way scroll text instead of page?

Is there a way to slowly scroll the output of a file instead of page or cat ? Instead of one page at a time, I would like to slowly scroll the displayed output of the file. (12 Replies)
Discussion started by: darthur
12 Replies
Login or Register to Ask a Question