23
20

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.

Linux OSのバージョンを確認するいろいろ

Last updated at Posted at 2012-05-08

#カーネルのバージョンを調べる

$ cat /proc/version
Linux version 2.6.32-33-generic-pae (buildd@zirconium) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011
$ uname -a
Linux pcname 2.6.32-33-generic-pae #72-Ubuntu SMP Fri Jul 29 22:06:29 UTC 2011 i686 GNU/Linux

#Debian GNU/Linux

$ cat /etc/debian_version
4.0

#Ubuntu

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"

#CentOS / RedHat Enterprise Linux

$ cat /etc/redhat-release 
CentOS release 5.2 (Final)

#Fedora

$ cat /etc/fedora-release
Fedora release 9 (Sulphur)

#SUSE Linux

$ cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION=10
PATCHLEVEL=1

23
20
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
23
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?