Why is the last
command failing on my fresh install of Alpine 3.12?
$ last
couldn't open file '/dev/null/wtmp': Not a directory
wtmp begins Thu Jan 1 00:00
(on a Linode server if that matters)
I want some way of identifying which instance that I'm on when I ssh into a Linux ec2 instance. I would like to be able to uniquely identify the instance from the command-line and correlate this to http://console.aws.amason.com
Any of the following would be helpful:
AMI
Private DNS
Public DNS
Tags
I'm using Ubuntu and Red Hat instances.