Lsb_release:
简介:lsb_release命令用来查看当前系统的发行版信息(prints certain LSB (Linux Standard Base) and Distribution information.)。有了这个命令就可以清楚的知道到底是RedHat的、还是别的发行版,还有具体的版本号,比如3.4还是5.4是redhad的还是centos、dubain等等。
1.依赖的包:redhat-lsb
2.格式:lsb_release [-选项]
不带选项的默认指定到-V。
-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.
-v -版本显示针对其分布符合LSB规范的版本。
-i,- ID显示字符串ID的分销商。
-d,-说明分布显示一行文字说明。
-r,-释放分布显示的版本号。
-c,-代号根据发行版本,显示的代号。
-a,-所有显示所有上述信息。
-s,-短期使用其他选项(或如果没有版本)所要求的信息,短输出格式。
-h,-帮助显示此消息。
Uname:
简介:主要用于查询主机和系统的相关版本信息,uname可显示linux主机所用的操作系统的版本、硬件的名称等基本信息
1.命令格式:uname [-选项]
-a,-所有详细输出所有信息,依次为内核名称,主机名,内核版本号,内核版本,硬件名,处理器类型,硬件平台类型,操作系统名称
-s,-内核名称打印内核名称
-n或-nodename显示主机在网络节点上的名称或主机名称
-r或–release显示linux操作系统内核版本号
-v,- 内核版本打印内核版本
-m或–machine显示主机的硬件(CPU)名
-p, -处理器打印处理器类型或“未知”
-l,-硬件平台打印硬件平台或“未知”
-o -操作系统打印的操作系统名称
- help显示帮助信息
-version显示uname的版本信息