Files
cheatsheet-tldr/tldr/lastcomm
2025-12-20 00:20:53 +00:00

26 lines
551 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# lastcomm
> Show last commands executed.
> More information: <https://manned.org/lastcomm>.
- 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}}`