0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntuのログイン時に表示されるメッセージについて確認してみる

0
Posted at

はじめに

Ubuntuにログインした時、先頭にこのように、バージョンが表示されます。
このバージョンをコマンドでも確認してみよう。

Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-186-generic x86_64)

参考記事
https://www.sejuku.net/blog/82556

やったこと

OSのバージョンはコマンドからでも確認ができます。

$cat /etc/os-release
$cat /etc/issue

次に、4.4.0-186-genericについてですが、これは、Linuxカーネルのバージョンを表しています。カーネルのバージョンを確認するコマンドです。

$uname -r
4.4.0-186-generic

Ubuntuのバージョンとカーネルのバージョンは1対1になっているようで、次のように決まっています。

Ubuntu18.10: Linux Kernel 4.18
Ubuntu18.04: Linux Kernel 4.15
Ubuntu17.10: Linux Kernel 4.13
Ubuntu17.04: Linux Kernel 4.10
Ubuntu16.10: Linux Kernel 4.8
Ubuntu16.04: Linux Kernel 4.4

x86_64は64bit版という意味です。因みに、32bitはi686となります。
アーキテクチャを確認するコマンドです。

$arch
x86_64

OSのバージョン、カーネルのバージョン、アーキテクチャを個別で確認するのではなく、一括で表示する事もできます。

$uname -a
Linux swebsv 4.4.0-186-generic #216-Ubuntu SMP Wed Jul 1 05:34:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?