lastcomm
Show last commands executed. tldr-pages
On several platforms
Several platforms
Print information about all the commands in the acct (record file)
lastcommIdentifyDisplay commands executed by a given user
lastcomm --user userIdentifyDisplay information about a given command executed on the system
lastcomm --command commandIdentifyDisplay information about commands executed on a given terminal
lastcomm --tty terminal_nameIdentify