All Posts programming lastcomm: show last commands executed

lastcomm: show last commands executed

· 115 words · 1 minute read

lastcomm is a command-line program to show last commands executed.

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

lastcomm

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

More information: https://manpages.debian.org/latest/acct/lastcomm.1.en.html .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .