mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 16:50:27 +00:00
Update cheatsheets
This commit is contained in:
25
linux/lastcomm
Normal file
25
linux/lastcomm
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lastcomm
|
||||
|
||||
> Show last commands executed.
|
||||
> More information: <https://manpages.debian.org/latest/acct/lastcomm.1.en.html>.
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user