使用ubuntu系统这么久了,但还主要是停留在简单的使用上,好多关于系统设置方面的命令平时用的少,看书的时候一晃而过,也就忘记了,到用的时候又要去找,很麻烦,今天开始就在这记录平时遇到问题需要解决时查找的一些命令,也方便以后的回忆和查阅。
ubuntu下查看电脑的配置:
lshw -short
H/W path Device Class Description
=================================================
system Computer
/0 bus Motherboard
/0/0 memory 15GiB System memory
/0/1 processor Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
/0/100 bridge 2nd Generation Core Processor Family DRAM
/0/100/1 bridge Xeon E3-1200/2nd Generation Core Processor
/0/100/1/0 bus uPD720200 USB 3.0 Host Controller
/0/100/2 display 2nd Generation Core Processor Family Integ
/0/100/16 communication 6 Series/C200 Series Chipset Family MEI Co
/0/100/1a bus 6 Series/C200 Series Chipset Family USB En
/0/100/1b multimedia 6 Series/C200 Series Chipset Family High D
/0/100/1c bridge 6 Series/C200 Series Chipset Family PCI Ex
/0/100/1c.5 bridge 6 Series/C200 Series Chipset Family PCI Ex
/0/100/1c.5/0 eth0 network RTL8111/8168/8411 PCI Express Gigabit Ethe
/0/100/1c.6 bridge 82801 PCI Bridge
/0/100/1c.6/0 bridge Integrated Technology Express, Inc.
/0/100/1d bus 6 Series/C200 Series Chipset Family USB En
/0/100/1f bridge H67 Express Chipset Family LPC Controller
/0/100/1f.2 storage 6 Series/C200 Series Chipset Family SATA A
/0/100/1f.3 bus 6 Series/C200 Series Chipset Family SMBus
/1 scsi6 storage
##############################################################
查看主机CPU:
cat /proc/cpuinfo
#############
查看主机内存
cat /proc/meminfo
#############
查看主机硬盘分区
cat /proc/partitions
#############
查看ubuntu 版本
cat /proc/version || cat /proc/version_signature || uname -a
这些知识都是我从别人的博客学习到的,等自己的知识积累的多一些了也要写一些原创的知识。
ubuntu 主机配置相关命令,布布扣,bubuko.com