[Ubuntu Maverick] Get ubuntu/kernel version/code-name

Friday, January 7, 2011
Sometimes, when you logged in a remote Ubuntu server, it will be easier to find out suitable packages if you know the version/code-name of it.
In gnome terminal, to get the Ubuntu version, use the following command:
  • $cat /etc/lsb-release
you will get some similar output as following:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"

to get the kernel version, use the following command:
  • $uname -a
then you will get the following output:

Linux 2.6.35-generic #42-Ubuntu SMP Thu Dec 1 00:00:00 UTC 2000 x86_64 GNU/Linux

0 意見: