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 1 year has passed since last update.

Linuxバージョン確認コマンド

Posted at

OSバージョン確認法

他にもあると思うが、気づいたら追記していきます。

  • ubuntu20
$ ls /etc/*rele* -l
-rw-r--r-- 1 root root 104  8月  4  2021 /etc/lsb-release
lrwxrwxrwx 1 root root  21  8月  4  2021 /etc/os-release -> ../usr/lib/os-release

$ uname -a
Linux X205TAW 5.13.0-27-generic #29~20.04.1-Ubuntu SMP Fri Jan 14 00:32:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • CentOS
# ls /etc/*rele* -l
-rw-r--r--. 1 root root 37  4月  8  2020 /etc/centos-release
-rw-r--r--. 1 root root 51  4月  8  2020 /etc/centos-release-upstream
lrwxrwxrwx. 1 root root 21  6月 22  2021 /etc/os-release -> ../usr/lib/os-release
lrwxrwxrwx. 1 root root 14  6月 22  2021 /etc/redhat-release -> centos-release
lrwxrwxrwx. 1 root root 14  6月 22  2021 /etc/system-release -> centos-release
-rw-r--r--. 1 root root 23  4月  8  2020 /etc/system-release-cpe

# uname -a
Linux localhost.localdomain 4.18.0-193.el8.x86_64 #1 SMP Fri May 8 10:59:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

# uname -a
Linux db7 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 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?