linux查看机器配置命令,linux 下查看机器配置的几个命令
查看硬盘信息:dmesg |
grep hd
username@node01:~> dmesg|grep
hd
activating NMI Watchdog ... done.
testing NMI watchdog ... OK.
SCSI device sda: 286748000 512-byte hdwr sectors
(146815 MB)
SCSI device sda: 286748000 512-byte hdwr sectors
(146815 MB)
SCSI device sdb: 286748000 512-byte hdwr sectors
(146815 MB)
SCSI device sdb: 286748000 512-byte hdwr sectors
(146815 MB)
***********************************************************************
查看硬盘使用情况: df -h
username@node01:~> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 9.9G 1.2G 8.2G 13% /
udev 3.9G 132K 3.9G 1% /dev
/dev/sda2 9.9G 153M 9.2G 2% /boot
/dev/sda5 50G 41G 6.0G 88% /home
/dev/sdb3 20G 129M 19G 1% /local
/dev/sdb2 20G 6.2G 13G 33% /opt
/dev/sdb5 46G 39G 5.3G 88% /srv
/dev/sda6 9.9G 139M 9.3G 2% /tmp
/dev/sdb1 50G 17G 31G 35% /usr
/dev/sda7 24G 402M 23G 2% /var
shm 29G 68K 29G 1%
/dev/shm
***********************************************************************
查看CPU信息: dmesg|grep CPU
username@node01:~> dmesg|grep
CPU
SMP: Allowing 8 CPUs, 0 hotplug CPUs
Initializing CPU#0
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU0: Thermal monitoring enabled (TM1)
Initializing CPU#1
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 0
CPU1: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Initializing CPU#2
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU2: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Initializing CPU#3
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 2
CPU3: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Initializing CPU#4
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 3
CPU4: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Initializing CPU#5
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 1
CPU5: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Initializing CPU#6
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 2
CPU6: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Initializing CPU#7
CPU: L1 I cache: 32K, L1 D
cache: 32K
CPU: L2 cache: 4096K
CPU: Physical Processor ID: 1
CPU: Processor Core ID: 3
CPU7: Thermal monitoring enabled (TM1)
Intel(R) Xeon(R)
CPU X5365 @ 3.00GHz stepping 0b
Brought up 8 CPUs
ACPI: Processor [CPU0] (supports 8 throttling
states)
ACPI: Processor [CPU1] (supports 8 throttling
states)
ACPI: Processor [CPU2] (supports 8 throttling
states)
ACPI: Processor [CPU3] (supports 8 throttling
states)
ACPI: Processor [CPU4] (supports 8 throttling
states)
ACPI: Processor [CPU5] (supports 8 throttling
states)
ACPI: Processor [CPU6] (supports 8 throttling
states)
ACPI: Processor [CPU7] (supports 8 throttling
states)
***********************************************************************
查看CPU
ctliu@node01:~> dmesg|grep
proc
time.c: Detected 3000.207 MHz processor.
Booting processor 1/8 APIC 0x4
Booting processor 2/8 APIC 0x1
Booting processor 3/8 APIC 0x2
Booting processor 4/8 APIC 0x3
Booting processor 5/8 APIC 0x5
Booting processor 6/8 APIC 0x6
Booting processor 7/8 APIC 0x7
*********************************************************************
查看内存:free
username@node01:~> free
total used free shared buffers cached
Mem: 8172684 2625624 5547060 0 468096 1641356
-/+ buffers/cache: 516172 7656512
Swap: 33559776 580 33559196
*********************************************************************************
查看操作系统版本 uname -a
username@node01:~> uname -a
Linux node01 2.6.16.46-0.12-smp #1 SMP Thu May 17
14:00:09 UTC 2007 x86_64 x86_64
x86_64 GNU/Linux
**************************************************************************************************************
查看整个文件夹大小 du -h --max-depth=1 folder/*
username@node01:~> du -h
--max-depth=1 vasp/*
40M vasp/test/relaxation
40M vasp/test
***********************************************************************************************************************
linux查看机器配置命令,linux 下查看机器配置的几个命令相关推荐
- linux 命令行下wlan无线网卡配置 2
linux 命令行下wlan无线网卡配置 [上海央邦]学一送一,超值! 必读版<十一攻破RHCE6.0.OCP>安博亚威]CCIE考试通过率第一! 中国IT实验室收集整理 佚名 2012- ...
- DOS或命令行下查看进程,结束进程命令
DOS或命令行下查看进程,结束进程命令 XP中和进程有关的命令: 在system32目录中,dir task* 会看到如下几个文件: +------------------------------+ ...
- python3.8.2numpy版本,如何查看安装python和numpy的版本,numpy版本的选择,命令行下查看pyth...
如何查看安装python和numpy的版本,numpy版本的选择,命令行下查看pyth 命令行下查看python和numpy的版本和安装位置 1.查看python版本 方法一: python -V 注 ...
- 如何在命令行下查看图片,《命令行图片查看器》
在对各种命令属性的情况下,在命令行工作十分方便的.但是如果遇到图片,如果图片命名十分混乱的情况下,要确定是什么图片就十分麻烦了.不知各位如果解决. 在此我推荐一个有趣库,可以在命令行下查看图片(不过不 ...
- linux查询服务器cpu核数_linux 下查看机器是cpu是几核的
几个cpu more /proc/cpuinfo |grep "physical id"|uniq|wc -l 每个cpu是几核(假设cpu配置相同) more /proc/cpu ...
- linux怎么查看oracle数据库版本,CentOS下查看Oracle数据库版本
CentOS下查看Oracle数据库版本 方法一:v$version数据库培训 SQL> select * from v$version; BANNER -------------------- ...
- linux查看固态硬盘寿命,CentOS下查看 ssd 寿命
CentOS下查看 ssd 寿命 安装必要的软件yum install -y MegaCli Lib_Utils 得到 device id/opt/MegaRAID/MegaCli/MegaCli64 ...
- windows命令行下查看进程号
win2k/xp怎么样在命令行中查看当前进程,关闭当前某个进程? tasklist 杀进程 taskkill /pid 程序的PID号码 tasklist | find "关键字&q ...
- qt5 linux apt get,Ubuntu 14.04下安装并配置Qt5.7.0
1.去官网下载离线安装包 (需要注册) linux 64bit : qt-opensource-linux-x64-5.7.0.run 2.安装libgl1-mesa-dev ,否则在编译时会出错,提 ...
- linux添加ip白名单_centOS7 下利用iptables配置IP地址白名单的方法
编辑iptables配置文件,将文件内容更改为如下,则具备了ip地址白名单功能 #vim /etc/sysconfig/iptables *filter :INPUT ACCEPT [0:0] :FO ...
最新文章
- Word for mac 分小节问题
- 一类SG函数递推性质的深入分析——2018ACM陕西邀请赛H题
- IIS 上传文件大小配置步骤(默认200K)
- 校省选赛第一场A题Cinema题解
- 深度学习之循环神经网络(6)梯度弥散和梯度爆炸
- oracle颜色,oracle - Oracle SQL Developer - 如何使用颜色显示百分比(非数字) - 堆栈内存溢出...
- java excel添加公式_Java添加、读取Excel公式
- PowerShell2.0之与COM对象交互(五)与脚本宿主代码协同工作
- 卷积神经网络CNN(Convolutional Neural Network)原理与代码实现 Le-Net5
- 工作5年后才明白:不起眼的技能中,藏着你的未来
- AFNetWorking网络库教程
- 用html制作带阴影小球弹跳,AE怎么制作一个有影子的弹跳小球动画?
- 微信小程序-中英文文本换行的小问题
- 打飞机小游戏html代码,纯汇编实现打飞机小游戏的示例代码
- 深度学习李宏毅21春_16_GAN_P3
- 【浙江大学】一个开源的知识图谱表示学习框架
- java clob 读取_java 实现读取clob
- jsp实现文件的上传
- exit()和_exit()两个函数的区别
- 生产企业原材料订购与运输的研究-数据处理课程设计
热门文章
- 超详细!上线一个机器学习项目你需要哪些准备?
- CSDN 十大技术主题盘点-云原生篇
- 倒计时 3 天!1024 程序员节全日程曝光,105 场深度演讲点燃数字经济新时代
- 月入过万的副业你要不要?不需要编程知识,不限男女,不限学历
- 云+X案例展 | 传播类:k3s基于逾百台工控机的应用实践
- 微软 SQL Server 2019 将免费支持 Java;Rancher Labs获2500万美元融资;腾讯云进军日本市场……...
- java 方法保存变量_java – 在初始化对象或将其保存为变量并调用该方法时,调用方法的速度更快...
- python同时输出多个值_怎样在python中输出多个数组元素?
- VS Code 切换大小写
- minio 单机安装、部署 centos7环境