mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-01 23:17:56 +01:00
Merge pull request #519 from Cvetomird91/last
last: added the command in common section
This commit is contained in:
commit
0173a275b7
1 changed files with 27 additions and 0 deletions
27
pages/common/last.md
Normal file
27
pages/common/last.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# last
|
||||||
|
|
||||||
|
> View the last logged in users
|
||||||
|
|
||||||
|
- view last logins, their duration and other information as read from /var/log/wtmp
|
||||||
|
|
||||||
|
`last`
|
||||||
|
|
||||||
|
- specify how many of the last logins to show
|
||||||
|
|
||||||
|
`last -n {{login_count}}`
|
||||||
|
|
||||||
|
- view full login times and dates
|
||||||
|
|
||||||
|
`last -F`
|
||||||
|
|
||||||
|
- view the last login by a specific user
|
||||||
|
|
||||||
|
`last {{user_name}}`
|
||||||
|
|
||||||
|
- view the last reboot (last login of the pseudo user reboot)
|
||||||
|
|
||||||
|
`last reboot`
|
||||||
|
|
||||||
|
- view the last shutdown (last login of the pseudo user shutdown)
|
||||||
|
|
||||||
|
`last shutdown`
|
Loading…
Reference in a new issue