Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
UNIX command to display cmd history
Name: Sue Date: September 21, 2002 at 12:08:26 Pacific OS: UNIX CPU/Ram: unknown (work)
Comment:
Major brain fade here ... there is a Unix command that will list the history of commands during a session (I thought it was .sh_history, but was proven wrong). I've also forgotten the Unix command that is similar to DOS's doskey that will allow me to scroll through previous commands. Any assistance is appreciated!!! Thanks! Sue
Name: jimbo Date: September 21, 2002 at 12:21:41 Pacific
Reply:
Sue,
This is dependent on the shell you use. ksh uses the .sh_history as mentioned above. Also, when using ksh, if you type "set -o vi" at the prompt, you can scroll through previous commands by pressing ESCAPE, and then the letter "k" - This uses vi as your line editor though, so you should know how to move around in that pretty well.
I think you might want to use the bash shell if available because it allows you to use the arrow keys (ksh requirs remapping keys). Last, i believe the history file is .bash_history. Hope this helped,
-jim
0
Response Number 2
Name: Sue Date: September 21, 2002 at 14:11:35 Pacific
Reply:
Thanks Jim! I took Unix and Unix Admin 2 years ago and I've forgotten much - time to break out my old textbooks and refresh my memory! Thanks again! Sue
0
Response Number 3
Name: Riman Moses Date: September 23, 2002 at 11:45:01 Pacific
Reply:
Jim did it. U got any major tips, share with me. I manage HP900 (HP UX-11).
Moses
0
Response Number 4
Name: ramadog Date: September 25, 2002 at 16:40:15 Pacific
Reply:
On some system using the command 'history' does what you want.
Summary: Hi, I am wroking in C program that deals with system file in windows. The content of the file is refreshed when the user click on the icon/folder that contains the file OR when opening and closing the...
Summary: Hello All, How can I open the xls file using unix command or shell script. I would like to open the xls file in Excel using Unix command or shell script. Can any one help me in this? Thanks in advance...
Summary: Hi, I'm looking for a command to display a screen or window from a Unix station to a PC (with reflection). I think there is something with setenv display or export display but I don't know how to use ...