Linux OS version確認
cat /proc/version
CentOS version確認
cat /etc/redhat-release
Ubuntu version確認
cat /etc/lsb-release
cat /etc/os-release
OSまたはハードウェアの情報を表示する
$
uname -a
Linux rsp4ModelB 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux
Debian GNU/Linux のバージョン確認
$
cat /etc/debian_version
10.11
ログインプロンプト表示前のメッセージ内容で確認
$
cat /etc/issue
Raspbian GNU/Linux 10 \n \l
ディストリビューションのバージョンなどを確認する
$
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
又は
$
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"