查看linux服务器的版本信息
2024-09-04 23:12:12
- 查看linux系统信息
uname -a
Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
- 输出内容分析:
uname --help / uname -h
-a, --all print all information, in thefollowing 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
- uname -s 内核名称
Linux
- uname -n 节点名称
localhost.localdomain
- uname -r 内核的发型号
3.10.0-693.el7.x86_64
- uname -v 内核版本
#1 SMP Tue Aug 22 21:09:27 UTC 2017
- uname -m 机器硬件名称
x86_64
- uname -p 处理器类型
x86_64
- uname -i 硬件平台
x86_64
- uname -O 操作系统
GNU/Linux
- 查看linux时Centos还是ubuntu
执行lsb_release -a 命令存在表示为ubuntu系统
cat /etc/redhat-release 文件存在为centos
最新文章
- 转载:移动web开发规范
- Matplotlib 学习笔记
- js 控制Div循环显示 非插件版
- JavaScript到底是不是单线程
- POJ2955Brackets[区间DP]
- C# Cut Line Bressenham Algorithm
- [译]Node.js Best Practices
- MariaDB5.5(mysql)的partitioning设置 for Zabbix3.0
- 【Database】MySQL各版本的区别
- php数组转xml的递归实现
- 【Quick-COCOS2D-X 3.3 怎样绑定自己定义类至Lua之三】动手绑定自己定义类至Lua
- Django:之不得不说的web框架们
- php的八大数据类型
- 前端(HTML/CSS/JS)-HTML编码规范
- Forth 文本解释程序
- 利用Xmanager Enterprise 5的passive显示远程linux主机图形化信息
- 查找nginx安装的路径
- MYSQL查询优化:Limit
- JDK的spi实现
- 怎样写SQL语句可以提高数据库的性能
热门文章
- 【leetcode】1080. Insufficient Nodes in Root to Leaf Paths
- 【leetcode】1029. Two City Scheduling
- 【leetcode】861. Score After Flipping Matrix
- 微信公众号号开发(Java)
- 循序渐进实现仿QQ界面(三):界面调色与控件自绘
- 攻防世界 | level0
- Python分析《武林外传》
- 将多个jpg文件以追加形式合并成一个文件_delphi教程 bmp 合并 http://www.west.cn/www/info/58058-1.htm
- Oracle基本操作练习(一)
- ELMO,BERT和GPT简介