博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在linux下查看内核版本、gcc版本、操作系统多少位等参数
阅读量:7092 次
发布时间:2019-06-28

本文共 1420 字,大约阅读时间需要 4 分钟。

hot3.png

1. 查看linux版本

cat /etc/issue

Ubuntu 11.04 \n \l

2. 查看内核版本

1)cat /proc/version

Linux version 2.6.38-13-generic (buildd@rothera) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #57-Ubuntu SMP Mon Mar 5 18:10:14 UTC 2012

2) uname命令

uname -a

Linux ubuntu 2.6.38-13-generic #57-Ubuntu SMP Mon Mar 5 18:10:14 UTC 2012 i686 i686 i386 GNU/Linux

[ -------------------------------------------------------------------------------

-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

--------------------------------------------------------------------------------------] 3.查看系统位数

1) getconf WORD_BIT

32

2)file /bin/bash

/bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

4. 查看gcc版本

gcc --version

gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2

转载于:https://my.oschina.net/catandpaperball/blog/497756

你可能感兴趣的文章
Objective-C消息发送和消息转发机制
查看>>
Quartz 开源任务调度框架
查看>>
SASS界面编译工具——Koala的使用
查看>>
JSP放入Jar包支持
查看>>
润乾报表使用json数据源的方法改进
查看>>
小蚂蚁学习PS切图之基础操作(2)——工具栏的介绍
查看>>
【Mybatis】- sqlSession工作流程
查看>>
mysql str_to_date字符串转换为日期
查看>>
jsp---EL运算符
查看>>
Oracle中的substr方法
查看>>
Mysql日期和时间函数总结
查看>>
创建逻辑卷 安装lvm命令
查看>>
不使用root身份运行Wireshark
查看>>
PageRank算法计算网页的价值
查看>>
js面向对象
查看>>
DEDECMS 修改广告链接地址
查看>>
抓住“扁平化”
查看>>
Python中method的参数传递详解
查看>>
Skia深入分析1——skia上下文
查看>>
Tiny Jpeg Decoder (JPEG解码程序) 源代码分析 1:解码文件头
查看>>