首页 > 系统服务 > 详细

Linux常用查看版本指令

时间:2020-12-19 09:21:44      阅读:34      评论:0      收藏:0      [点我收藏+]

1.查看linux版本
cat /etc/issue

2.查看内核版本
cat /proc/version

或者使用uname指令

-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

4.查看系统位数

file /bin/bash

5.查看gcc版本

gcc --version

Linux常用查看版本指令

原文:https://www.cnblogs.com/dearroy/p/14157967.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!