LoginSignup
1
3

More than 3 years have passed since last update.

Debian GNU/Linux のバージョンを調べるコマンドやファイル

Last updated at Posted at 2019-08-01

概要

  • Debian GNU/Linux や Linux カーネルのバージョンをコマンドやファイルの中身を確認して調べる

/etc/debian_version

シンプルに Debian のバージョンがわかる。

$ cat /etc/debian_version
9.9

/etc/issue

$ cat /etc/issue
Debian GNU/Linux 9 \n \l

/etc/issue.net

$ cat /etc/issue.net
Debian GNU/Linux 9

/usr/lib/os-release

$ cat /usr/lib/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

/etc/os-release

$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

uname

$ uname -m
x86_64

$ uname -o
GNU/Linux

$ uname -r
4.9.0-9-amd64

$ uname -s
Linux

$ uname -v
#1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19)

$ uname -morsv
Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) x86_64 GNU/Linux

$ uname -a
Linux your-host-name 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) x86_64 GNU/Linux

lsb_release

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.9 (stretch)
Release:    9.9
Codename:   stretch

参考資料

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3