Yukiharu YABUKI の tDiary
このtDiaryを検索します。
2010-05-14 [長年日記]
_ [Linux] lsb_release
lsb_release コマンドで、distributionの確認ができるとはしらなんだなあ。
- Debian GNU/Linux lennyの場合
yabuki@yelona:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 5.0.4 (lenny)
Release: 5.0.4
Codename: lenny
- CentOS の場合
$ lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5.4 (Final)
Release: 5.4
Codename: Final
See also Linux Standard Base(http://ja.wikipedia.org/wiki/Linux_Standard_Base)