How do you find the Ubuntu version (release number / name) from the command line?
lsb_release with the
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 9.04 Release: 9.04 Codename: jaunty
$ cat /etc/issue Ubuntu 8.10 \n \l
/etc/lsb-release to export version information variables into your shell:
$ . /etc/lsb-release
Contains the following variables
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
$ uname -a
Linux debian 2.7.30-1-686 #1 SMP Thu May 8 02:16:39 UTC 2008 i686 GNU/Linux
uname -a anaylsis:
Linux: is the kernel name.
debian: is the machine's hostname.
2.7.30-1-686: is the kernel version
1 SMP Thu May 8 02:16:39 UTC 2008: SMP stands for symmetric multiprocessing, denoting that the CPU (central processing unit) is using two or more CPUs and the current system date
i686: is the CPU architecture
GNU/Linux: is OS