Debianのバージョンをチェックする方法
Debianでは、 `cat/etc/debian__version`と入力してDebianのバージョンを表示します。
ターミナル
$ cat/etc/debian__version 9.5
あるいは
cat/etc/issue
ターミナル
$ cat/etc/issue Debian GNU/Linux 9 \n \l
最後の `lsb-release -a`は、Debianの詳細を表示します。
ターミナル
$ lsb-release -a -bash: lsb-release: command not found $ sudo apt-get install lsb-release $ lsb__release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.5 (stretch) Release: 9.5 Codename: stretch
参考文献
-
https://linux.die.net/man/1/lsb
release[lsb
release – Linuxのマニュアルページ]