I need to get the details of the users logged in from last 6 months to analyze and to increase the cpu of my server. I'm tried the command last -a but it is not giving the complete results. Anyone please help me to get the details of users logged in from last 6 months.
Thanks in advance!
last -V? – Ravexina Jun 28 '17 at 06:58last --time-format=iso | grep "2017-0[0-6]"– Ravexina Jun 28 '17 at 07:05last -t 201701010000? – Ravexina Jun 28 '17 at 07:1020170101000000– Ravexina Jun 28 '17 at 08:01-t 20161201000000to get all logs from December 2016 till now. – Ravexina Jun 28 '17 at 08:13lastcommand is a little bit old, you should use full date like:20170628000000, in newer versions you can dolast -s today. – Ravexina Jun 28 '17 at 08:54