2019-10-10 04:38:13 +01:00
|
|
|
# lastcomm
|
|
|
|
|
|
|
|
> Show last commands executed.
|
2023-05-14 03:49:17 +01:00
|
|
|
> More information: <https://manpages.debian.org/latest/acct/lastcomm.1.en.html>.
|
2019-10-10 04:38:13 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Print information about all the commands in the acct (record file):
|
2019-10-10 04:38:13 +01:00
|
|
|
|
|
|
|
`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}}`
|