Raspberry Piで動作しているRaspbianのバージョン確認方法です。
バージョン確認方法
Raspbianであれば、lsb_releaseコマンドで表示するのが、一番わかりやすいと思います。「No LSB modules are available」と表示されますが、LSB(Linux Standard Base)に関するメッセージで無視しても良いです。
$ lsb_release -h Usage: lsb_release [options] Options: -h, --help show this help message and exit -v, --version show LSB modules this system supports -i, --id show distributor ID -d, --description show description of this distribution -r, --release show release number of this distribution -c, --codename show code name of this distribution -a, --all show all of the above information -s, --short show requested information in short format $ lsb_release --all No LSB modules are available. <= 無視してよい Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster $ lsb_release -idrc Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster $ lsb_release -idrcs <= 値のみ表示 Raspbian Raspbian GNU/Linux 10 (buster) 10 buster