tldr/pages/linux/lastcomm.md

21 lines
492 B
Markdown
Raw Normal View History

2019-10-10 06:38:13 +03:00
# lastcomm
> Show last commands executed.
> More information: <https://manpages.debian.org/stable/acct/lastcomm.1.en.html>.
2020-12-04 15:37:44 +03:00
- Print information about all of the commands in the acct (record file):
2019-10-10 06:38:13 +03: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}}`