Monday, November 16, 2009



Probably did this before - but administered lost and found computers has made me need this info again.

Version of linux.
cat /proc/version

Gives you:
Linux version 2.6.28-15-generic (buildd@rothera) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #52-Ubuntu SMP Wed Sep 9 10:49:34 UTC 2009

And then you need the release info for the distribution.

lsb_release -a

Gives you:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

And of course uname -a. Which is a start. Would love to hear other tips on determining the state of a box that has previously been abandoned.

Update: Naming of the actual machine and shit as well.

Running hostname should give you the name of the actual machine. Not entirely sure how this works when you have multiple "machines" kinda running off the same physical machine.
user@machine:~$ hostname

You can then check this the other way round:
user@machine:~$ host name.domain.tld
ip address domain name pointer name.domain.tld

No comments: