Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Last commands executed. 1

Status
Not open for further replies.

jrward

MIS
Jan 22, 2003
14
0
0
CA
How do I find a history of the last commands executed using SCO Unix Openserver 5.0.6?
 
I am logged in as root and the prompt is a "#" sign. I think I am in the Korn shell as vi is available to me.
 
ps -fp $$ will confirm the shell you are running. If the last column is -ksh it's Korn shell, if it's just -sh it's Bourne shell.

If it's the former, have a look in the /.sh_history file for recent commands.

Annihilannic.
 
Sorry, I just found the line "SHELL=/bin/sh" in the .profile so I am in the Bourne shell.
 
In that case the command history is not recorded anywhere unless, perhaps, system accounting was enabled, which is not common.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top