commands.sh

lastcomm

all

Show last commands executed.

More info →

Examples (4)

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

Display commands executed by a given user

lastcomm --user user

Display information about a given command executed on the system

lastcomm --command command

Display information about commands executed on a given terminal

lastcomm --tty terminal_name
made by @shridhargupta | data from tldr-pages