Sep 9, 2003 #1 jrward MIS Jan 22, 2003 14 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 Jun 2, 2003 3,324 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 Jan 22, 2003 14 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 Jun 22, 2000 6,317 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 Jan 22, 2003 14 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 Jun 22, 2000 6,317 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.