Show last logins after logging in

Display current open connections, all of today and yesterday’s entries

Did a Sunday project today: Print last logins after you connect to your remote machine.
https://github.com/LC43/bash-last-logins

Can also be used locally.

Sorts the last logins, listing their connection times and duration. Also warns you of active connections.

The default Message of the Day is hardly useful, so today i just enough time to make it prettier.

bash-last-logins-screenshot

Follow the steps written in the github page to add it to your bash login, or run it locally.

Expect a slight delay when logging in, as it reads all the latest entries from the /var/log/wtmp.

Have fun

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s