linuxバージョン情報の表示


1.カーネルバージョンの表示コマンド:

1)cat /proc/version
Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03)

2) uname -a
 Linux zangcq 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux

3) uname -r
3.16.0-4-amd64
 ```
### 2.   linux  :

1)サーバ実行lsb_へのログインrelease-aは、すべてのバージョン情報をリストします.
No LSB modules are available. Distributor ID:Debian Description:Debian GNU/Linux 8.6(jessie)Release:8.6 Codename:jessie注:このコマンドは、Redhat、SuSE、Debianなどのリリース版を含むすべてのlinuxに適用されます.
2)linuxにログインしcat/etc/issueを実行し、
No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.6 (jessie) Release: 8.6 Codename: jessie
“`

3.システムが64ビットか32ビットかを確認します。

1、getconf LONG_BIT or getconf WORD_BIT
    64
2file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=a0823e17cafbe5b2296346216445566840fdfd88, stripped