How can I know which commands were run before the server reboots?
Updated -
Red Hat Enterprise Linux provides several ways to display which commands were run before the server reboots; psasct and lastcomm. Lastcomm prints out information about previously executed commands. If no arguments are specified, lastcomm will print info about all of the commands in acct (the record file).
First, please make sure the package psacct is in...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.