Linux系统命令


Linux下查看设备信息命令

查看CPU信息

cat /proc/cpuinfo
# cpu cores 逻辑CPU中内核数量
# core id 内核唯一标识符

image-20210610215245089


查看内存信息

free -h
cat /proc/meminfo

image-20210610215534863

image-20210610215725097


查看磁盘分区

df -Th

image-20210610215927280


查看磁盘io

iostat -xh

image-20210610220115259


整体性能

vmstat

image-20210610220244592


查看系统信息

uname -a

image-20210610220329591


查看系统负载

top

image-20210610220426573


查看系统运行时长

uptime

image-20210610220521326


设备节点

# 查看设备的主设备号
cat /proc/devices
# 显示模块
lsmod
# 加入模块
insmod 模块名
# 移除模块
rmmod 模块名
# 显示模块
cat /proc/modules
# 显示信息
dmesg
# 创建设备节点
#  		节点名称	  字符设备	主设备号   次设备号
mknod /dev/node_name    c      major    minor

image-20210610220654176

image-20210610220846980


文章作者: dyl
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 dyl !
 上一篇
递归问题 递归问题
总结一些基础的递归问题,加深新手对递归的理解,递归思想在编程中至关重要,递归代码一般简便但也是最不容易理解的
2023-12-10 dyl
下一篇 
搭建博客 搭建博客
下载node.js,配置环境变量,安装Hexo,将Hexo部署在GitHub,该文章并不包含如何下载主题以及主题个性化配置,推荐使用matery主题
2023-12-10 dyl
  目录