View command was typed


 
Thread Tools Search this Thread
Operating Systems HP-UX View command was typed
# 1  
Old 10-01-2008
Question View command was typed

Hello All,

I Am A New Member To This Group.

Could you show me how to view all command was typed the same Redhat. Every I type arrow up and down to show the command was type but nothing to see. I must type it again. it is very slow.

Thanks

hoavn
# 2  
Old 10-02-2008
You should never trust arrows on true unix systems (vi heritage...)
And so like navigating in vi, to go up/down, j/k
for that (like in...) press Esc first...
# 3  
Old 10-02-2008
You posted in the HP-UX forum, but mention Red Hat in your posting. Are you using Linux or HP-UX? On Linux in the Bash shell arrow keys usually work just fine, unless your admin made local changes to switch the shell's keybindings to vi mode or something. Possibly if you get garbage when you press the arrow keys, the shell thinks you are on a different terminal type than what you really are; they send different arrow key codes. What does echo $TERM display for you?
# 4  
Old 10-03-2008
Quote:
Originally Posted by era
You posted in the HP-UX forum, but mention Red Hat in your posting. Are you using Linux or HP-UX? On Linux in the Bash shell arrow keys usually work just fine, unless your admin made local changes to switch the shell's keybindings to vi mode or something. Possibly if you get garbage when you press the arrow keys, the shell thinks you are on a different terminal type than what you really are; they send different arrow key codes. What does echo $TERM display for you?
I'm using HP UX, could you show more detail to help?
# 5  
Old 10-11-2008
Hoavn,

#1, use escape with "k" option to recollect the previous command typed in. Then you can use "n" and "j" to move up and down.

#2, to view the commands typed (As in your question), you can use history <number of commands you need from past>, then proceed copying and pasting it on your console.

-SH
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Command to View Processor Usage

Hi everyone, i used to know the command to show current CPU usage but i cannot remember it. It was not "Top". Openserver 6. (4 Replies)
Discussion started by: Paulbas
4 Replies

2. UNIX for Dummies Questions & Answers

Can I view an 'at' command?

Hi, One of our users has loads of jobs scheduled. When I do at -l I get a long list of tasks which end in .a Is there anyway I can view what these commands will do? Also, What's the relationship between the 'at' function and the crontab? I can't see any entries in crontab....Cheers (4 Replies)
Discussion started by: Grueben
4 Replies

3. AIX

"/" doesn't work on command prompt for searching commands last typed

When I use "/" to look for a particular command that I typed in the current session it says D02:-/home/user1/temp> /job ksh: /job: not found. D02:-/home/user1/temp> previously it used to fetch all the commands which had job in it.. for example subjob, endjob, joblist etc... may I... (7 Replies)
Discussion started by: meetzap
7 Replies

4. Shell Programming and Scripting

Command to view files in Directory

Hi, Can you help me in providing me a command to view all files present in a directory. Thanks a lot. -Vamsi (1 Reply)
Discussion started by: VamsiVasili
1 Replies

5. Solaris

command to view the haware detail

I use command #lscfg -v in AIX system and it gives the detail of the hardware of the system. what is the similar command to view the detail of the hardware of the system in SUN-Solaris (3 Replies)
Discussion started by: pchangba1
3 Replies

6. Shell Programming and Scripting

How to save all the command typed -urgent

hi I want to know how to save all the command used by all the used under a particular root with the time stamp in a file. Eg: User Name: UX10 Time: 10:56 Command: LS User Name: UX23 Time: 10:59 Command: MORE abc.txt Please do help. thanks and regards -Anand (1 Reply)
Discussion started by: anandtharani
1 Replies

7. UNIX for Advanced & Expert Users

i am not able to recall the command typed earlier in unix

i am not able to recall the command typed earlier in unix whenever i press esc key ^[ comes on the unix prompt . so esc k isnt working for me whenever i press backspace key i get ^H on my unix cursor need help (1 Reply)
Discussion started by: murli1200
1 Replies

8. UNIX for Dummies Questions & Answers

How to retrieve the typed command

For examples, I have typed 4 commands in the command prompt: ls -la rm -rf /home/user1 du -k /home find . -name "abc.out" -print And now I want to retrieve the command which begin with letter "r" (i.e. rm -rf /home/user1), what can I do? (5 Replies)
Discussion started by: laum
5 Replies

9. UNIX for Dummies Questions & Answers

command to view ports being used

Is there a command that will show me all ports being used? I thought maybe the "lsof" command would show me, but I'm not seeing anything. Thanks, Jeff (2 Replies)
Discussion started by: lawadm1
2 Replies

10. UNIX for Dummies Questions & Answers

view page command?

Hi All, When I run a command on any shell, many times the output is longer than the screen can hold, so I only can see parts of the output. Is there a command that will show me page by page the results of each command? Thanks, Jared (3 Replies)
Discussion started by: JaredsNew
3 Replies
Login or Register to Ask a Question