記錄查詢目前安裝 Ubuntu 版本 command。
~$ cat /etc/issue
Ubuntu 10.04.1 LTS \n \l
~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
得知安裝位元版本 command。
~$ getconf LONG_BIT
32
~$ file /sbin/init
/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped