Useful shortcuts for vi editor

Showing posts with label tail. Show all posts
Showing posts with label tail. Show all posts

Monday, 30 July 2018

How to know last login info on the system?

-> show all records
$ last

-> show all records page by page
$ last | more

-> show first 10 records
$ last | head

-> show first 100 records
$ last | head -100

-> show last 10 records
$ last | tail -10

-> show last 100 records
$ last | tail -100