cpu get <参数>
例:
cpu get Name
cpu get NumberOfCores
cpu get NumberOfLogicalProcessors
Name:表示 CPU 的名称
NumberOfCores:表示CPU核心数
NumberOfLogicalProcessors:表示CPU线程数
注释:VM虚拟机中的CPU选择的核心数实际是代表线程数
2. 使用任务管理器查看
按住Ctrl+Shift+Esc键,调出任务管理器窗口,点击性能查看相关参数
c复制代码
在这里插入代码片
3. wmic 常用的命令
bash复制代码
获取cpu名称: wmic cpu get Name
获取cpu核心数: wmic cpu get NumberOfCores
获取cpu线程数: wmic cpu get NumberOfLogicalProcessors
查询cpu序列号: wmic cpu get processorid
查询主板序列号:wmic baseboard get serialnumber
查询BIOS序列号:wmic bios get serialnumber
查看硬盘序列号:wmic diskdrive where index=0 get serialnumber
查看cpu详细信息: wmic cpu list brief
查看物理内存: wmic memphysical list brief
查看逻辑内存: wmic memlogical list brief
查看缓存内存: wmic memcache list brief
查看虚拟内存: wmic pagefile list brief
查看网卡: wmic nic list brief
关闭本地计算机: wmic process call create shutdown.exe
获取进程名称以及可执行路径: wmic process get name,executablepath
删除指定进程(根据进程名称):
wmic process where name="qq.exe" call terminate
或者用
wmic process where name="qq.exe" delete
删除指定进程(根据进程PID): wmic process where pid="123" delete
创建新进程: wmic process call create "C:\Program Files\Tencent\QQ\QQ.exe"