mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-19 02:50:05 +00:00
Update cheatsheets
This commit is contained in:
25
linux/lastlog
Normal file
25
linux/lastlog
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# lastlog
|
||||
|
||||
> Show the most recent login of all users or of a user.
|
||||
> More information: <https://manned.org/lastlog>.
|
||||
|
||||
- Display the most recent login of all users:
|
||||
|
||||
`lastlog`
|
||||
|
||||
- Display the lastlog record of the specified user:
|
||||
|
||||
`lastlog --user {{username}}`
|
||||
|
||||
- Display records older than 7 days:
|
||||
|
||||
`lastlog --before 7`
|
||||
|
||||
- Display records more recent than 3 days:
|
||||
|
||||
`lastlog --time 3`
|
||||
Reference in New Issue
Block a user