lastcomm

Show last commands executed.

TLDR

Print information about all the commands in the acct (record file)

$ lastcomm
copy

Display commands executed by a given user

$ lastcomm --user [user]
copy

Display information about a given command executed on the system

$ lastcomm --command [command]
copy

Display information about commands executed on a given terminal

$ lastcomm --tty [terminal_name]
copy

Copied to clipboard
gala