lastlog.md: add page (#1817)
This commit is contained in:
19
pages/linux/lastlog.md
Normal file
19
pages/linux/lastlog.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# lastlog
|
||||||
|
|
||||||
|
> Show the most recent login of all users or of a given user.
|
||||||
|
|
||||||
|
- Display the most recent login of all users:
|
||||||
|
|
||||||
|
`lastlog`
|
||||||
|
|
||||||
|
- Display lastlog record of the specified user:
|
||||||
|
|
||||||
|
`lastlog -u {{username}}`
|
||||||
|
|
||||||
|
- Display records before than 7 days:
|
||||||
|
|
||||||
|
`lastlog -b {{7}}`
|
||||||
|
|
||||||
|
- Display records more recent than 3 days:
|
||||||
|
|
||||||
|
`lastlog -t {{3}}`
|
Reference in New Issue
Block a user