How to display complete list of login and logout with times & dates in the Linux server

To display complete list of login and logout with times  and dates in the Linux server  ,you can use ‘ last ‘ command with -F option.

 [root@localhost ~]# last -F
root pts/0 192.168.26.1 Wed Jan 10 20:56:02 2018 still logged in
reboot system boot 3.10.0-693.11.1. Wed Jan 10 20:55:19 2018 – Wed Jan 10 21:21:44 2018 (00:26)
root pts/0 192.168.26.1 Wed Jan 10 20:46:37 2018 – crash (00:08)
root pts/0 192.168.26.1 Wed Jan 10 20:06:19 2018 – Wed Jan 10 20:38:34 2018 (00:32)
reboot system boot 3.10.0-693.11.1. Wed Jan 10 19:58:23 2018 – Wed Jan 10 21:21:44 2018 (01:23)
root pts/0 192.168.26.1 Wed Jan 10 19:50:41 2018 – crash (00:07)
reboot system boot 3.10.0-693.11.1. Wed Jan 10 16:49:29 2018 – Wed Jan 10 21:21:44 2018 (04:32)
root pts/0 192.168.26.1 Wed Jan 10 19:46:32 2018 – crash (-2:-57)
root pts/1 192.168.26.1 Wed Jan 10 15:28:30 2018 – crash (01:20)
root pts/0 192.168.26.1 Wed Jan 10 12:57:04 2018 – Wed Jan 10 15:42:32 2018 (02:45)
reboot system boot 3.10.0-693.11.1. Wed Jan 10 12:55:15 2018 – Wed Jan 10 21:21:44 2018 (08:26)
root pts/0 192.168.26.1 Wed Jan 10 12:36:57 2018 – down (00:17)
reboot system boot 3.10.0-693.11.1. Tue Jan 9 23:05:42 2018 – Wed Jan 10 12:54:43 2018 (13:49)
root pts/0 192.168.26.1 Tue Jan 9 23:01:20 2018 – down (00:04)
reboot system boot 3.10.0-693.11.1. Tue Jan 9 23:00:16 2018 – Tue Jan 9 23:05:27 2018 (00:05)

..

..

wtmp begins Wed Dec 28 17:12:53 2016
[root@localhost ~]#.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s