6
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 3 years have passed since last update.

【CentOS】OSのバージョンを確認したい!

Last updated at Posted at 2021-10-17

ひとことで言うと

cat /etc/redhat-releaseでわかるよ

概要

いつも忘れるので備忘録として。(あとMarkdown記法の練習)

環境

  • ホストOS:Windows 10
  • ゲストOS:CentOS 7.9
  • 仮想化ソフト:VirtualBox 6.1.18

ネットワークアダプターにホストオンリーアダプターを割り当てて、TeraTermでssh接続。

コマンド

バージョン情報は/etc/redhat-releaseに記載されてるので、catコマンドで出力する。

[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)

まとめ

バージョン情報が確認できた!

6
0
1

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
6
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?