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!
Newer versions
You can use
-s
option:use
-t
to specify until another date if you like.If you receive a message like:
it means that "logrotate" has removed your log files so you don't have access to use them.
for older versions you should specify full time: