How to : Find last login year ?

Friends ,

With "last root | head -1 " command , we can find the last loging date and month . But i want to find last login year.

Help me if u have any idea regarding this issue.

Thanks
AVklinux

you might have to read the wtmp file directly.

Hey Frank ,

Can u tell me the command for that ???

Thanks ...

You will have to write a program to read it on most systems. There are simple examples in perl or C on the net. On AIX there is a fwtmp utility that might work if you use that system. It is possible that similar utilities exist for Linux but I don't know of any off hand.