查看Linux 版本方法
2013-09-10 11:12
369 查看
# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
# lsb_release --help
FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and Distribution information.
Usage: lsb_release [OPTION]... With no OPTION specified defaults to -v.
Options:
-v, --version Display the version of the LSB specification against which the distribution is compliant.
-i, --id Display the string id of the distributor.
-d, --description Display the single line text description of the distribution.
-r, --release Display the release number of the distribution.
-c, --codename Display the codename according to the distribution release.
-a, --all Display all of the above information.
-s, --short Use short output format for information requested by other options (or version if none).
-h, --help Display this message.
# uname --help
Usage: uname [OPTION]...
Print certain system information. With no OPTION, same as -s.
-a, --all print all information, in the following order,except omit -p and -i if unknown
-s, --kernel-name print the kernel name
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release
-v, --kernel-version print the kernel version
-m, --machine print the machine hardware name
-p, --processor print the processor type or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system
--help display this help and exit
--version output version information and exit
Report bugs to <bug-coreutils@gnu.org>.
# cat /etc/redhat-release
CentOS release 5.8 (Final)
# rpm -q redhat-release
# rpm -q centos-release
CentOS release 5.8 (Final)
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.8 (Final)
Release: 5.8
Codename: Final
# lsb_release --help
FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and Distribution information.
Usage: lsb_release [OPTION]... With no OPTION specified defaults to -v.
Options:
-v, --version Display the version of the LSB specification against which the distribution is compliant.
-i, --id Display the string id of the distributor.
-d, --description Display the single line text description of the distribution.
-r, --release Display the release number of the distribution.
-c, --codename Display the codename according to the distribution release.
-a, --all Display all of the above information.
-s, --short Use short output format for information requested by other options (or version if none).
-h, --help Display this message.
# uname --help
Usage: uname [OPTION]...
Print certain system information. With no OPTION, same as -s.
-a, --all print all information, in the following order,except omit -p and -i if unknown
-s, --kernel-name print the kernel name
-n, --nodename print the network node hostname
-r, --kernel-release print the kernel release
-v, --kernel-version print the kernel version
-m, --machine print the machine hardware name
-p, --processor print the processor type or "unknown"
-i, --hardware-platform print the hardware platform or "unknown"
-o, --operating-system print the operating system
--help display this help and exit
--version output version information and exit
Report bugs to <bug-coreutils@gnu.org>.
# cat /etc/redhat-release
CentOS release 5.8 (Final)
# rpm -q redhat-release
# rpm -q centos-release
CentOS release 5.8 (Final)
相关文章推荐
- linux,apache,php,mysql常用的查看版本信息的方法
- 查看Linux系统版本主要采用哪些方法
- 下面介绍几种查看linux版本信息的方法和GCC版本
- Linux,Apache,php,mysql常用的查看版本信息的方法
- 三种查看linux内核版本的方法
- 查看Linux版本系统信息方法汇总
- Linux查看内核(Kernel)版本的方法
- 查看Linux系统版本主要采用哪些方法
- 查看Linux版本号的三种方法
- 查看Linux系统版本的方法 && checkOsVersion.sh
- 几种查看linux版本信息的方法
- 几种查看linux版本信息的方法
- 查看linux的版本主要有三种方法
- linux下查看版本的方法
- [置顶] Linux下查看内核、CPU、内存及各组件版本的命令和方法
- Linux下查看内核、CPU、内存及各组件版本的命令和方法
- 查看Linux各发行版本方法
- 查看linux版本的三种常用方法
- linux,apache,php,mysql常用的查看版本信息的方法
- 查看Linux内核、CPU、内存及各组件版本的命令和方法