file /bin/ls
file /sbin/init
getconf -a | grep WORD
怎么查看当前linux的 版本
[root@vps2 ~]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
[root@vps2 ~]# lsb_release -a
LSB Version:
:core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID:
CentOS
Description:
CentOS release 5.5 (Final)
Release:
5.5
Codename:
Final
转载于:https://blog.51cto.com/lonwey/960219