Sep 9, 2003 #1 jrward MIS Joined Jan 22, 2003 Messages 14 Location CA How do I find a history of the last commands executed using SCO Unix Openserver 5.0.6?
Sep 9, 2003 #2 fredericofonseca IS-IT--Management Joined Jun 2, 2003 Messages 3,324 Location PT which shell are you using (not possible is in some) Regards Frederico Fonseca SysSoft Integrated Ltd http://www.syssoft-int.com Upvote 0 Downvote
which shell are you using (not possible is in some) Regards Frederico Fonseca SysSoft Integrated Ltd http://www.syssoft-int.com
Sep 9, 2003 Thread starter #3 jrward MIS Joined Jan 22, 2003 Messages 14 Location CA 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. Upvote 0 Downvote
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.
Sep 9, 2003 1 #4 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU 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. Upvote 0 Downvote
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.
Sep 9, 2003 Thread starter #5 jrward MIS Joined Jan 22, 2003 Messages 14 Location CA Sorry, I just found the line "SHELL=/bin/sh" in the .profile so I am in the Bourne shell. Upvote 0 Downvote
Sep 9, 2003 #6 Annihilannic MIS Joined Jun 22, 2000 Messages 6,317 Location AU In that case the command history is not recorded anywhere unless, perhaps, system accounting was enabled, which is not common. Annihilannic. Upvote 0 Downvote
In that case the command history is not recorded anywhere unless, perhaps, system accounting was enabled, which is not common. Annihilannic.