mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 14:06:00 +02:00
last: add example that avoids hostname truncation (#1540)
This commit is contained in:
parent
3ff22d2260
commit
fb91a188bd
1 changed files with 6 additions and 6 deletions
|
@ -10,18 +10,18 @@
|
|||
|
||||
`last -n {{login_count}}`
|
||||
|
||||
- View full login times and dates:
|
||||
- Print the full date and time for entries and then display the hostname column last to prevent truncation:
|
||||
|
||||
`last -F`
|
||||
`last -F -a`
|
||||
|
||||
- View the last login by a specific user:
|
||||
- View all logins by a specific user and show the ip address instead of the hostname:
|
||||
|
||||
`last {{user_name}}`
|
||||
`last {{user_name}} -i`
|
||||
|
||||
- View the last reboot (last login of the pseudo user reboot):
|
||||
- View all recorded reboots (i.e., the last logins of the pseudo user "reboot"):
|
||||
|
||||
`last reboot`
|
||||
|
||||
- View the last shutdown (last login of the pseudo user shutdown):
|
||||
- View all recorded shutdowns (i.e., the last logins of the pseudo user "shutdown"):
|
||||
|
||||
`last shutdown`
|
||||
|
|
Loading…
Add table
Reference in a new issue