逆引きUNIXコマンド/ディストリビューションのバージョンなどを確認する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* ディストリビューションのバージョンなどを確認する・lsb_r...
以下のコマンドを利用することによりディストリビューション...
lsb_release -a
以下に、CentOS, Ubuntu, Debianで実行した結果を記します。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#s62be5bb]
- [[ファイル参照によるLinuxバージョンの確認方法>逆引きUNI...
* lsb_release -a コマンド実行例 [#if9da968]
** Ubuntuにて実行 [#a23f0cda]
以下、Ubuntu10.04にて実行した出力結果です。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
** CentOS5.8にて実行 [#bbe00770]
以下、CentOS5.8にて実行した出力結果です。
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-...
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
** Debian squeezeにて実行 [#j78eaeee]
以下、Debian squeezeにて実行した出力結果です。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.4 (squeeze)
Release: 6.0.4
Codename: squeeze
* lsb_releaseコマンドのオプション [#v6f05958]
lsb_releaseコマンドのオプションを以下に記します。~
コマンドはCentOSで実行しました。
- -v, --version, オプションなし~
バージョン表示
- -i, --id~
ディストリビューターIDの表示~
$ lsb_release -i
Distributor ID: CentOS
- -d, --description~
説明を表示~
$ lsb_release -d
Description: CentOS release 5.8 (Final)
- -r, --release~
リリースを表示~
$ lsb_release -r
Release: 5.8
- -c, --codename~
コードネームを表示~
$ lsb_release -c
Codename: Final
- -a, --all~
上記全てを表示~
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-...
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
- -s, --short~
短い形式で表示する~
以下のようにコードネームのみ取得したい場合などに利用でき...
$ lsb_release -c
Codename: Final
$ lsb_release -cs
Final
$ lsb_release --codename --short
Final
- -h, --help
lsb_releaseの使いかたが表示されます。
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
終了行:
#navi(../)
* ディストリビューションのバージョンなどを確認する・lsb_r...
以下のコマンドを利用することによりディストリビューション...
lsb_release -a
以下に、CentOS, Ubuntu, Debianで実行した結果を記します。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#s62be5bb]
- [[ファイル参照によるLinuxバージョンの確認方法>逆引きUNI...
* lsb_release -a コマンド実行例 [#if9da968]
** Ubuntuにて実行 [#a23f0cda]
以下、Ubuntu10.04にて実行した出力結果です。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
** CentOS5.8にて実行 [#bbe00770]
以下、CentOS5.8にて実行した出力結果です。
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-...
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
** Debian squeezeにて実行 [#j78eaeee]
以下、Debian squeezeにて実行した出力結果です。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.4 (squeeze)
Release: 6.0.4
Codename: squeeze
* lsb_releaseコマンドのオプション [#v6f05958]
lsb_releaseコマンドのオプションを以下に記します。~
コマンドはCentOSで実行しました。
- -v, --version, オプションなし~
バージョン表示
- -i, --id~
ディストリビューターIDの表示~
$ lsb_release -i
Distributor ID: CentOS
- -d, --description~
説明を表示~
$ lsb_release -d
Description: CentOS release 5.8 (Final)
- -r, --release~
リリースを表示~
$ lsb_release -r
Release: 5.8
- -c, --codename~
コードネームを表示~
$ lsb_release -c
Codename: Final
- -a, --all~
上記全てを表示~
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-...
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
- -s, --short~
短い形式で表示する~
以下のようにコードネームのみ取得したい場合などに利用でき...
$ lsb_release -c
Codename: Final
$ lsb_release -cs
Final
$ lsb_release --codename --short
Final
- -h, --help
lsb_releaseの使いかたが表示されます。
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
ページ名: