Command for last reboot and shutdown.
Last Rebbot, Shutdown and login information with date and time.
$ last
Last Rebbot Information with date and time
$ last rebootÂ
Last Shutdoan Information with date and time
$ last shutdown
Last Rebbot Information for top Five with date and time
$ last reboot | head -5
Last Shutdown Information for top Four with date and time
$ last shutdown | head -4
Insert Login “Username” after last login syntex. I wil come all login information for “username”
$ last login “username”
nsert Login “Username” after last login syntex and also insert head -6.
It mean login username information will come top 6 history
$ last login {username} | head -6