バージョンの確認方法
lsb_releaseがあるときは以下。
$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.10 Release: 8.10 Codename: intrepid
ないときはファイルを探す。
# redhad系 $ cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 7) # Ubuntu $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=8.10 DISTRIB_CODENAME=intrepid DISTRIB_DESCRIPTION="Ubuntu 8.10"