#last #command #util-linux #user-name #utmp-rs

bin+lib last-rs

A Rust reimplementation of the util-linux last command

2 releases

0.2.1 Sep 1, 2022
0.2.0 Sep 1, 2022

#5 in #util-linux

27 downloads per month

MIT license

10KB
202 lines

last.rs

A Rust reimplementation of the util-linux last command.

This is NOT intended as a replacement for last.c. It is mostly a library to provide last-like output to other Rust project. It is also an example of how to use utmp-rs.

NOT yet feature compatible with last.c. Right now, the output is kind of like last <username>, and no options or flags are supported.

Acknowledgements

Thank you to utmp-rs for doing the hard work of parsing /var/log/wtmp and making my life easy.

Dependencies

~4MB
~68K SLoC