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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content