Linux—系统管理
2024-10-18 07:04:56
查看Linux系统版本
CentOS系统
# centos7查看命令
[root@localhost ~]# cat /etc/os-release # centos6/7通用命令
[root@localhost ~]# cat /etc/redhat-release
[root@localhost ~]# cat /etc/redhat-release | sed -r 's/.* ([0-9]+)\..*/\1/' # centos6/7通用命令
[root@localhost ~]# cat /etc/centos-release
[root@localhost ~]# cat /etc/centos-release | sed -r 's/.* ([0-9]+)\..*/\1/' # centos6/7通用命令
[root@localhost ~]# rpm -q centos-release
[root@localhost ~]# rpm -q centos-release | cut -d- -f3 # radhat或centos存在/etc/redhat-release这个文件。【命令 cat /etc/redhat-release】
Ubuntu系统
ubuntu@VM-0-9-ubuntu:~$ lsb_release -a ubuntu@VM-0-9-ubuntu:~$ cat /etc/os-release ubuntu@VM-0-9-ubuntu:~$ cat /etc/issue
ubuntu@VM-0-9-ubuntu:~$ less /etc/issue # ubuntu存在 : /etc/lsb-release 这个文件 【命令 cat /etc/lsb-release】
查看Linux内核版本
[root@localhost ~]# cat /proc/version [root@localhost ~]# uname -a
最新文章
- 使用Free Spire.XLS插入图表
- python学习笔记之module &;&; package
- Lucene:信息检索与全文检索
- git研究1
- GRUB引导——menu.lst的写法
- 从ipad相机相册读取相片并保存
- Linux(Centos、Debian)之安装Java JDK及注意事项(转)
- 2014年度辛星完全解读html部分
- (中等) HDU 2295 , DLX+重复覆盖+二分。
- ceph-deploy出错UnableToResolveError Unable to resolve host
- [国嵌攻略][148][MTD系统架构]
- C#之Redis为所欲为
- MySQL日志专题
- 【APIO2016】【UOJ205】【LOJ2568】烟花表演 可合并堆
- js-notebook
- Libre OJ 130、131、132 (树状数组 单点修改、区间查询 ->; 区间修改,单点查询 ->; 区间修改,区间查询)
- elastic search query &; filter &; query_string
- 2017年蓝桥杯省赛A组c++第7题(正则问题)
- Dubbo(2)发布Dubbo服务
- MQ调研梳理