![Forrest logo](/images/logo.png)
lastcomm:tldr:3d68f
The command "lastcomm --command ${command}" is used to display information about previously executed commands on a Unix-like operating system.
Here's a breakdown of the command:
-
"lastcomm": This is the main command used to examine and display information about previously executed commands. It is a part of the "acct" package in Unix-like systems.
-
"--command ${command}": This is an option that is used to filter the output of the "lastcomm" command based on a specific command. By providing the value of ${command}, you can specify the command you are interested in.
For example, if you run "lastcomm --command ls", it will display information about previously executed "ls" commands. The ${command} placeholder is replaced with the specific command you want information about.
The output of the command typically includes details like the user who executed the command, the terminal it was executed on, the time of execution, and the amount of CPU time used by the command.
Note that the availability and functionality of the "lastcomm" command may vary slightly depending on the specific Unix-like operating system you are using.