can't open /var/log/lastlog

When I run the command

gedit /var/log/lastlog

I get:

gedit has not been able to detect the character encoding.
Please check that you are not trying to open a binary file.
Select a character encoding from the menu and try again.

Anyone know how to open this file?


Opensuse 11.4 Gnome

It is a binary file. You are not supposed to edit it.

Check “/usr/include/lastlog.h” and “/usr/include/bits/utmp.h” for the format of entries.

finger username

will provide the information for that particular user.

Or simply type the command


which is made to read the /var/log/lastlog entries.