On Raspbian one can read the recent login history using the command 'last'.
Then if one copies the log files in /var/log/ to on a different Linux system and want to read the login, which methods are available? The file /var/log/wtmp and /var/log/lastlog seem binary files and cannot be read using less/vim.
last -f file_name- it probably won't give the correct username (because most Linux commands use uid). – Milliways Mar 25 '19 at 07:03ls -lanshows numeric uid - which is what is stored in file attributes, althoughpiis a directory name). On default Raspbianpi==1000– Milliways Mar 25 '19 at 07:53The lastlog file is a linear array of lastlog structures indexed by a user's UIDandThe utmp file is a linear array of utmp structures indexed by a terminal line number- the structure for both is defined as well – Jaromanda X Mar 25 '19 at 10:40