https://zhidao.baidu.com/question/192966322.html

写出ubuntu linux系统中查看本机cpu和内存信息的命令和用法,以及如何解读这些命令

ubuntu系统中查看本机cpu和内存信息的命令和用法

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

21504965 AT qq.com

完成时间:2017/12/11 13:46

版本:V1.0

匿名 | 浏览 36342 次 问题未开放回答 |举报

推荐于2017-11-28 07:20:35 最佳答案

查看cpu信息

cat /proc/cpuinfo

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ cat /proc/cpuinfo

processor: 0

vendor_id: GenuineIntel

cpu family: 6

model: 62

model name: Intel(R) Core(TM) i7-4930K cpu @ 3.40GHz

stepping: 4

microcode: 0x416

cpu MHz: 1200.000

cache size: 12288 KB

physical idsiblings: 12

core idcpu coresapicidinitial apicidfpu: yes

fpu_exceptioncpuid level: 13

wpda arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms

bogomips: 6803.50

clflush size: 64

cache_alignmentaddress sizes: 46 bits physical,48 bits virtual

power management:

: 1

: 2

: 3

: 8

: 5

: 10

: 7

: 9

: 11

power management:

rootroot@cm-System-Product-Name:~$

显示当前硬件信息

sudo lshw

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo lshw

[sudo] password for rootroot:

cm-system-product-name

description: Desktop Computer

product: System Product Name (SKU)

vendor: System manufacturer

version: System Version

serial: System Serial Number

width: 64 bits

capabilities: smbios-2.7 dmi-2.7 vsyscall32

configuration: boot=normal chassis=desktop family=To be filled by O.E.M. sku=SKU uuid=80FC001E-8C00-0072-AD7C-382C4AC53500

*-core

description: motherboard

product: P9X79 WS

vendor: ASUSTeK COmpuTER INC.

physical id: 0

version: Rev 1.xx

serial: 140932583400049

slot: To be filled by O.E.M.

*-firmware

description: BIOS

vendor: American Megatrends Inc.

version: 4701

date: 08/26/2014

size: 64KiB

capacity: 8128KiB

cation uefi

*-cpu

description: cpu

product: Intel(R) Core(TM) i7-4930K cpu @ 3.40GHz

vendor: Intel Corp.

physical id: 4

bus info: cpu@0

version: Intel(R) Core(TM) i7-4930K cpu @ 3.40GHz

serial: To Be Filled By O.E.M.

slot: LGA2011

size: 1200MHz

capacity: 4GHz

clock: 100MHz

e avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms cpufreq

configuration: cores=6 enabledcores=6 threads=12

*-cache:0

description: L1 cache

physical id: 5

slot: L1-Cache

size: 32KiB

capacity: 32KiB

capabilities: internal write-back unified

*-cache:1

description: L2 cache

physical id: 6

slot: L2-Cache

size: 256KiB

capacity: 256KiB

capabilities: internal varies unified

*-cache:2

description: L3 cache

physical id: 7

slot: L3-Cache

size: 12MiB

capacity: 12MiB

*-memory

description: System Memory

physical id: 31

slot: System board or motherboard

size: 16GiB

*-bank:0

Launchpad (build 18147) Synchronous [empty]

product: ChannelA_Dimm1_PartNum

vendor: ChannelA_Dimm1_Manufacturer

serial: ChannelA_Dimm1_SerNum

slot: ChannelA_Dimm1

*-bank:1

product: ChannelA_Dimm2_PartNum

vendor: ChannelA_Dimm2_Manufacturer

physical id: 1

serial: ChannelA_Dimm2_SerNum

slot: ChannelA_Dimm2

*-bank:2

product: ChannelB_Dimm1_PartNum

vendor: ChannelB_Dimm1_Manufacturer

physical id: 2

serial: ChannelB_Dimm1_SerNum

slot: ChannelB_Dimm1

*-bank:3

product: ChannelB_Dimm2_PartNum

vendor: ChannelB_Dimm2_Manufacturer

physical id: 3

serial: ChannelB_Dimm2_SerNum

slot: ChannelB_Dimm2

*-bank:4

description: DIMM DDR3 Synchronous 1866 MHz (0.5 ns)

product: M391B1G73QH0-CMA

vendor: Samsung

serial: 133D751E

slot: ChannelC_Dimm1

size: 8GiB

clock: 1866MHz (0.5ns)

*-bank:5

product: ChannelC_Dimm2_PartNum

vendor: ChannelC_Dimm2_Manufacturer

serial: ChannelC_Dimm2_SerNum

slot: ChannelC_Dimm2

*-bank:6

serial: 133D75BB

slot: ChannelD_Dimm1

*-bank:7

product: ChannelD_Dimm2_PartNum

vendor: ChannelD_Dimm2_Manufacturer

serial: ChannelD_Dimm2_SerNum

slot: ChannelD_Dimm2

*-pci

description: Host bridge

product: Xeon E7 v2/Xeon E5 v2/Core i7 DMI2

vendor: Intel Corporation

physical id: 100

bus info: pci@0000:00:00.0

version: 04

width: 32 bits

clock: 33MHz

*-pci:0

description: PCI bridge

product: Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1a

bus info: pci@0000:00:01.0

capabilities: pci msi pciexpress pm normal_decode bus_master cap_list

configuration: driver=pcieport

resources: irq:26

*-pci:1

product: Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 1b

physical id: 1.1

bus info: pci@0000:00:01.1

*-pci:2

product: Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 2a

bus info: pci@0000:00:02.0

resources: irq:32 ioport:e000(size=4096) memory:fa000000-fb0fffff ioport:c0000000(size=301989888)

*-display

description: VGA compatible controller

product: GT218 [GeForce 210]

vendor: NVIDIA Corporation

bus info: pci@0000:01:00.0

version: a2

capabilities: pm msi pciexpress vga_controller bus_master cap_list rom

configuration: driver=nouveau latency=0

resources: irq:88 memory:fa000000-faffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:fb000000-fb07ffff

*-multimedia

description: Audio device

product: High DeFinition Audio Controller

physical id: 0.1

bus info: pci@0000:01:00.1

version: a1

capabilities: pm msi pciexpress bus_master cap_list

configuration: driver=snd_hda_intel latency=0

resources: irq:36 memory:fb080000-fb083fff

*-pci:3

product: Xeon E7 v2/Xeon E5 v2/Core i7 PCI Express Root Port 3a

bus info: pci@0000:00:03.0

resources: irq:40

*-generic:0 UNCLaimED

description: System peripheral

product: Xeon E7 v2/Xeon E5 v2/Core i7 VTd/Memory Map/Misc

bus info: pci@0000:00:05.0

capabilities: pciexpress cap_list

configuration: latency=0

*-generic:1 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 IIO RAS

physical id: 5.2

bus info: pci@0000:00:05.2

*-generic:2 UNCLaimED

description: PIC

product: Xeon E7 v2/Xeon E5 v2/Core i7 IOAPIC

physical id: 5.4

bus info: pci@0000:00:05.4

capabilities: pciexpress pm io_x_-apic bus_master cap_list

resources: memory:fb62a000-fb62afff

*-pci:4

product: C600/X79 series chipset PCI Express Virtual Root Port

physical id: 11

bus info: pci@0000:00:11.0

version: 06

capabilities: pci pciexpress pm msi normal_decode bus_master cap_list

resources: irq:16

*-communication

description: Communication controller

product: C600/X79 series chipset MEI Controller #1

physical id: 16

bus info: pci@0000:00:16.0

version: 05

capabilities: pm msi bus_master cap_list

configuration: driver=mei_me latency=0

resources: irq:86 memory:fb629000-fb62900f

*-network

description: Ethernet interface

product: 82579V Gigabit Network Connection

physical id: 19

bus info: pci@0000:00:19.0

logical name: eth0

serial: 38:2c:4a:c5:35:00

capacity: 1Gbit/s

capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation

configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k firmware=0.13-4 latency=0 link=no multicast=yes port=twisted pair

resources: irq:82 memory:fb600000-fb61ffff memory:fb628000-fb628fff ioport:f040(size=32)

*-usb:0

description: USB controller

product: C600/X79 series chipset USB2 Enhanced Host Controller #2

physical id: 1a

bus info: pci@0000:00:1a.0

capabilities: pm debug ehci bus_master cap_list

configuration: driver=ehci-pci latency=0

resources: irq:23 memory:fb627000-fb6273ff

product: C600/X79 series chipset High DeFinition Audio Controller

physical id: 1b

bus info: pci@0000:00:1b.0

resources: irq:87 memory:fb620000-fb623fff

*-pci:5

product: C600/X79 series chipset PCI Express Root Port 1

physical id: 1c

bus info: pci@0000:00:1c.0

version: b6

capabilities: pci pciexpress msi pm normal_decode bus_master cap_list

resources: irq:17

*-pci:6

product: C600/X79 series chipset PCI Express Root Port 2

physical id: 1c.1

bus info: pci@0000:00:1c.1

resources: irq:16 ioport:d000(size=4096) memory:fb500000-fb5fffff

*-firewire

description: FireWire (IEEE 1394)

product: VT6315 Series Firewire Controller

vendor: VIA Technologies,Inc.

bus info: pci@0000:07:00.0

version: 01

capabilities: pm msi pciexpress ohci bus_master cap_list

configuration: driver=firewire_ohci latency=0

resources: irq:17 memory:fb500000-fb5007ff ioport:d000(size=256)

*-pci:7

product: C600/X79 series chipset PCI Express Root Port 3

physical id: 1c.2

bus info: pci@0000:00:1c.2

resources: irq:18 ioport:c000(size=4096) memory:fb400000-fb4fffff

*-storage

description: SATA controller

product: 88SE9128 PCIe SATA 6 Gb/s RAID controller with HyperDuo

vendor: Marvell Technology Group Ltd.

bus info: pci@0000:08:00.0

version: 11

capabilities: storage pm msi pciexpress ahci_1.0 bus_master cap_list rom

configuration: driver=ahci latency=0

resources: irq:81 ioport:c040(size=8) ioport:c030(size=4) ioport:c020(size=8) ioport:c010(size=4) ioport:c000(size=16) memory:fb410000-fb4107ff memory:fb400000-fb40ffff

*-pci:8

product: C600/X79 series chipset PCI Express Root Port 5

physical id: 1c.4

bus info: pci@0000:00:1c.4

resources: irq:17 memory:fb300000-fb3fffff

*-usb

product: ASM1042A USB 3.0 Host Controller

vendor: ASMedia Technology Inc.

bus info: pci@0000:09:00.0

version: 00

capabilities: msi msix pm pciexpress xhci bus_master cap_list

configuration: driver=xhci_hcd latency=0

resources: irq:16 memory:fb300000-fb307fff

*-pci:9

product: C600/X79 series chipset PCI Express Root Port 6

physical id: 1c.5

bus info: pci@0000:00:1c.5

resources: irq:16 memory:fb200000-fb2fffff

bus info: pci@0000:0a:00.0

resources: irq:17 memory:fb200000-fb207fff

*-pci:10

product: C600/X79 series chipset PCI Express Root Port 8

physical id: 1c.7

bus info: pci@0000:00:1c.7

resources: irq:19 ioport:b000(size=4096) memory:fb100000-fb1fffff

product: 82574L Gigabit Network Connection

bus info: pci@0000:0b:00.0

logical name: eth1

serial: 54:a0:50:84:ef:10

size: 100Mbit/s

capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation

configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k duplex=full firmware=2.1-3 ip=192.168.0.88 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s

resources: irq:19 memory:fb100000-fb11ffff ioport:b000(size=32) memory:fb120000-fb123fff

*-usb:1

product: C600/X79 series chipset USB2 Enhanced Host Controller #1

physical id: 1d

bus info: pci@0000:00:1d.0

resources: irq:23 memory:fb626000-fb6263ff

*-pci:11

product: 82801 PCI Bridge

physical id: 1e

bus info: pci@0000:00:1e.0

version: a6

capabilities: pci subtractive_decode bus_master cap_list

*-isa

description: ISA bridge

product: C600/X79 series chipset LPC Controller

physical id: 1f

bus info: pci@0000:00:1f.0

capabilities: isa bus_master cap_list

configuration: driver=lpc_ich latency=0

resources: irq:0

product: C600/X79 series chipset 6-Port SATA AHCI Controller

physical id: 1f.2

bus info: pci@0000:00:1f.2

clock: 66MHz

capabilities: storage msi pm ahci_1.0 bus_master cap_list

resources: irq:80 ioport:f090(size=8) ioport:f080(size=4) ioport:f070(size=8) ioport:f060(size=4) ioport:f020(size=32) memory:fb625000-fb6257ff

*-serial UNCLaimED

description: SMBus

product: C600/X79 series chipset SMBus Host Controller

physical id: 1f.3

bus info: pci@0000:00:1f.3

resources: memory:fb624000-fb6240ff ioport:f000(size=32)

product: Xeon E7 v2/Xeon E5 v2/Core i7 QPI Link 0

physical id: 8

bus info: pci@0000:ff:08.0

product: Xeon E7 v2/Xeon E5 v2/Core i7 QPI Link 1

physical id: 9

bus info: pci@0000:ff:09.0

product: Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 0

physical id: a

bus info: pci@0000:ff:0a.0

*-generic:3 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 1

physical id: a.1

bus info: pci@0000:ff:0a.1

*-generic:4 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 2

physical id: a.2

bus info: pci@0000:ff:0a.2

*-generic:5 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Power Control Unit 3

physical id: a.3

bus info: pci@0000:ff:0a.3

*-generic:6 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 UBox Registers

physical id: b

bus info: pci@0000:ff:0b.0

*-generic:7 UNCLaimED

physical id: b.3

bus info: pci@0000:ff:0b.3

*-generic:8 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Unicast Registers

physical id: c

bus info: pci@0000:ff:0c.0

*-generic:9 UNCLaimED

physical id: c.1

bus info: pci@0000:ff:0c.1

*-generic:10 UNCLaimED

physical id: c.2

bus info: pci@0000:ff:0c.2

*-generic:11 UNCLaimED

physical id: d

bus info: pci@0000:ff:0d.0

*-generic:12 UNCLaimED

physical id: d.1

bus info: pci@0000:ff:0d.1

*-generic:13 UNCLaimED

physical id: d.2

bus info: pci@0000:ff:0d.2

*-generic:14 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Home Agent 0

physical id: e

bus info: pci@0000:ff:0e.0

*-generic:15

description: Performance counters

physical id: e.1

bus info: pci@0000:ff:0e.1

configuration: driver=ivt_uncore latency=0

*-generic:16 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Target Address/Thermal Registers

physical id: f

bus info: pci@0000:ff:0f.0

*-generic:17 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 RAS Registers

physical id: f.1

bus info: pci@0000:ff:0f.1

*-generic:18 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 0 Channel Target Address Decoder Registers

physical id: f.2

bus info: pci@0000:ff:0f.2

*-generic:19 UNCLaimED

physical id: f.3

bus info: pci@0000:ff:0f.3

*-generic:20 UNCLaimED

physical id: f.4

bus info: pci@0000:ff:0f.4

*-generic:21 UNCLaimED

physical id: f.5

bus info: pci@0000:ff:0f.5

*-generic:22

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 0

physical id: 10

bus info: pci@0000:ff:10.0

*-generic:23

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 1

physical id: 10.1

bus info: pci@0000:ff:10.1

*-generic:24 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 0

physical id: 10.2

bus info: pci@0000:ff:10.2

*-generic:25 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 1

physical id: 10.3

bus info: pci@0000:ff:10.3

*-generic:26

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 2

physical id: 10.4

bus info: pci@0000:ff:10.4

*-generic:27

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 Thermal Control 3

physical id: 10.5

bus info: pci@0000:ff:10.5

*-generic:28 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 2

physical id: 10.6

bus info: pci@0000:ff:10.6

*-generic:29 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 Integrated Memory Controller 1 Channel 0-3 ERROR Registers 3

physical id: 10.7

bus info: pci@0000:ff:10.7

*-generic:30 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 R2PCIe

physical id: 13

bus info: pci@0000:ff:13.0

*-generic:31

physical id: 13.1

bus info: pci@0000:ff:13.1

*-generic:32 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 QPI Ring Registers

physical id: 13.4

bus info: pci@0000:ff:13.4

*-generic:33

product: Xeon E7 v2/Xeon E5 v2/Core i7 QPI Ring Performance Ring Monitoring

physical id: 13.5

bus info: pci@0000:ff:13.5

*-generic:34 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 System Address Decoder

bus info: pci@0000:ff:16.0

*-generic:35 UNCLaimED

product: Xeon E7 v2/Xeon E5 v2/Core i7 broadcast Registers

physical id: 16.1

bus info: pci@0000:ff:16.1

*-generic:36 UNCLaimED

physical id: 16.2

bus info: pci@0000:ff:16.2

*-scsi:0

logical name: scsi0

capabilities: emulated

*-disk

description: ATA disk

product: ST2000NM0033-9ZM

vendor: Seagate

physical id: 0.0.0

bus info: scsi@0:0.0.0

logical name: /dev/sda

version: SN04

serial: S1X096FL

size: 1863GiB (2TB)

capabilities: partitioned partitioned:dos

configuration: ansiversion=5 sectorsize=512 signature=00027761

*-volume

description: Extended partition

bus info: scsi@0:0.0.0,1

logical name: /dev/sda1

size: 1863GiB

capacity: 1863GiB

capabilities: primary extended partitioned partitioned:extended

*-logicalvolume

description: Linux filesystem partition

logical name: /dev/sda5

logical name: /home

configuration: mount.fstype=ext4 mount.options=rw,relatime,data=ordered state=mounted

*-scsi:1

logical name: scsi2

description: EXT4 volume

product: ST2000DM001-1ER1

vendor: Linux

bus info: scsi@2:0.0.0

logical name: /dev/sdb

logical name: /home/cb2t1651

version: 1.0

serial: cf6a81ea-35d6-4031-939d-5cbea4117e36

capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized

=2017-12-11 08:57:51 sectorsize=4096 state=mounted

*-scsi:2

logical name: scsi4

product: ST3000VX000-1ES1

bus info: scsi@4:0.0.0

logical name: /dev/sdc

logical name: /home/rediron

serial: ed3cc8a5-df33-41b0-961a-b0d07b9a54de

size: 2794GiB

2017-12-11 08:57:51 sectorsize=4096 state=mounted

*-scsi:3

logical name: scsi6

product: INTEL SSDSC2BW24

bus info: scsi@6:0.0.0

logical name: /dev/sdd

version: DC32

serial: PHDA4403005H2403GN

size: 223GiB (240GB)

configuration: ansiversion=5 sectorsize=512 signature=00058aad

*-volume:0

bus info: scsi@6:0.0.0,255)">logical name: /dev/sdd1

size: 202GiB

capacity: 202GiB

*-logicalvolume:0

logical name: /dev/sdd5

logical name: /boot

capacity: 244MiB

*-logicalvolume:1

description: Linux swap / Solaris partition

logical name: /dev/sdd6

capacity: 4578MiB

capabilities: nofs

*-logicalvolume:2

logical name: /dev/sdd7

logical name: /home/wwt

capacity: 197GiB

*-volume:1

logical name: /dev/sdd2

logical name: /

serial: ef4a9a3d-a8a7-476d-b85c-ebc1eaf7ec75

size: 21GiB

capacity: 21GiB

capabilities: primary journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized

12-11 08:57:50 state=mounted

*-scsi:4

logical name: scsi13

*-processor UNCLaimED

description: SCSI Processor

bus info: scsi@13:0.0.0

*-power:0 UNCLaimED

description: To Be Filled By O.E.M.

product: To Be Filled By O.E.M.

vendor: To Be Filled By O.E.M.

version: To Be Filled By O.E.M.

capacity: 32768mWh

*-power:1 UNCLaimED

capacity: 32768mWh

rootroot@cm-System-Product-Name:~$

获取cpu序列号或者主板序列号

#cpu ID

sudo dmidecode -t 4 | grep ID

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode -t 4 | grep ID

ID: E4 06 03 00 FF FB EB BF

rootroot@cm-System-Product-Name:~$

#Serial Number

sudo dmidecode | grep Serial

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode | grep Serial

Serial services are supported (int 14h)

Serial Number: System Serial Number

Serial Number: 140932583400049

Serial Number: Chassis Serial Number

Serial Number: To Be Filled By O.E.M.

Serial Number: ChannelA_Dimm1_SerNum

Serial Number: ChannelA_Dimm2_SerNum

Serial Number: ChannelB_Dimm1_SerNum

Serial Number: ChannelB_Dimm2_SerNum

Serial Number: 133D751E

Serial Number: ChannelC_Dimm2_SerNum

Serial Number: 133D75BB

Serial Number: ChannelD_Dimm2_SerNum

Serial Number: To Be Filled By O.E.M.

rootroot@cm-System-Product-Name:~$

#cpu

sudo dmidecode -t 4

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode -t 4

# dmidecode 2.12

SMBIOS 2.7 present.

Handle 0x0004,DMI type 4,42 bytes

Processor information

Socket Designation: LGA2011

Type: Central Processor

Family: Other

Manufacturer: Intel

ID: E4 06 03 00 FF FB EB BF

Version: Intel(R) Core(TM) i7-4930K cpu @ 3.40GHz

Voltage: 1.0 V

External Clock: 100 MHz

Max Speed: 4000 MHz

Current Speed: 3400 MHz

Status: Populated,Enabled

Upgrade: Other

L1 Cache Handle: 0x0005

L2 Cache Handle: 0x0006

L3 Cache Handle: 0x0007

Asset Tag: To Be Filled By O.E.M.

Part Number: To Be Filled By O.E.M.

Core Count: 6

Core Enabled: 6

Thread Count: 12

characteristics:

64-bit capable

rootroot@cm-System-Product-Name:~$

#BIOS

sudo dmidecode -t 0

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode -t 0

Handle 0x0000,DMI type 0,24 bytes

BIOS information

vendor: American Megatrends Inc.

Version: 4701

Release Date: 08/26/2014

Address: 0xF0000

Runtime Size: 64 kB

ROM Size: 8192 kB

PCI is supported

APM is supported

BIOS is upgradeable

BIOS shadowing is allowed

Boot from CD is supported

Selectable boot is supported

BIOS ROM is socketed

EDD is supported

5.25"/1.2 MB floppy services are supported (int 13h)

3.5"/720 kB floppy services are supported (int 13h)

3.5"/2.88 MB floppy services are supported (int 13h)

Print screen service is supported (int 5h)

8042 keyboard services are supported (int 9h)

Printer services are supported (int 17h)

ACPI is supported

USB legacy is supported

BIOS boot specification is supported

Targeted content distribution is supported

UEFI is supported

BIOS Revision: 4.6

rootroot@cm-System-Product-Name:~$

#主板:

sudo dmidecode -t 2

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode -t 2

Handle 0x0002,DMI type 2,15 bytes

Base Board information

Manufacturer: ASUSTeK COmpuTER INC.

Product Name: P9X79 WS

Version: Rev 1.xx

Asset Tag: To be filled by O.E.M.

Features:

Board is a hosting board

Board is replaceable

Location In Chassis: To be filled by O.E.M.

Chassis Handle: 0x0003

Type: motherboard

Contained Object Handles: 0

rootroot@cm-System-Product-Name:~$

#OEM:

sudo dmidecode -t 11

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode -t 11

Handle 0x002F,DMI type 11,5 bytes

OEM Strings

String 1: To Be Filled By O.E.M.

String 2: To Be Filled By O.E.M.

String 3: To Be Filled By O.E.M.

String 4: To Be Filled By O.E.M.

显示当前内存大小(单位为MB

free -m |grep "Mem" | awk '{print $2}'

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ free -m |grep "Mem" | awk '{print $2}'

15989

rootroot@cm-System-Product-Name:~$

查看硬盘温度

sudo apt-get install hddtemp

sudo hddtemp /dev/sda

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo apt-get install hddtemp

正在读取软件包列表... 完成

正在分析软件包的依赖关系树

正在读取状态信息... 完成

建议安装的软件包:

ksensors

下列【新】软件包将被安装:

hddtemp

升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 180 个软件包未被升级。

需要下载 52.8 kB 的软件包。

解压缩后会消耗掉 250 kB 的额外空间。

获取:1 http://mirrors.ustc.edu.cn/ubuntu/ trusty/universe hddtemp amd64 0.3-beta15-52 [52.8 kB]

下载 52.8 kB,耗时 0秒 (348 kB/s)

正在预设定软件包 ...

正在选中未选择的软件包 hddtemp。

(正在读取数据库 ... 系统当前共安装有 226805 个文件和目录。)

正准备解包 .../hddtemp_0.3-beta15-52_amd64.deb ...

正在解包 hddtemp (0.3-beta15-52) ...

正在处理用于 man-db (2.6.7.1-1ubuntu1) 的触发器 ...

正在处理用于 ureadahead (0.100.0-16) 的触发器 ...

ureadahead will be reprofiled on next reboot

正在设置 hddtemp (0.3-beta15-52) ...

正在处理用于 ureadahead (0.100.0-16) 的触发器 ...

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo hddtemp /dev/sda

/dev/sda: ST2000NM0033-9ZM175: 46°C

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo hddtemp /dev/sdb

/dev/sdb: ST2000DM001-1ER164: 45°C

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo hddtemp /dev/sdc

/dev/sdc: ST3000VX000-1ES166: 43°C

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo hddtemp /dev/sdd

WARNING: Drive /dev/sdd doesn't seem to have a temperature sensor.

WARNING: This doesn't mean it hasn't got one.

WARNING: If you are sure it has one,please contact me (hddtemp@guzu.net).

WARNING: See --help,--debug and --drivebase options.

/dev/sdd: INTEL SSDSC2BW240A4: no sensor

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$

rootroot@cm-System-Product-Name:~$ sudo dmidecode

115 structures occupying 5113 bytes.

Table at 0x000EB6F0.

Handle 0x0001,DMI type 1,27 bytes

System information

Manufacturer: System manufacturer

Product Name: System Product Name

Version: System Version

UUID: 1E00FC80-008C-7200-AD7C-382C4AC53500

Wake-up Type: Power Switch

SKU Number: SKU

Family: To be filled by O.E.M.

Contained Object Handles: 0

Handle 0x0003,DMI type 3,22 bytes

Chassis information

Manufacturer: Chassis Manufacture

Type: Desktop

Lock: Not Present

Version: Chassis Version

Asset Tag: Asset-1234567890

Boot-up State: Safe

Power Supply State: Safe

Thermal State: Safe

Security Status: None

OEM information: 0x00000000

Height: Unspecified

Number Of Power Cords: 1

Contained Elements: 0

SKU Number: To be filled by O.E.M.

64-bit capable

Handle 0x0005,DMI type 7,19 bytes

Cache information

Socket Designation: L1-Cache

Configuration: Enabled,Not Socketed,Level 1

Operational Mode: Write Back

Location: Internal

Installed Size: 32 kB

Maximum Size: 32 kB

Supported SRAM Types:

Other

Installed SRAM Type: Other

Speed: UnkNown

Error Correction Type: None

System Type: Unified

Associativity: 8-way Set-associative

Handle 0x0006,255)">Socket Designation: L2-Cache

Operational Mode: Varies With Memory Address

Installed Size: 256 kB

Maximum Size: 256 kB

Handle 0x0007,255)">Socket Designation: L3-Cache

Installed Size: 12288 kB

Maximum Size: 12288 kB

Associativity: 16-way Set-associative

Handle 0x0008,DMI type 8,9 bytes

Port Connector information

Internal Reference Designator: PS/2 Keyboard

Internal Connector Type: None

External Reference Designator: PS/2 Keyboard

External Connector Type: PS/2

Port Type: Mouse Port

Handle 0x0009,255)">Internal Reference Designator: PS/2 Mouse

External Reference Designator: PS/2 Mouse

Port Type: Keyboard Port

Handle 0x000A,255)">Internal Reference Designator: USB_1234

External Reference Designator: USB_1234

External Connector Type: Access Bus (USB)

Port Type: USB

Handle 0x000B,255)">Internal Reference Designator: SPDIF

External Reference Designator: SPDIF

External Connector Type: Other

Port Type: Audio Port

Handle 0x000C,255)">Internal Reference Designator: GbE LAN1

External Reference Designator: GbE LAN1

External Connector Type: RJ-45

Port Type: Network Port

Handle 0x000D,255)">Internal Reference Designator: GbE LAN2

External Reference Designator: GbE LAN2

Handle 0x000E,255)">Internal Reference Designator: USB5_6

External Reference Designator: USB5_6

Handle 0x000F,255)">Internal Reference Designator: USB7_8

External Reference Designator: USB7_8

Handle 0x0010,255)">Internal Reference Designator: IE1394_1

External Reference Designator: IE1394_1

External Connector Type: IEEE 1394

Port Type: Firewire (IEEE P1394)

Handle 0x0011,255)">Internal Reference Designator: USB3_12

External Reference Designator: USB3_12

Handle 0x0012,255)">Internal Reference Designator: AUdio

External Reference Designator: AUdio

Handle 0x0013,255)">Internal Reference Designator: SATA6G_1

Internal Connector Type: SAS/SATA Plug Receptacle

External Reference Designator: Not Specified

External Connector Type: None

Port Type: SATA

Handle 0x0014,255)">Internal Reference Designator: SATA6G_2

Handle 0x0015,255)">Internal Reference Designator: SATA3G_3

Handle 0x0016,255)">Internal Reference Designator: SATA3G_4

Handle 0x0017,255)">Internal Reference Designator: SATA3G_5

Handle 0x0018,255)">Internal Reference Designator: SATA3G_6

Handle 0x0019,255)">Internal Reference Designator: USB9_10

Internal Connector Type: Access Bus (USB)

Handle 0x001A,255)">Internal Reference Designator: USB11_12

Handle 0x001B,255)">Internal Reference Designator: USB13

Handle 0x001C,255)">Internal Reference Designator: USB3_34

Handle 0x001D,255)">Internal Reference Designator: AAFP

Internal Connector Type: Mini Jack (headphones)

Handle 0x001E,255)">Internal Reference Designator: CHA_FAN1

Internal Connector Type: Other

Port Type: Other

Handle 0x001F,255)">Internal Reference Designator: CHA_FAN2

Handle 0x0020,255)">Internal Reference Designator: CHA_FAN3

Handle 0x0021,255)">Internal Reference Designator: CHA_FAN4

Handle 0x0022,255)">Internal Reference Designator: cpu_FAN

Handle 0x0023,255)">Internal Reference Designator: cpu_FAN_OPT

Handle 0x0024,255)">Internal Reference Designator: COM1

Handle 0x0025,255)">Internal Reference Designator: IE1394_2

Internal Connector Type: IEEE 1394

Handle 0x0026,255)">Internal Reference Designator: SATA6G_E1

Handle 0x0027,255)">Internal Reference Designator: SATA6G_E2

Handle 0x0028,DMI type 9,17 bytes

System Slot information

Designation: PCIEX16_1

Type: 32-bit PCI Express

Current Usage: In Use

Length: Short

ID: 1

3.3 V is provided

opening is shared

PME signal is supported

Bus Address: 0000:01:02.2

Handle 0x0029,255)">Designation: PCIEX16_2

Current Usage: Available

ID: 2

Bus Address: 0000:ff:02.0

Handle 0x002A,255)">Designation: PCIEX16_3

ID: 3

Bus Address: 0000:03:01.1

Handle 0x002B,255)">Designation: PCIEX16_4

ID: 4

Bus Address: 0000:02:03.2

Handle 0x002C,255)">Designation: PCIEX16_5

ID: 5

Bus Address: 0000:04:1c.0

Handle 0x002D,255)">Designation: PCIEX16_6

ID: 6

Bus Address: 0000:ff:03.0

Handle 0x002E,DMI type 10,8 bytes

On Board Device 1 information

Type: Ethernet

Status: Enabled

Description: Onboard Ethernet

On Board Device 2 information

Type: Sound

Description: Onboard Audio

Handle 0x0030,DMI type 12,255)">System Configuration Options

Option 1: To Be Filled By O.E.M.

Handle 0x0031,DMI type 16,23 bytes

Physical Memory Array

Location: System Board Or motherboard

Use: System Memory

Error Correction Type: Multi-bit ECC

Maximum Capacity: 96 GB

Error information Handle: Not Provided

Number Of Devices: 8

Handle 0x0032,DMI type 19,31 bytes

Memory Array Mapped Address

Starting Address: 0x00000000000

Ending Address: 0x003FFFFFFFF

Range Size: 16 GB

Physical Array Handle: 0x0031

Partition Width: 1

Handle 0x0033,DMI type 17,34 bytes

Memory Device

Array Handle: 0x0031

Total Width: 72 bits

Data Width: 64 bits

Size: No Module Installed

Form Factor: DIMM

Set: None

Locator: ChannelA_Dimm1

Bank Locator: ChannelA

Type: UnkNown

Type Detail: Synchronous

Manufacturer: ChannelA_Dimm1_Manufacturer

Asset Tag: ChannelA_Dimm1_AssetTag

Part Number: ChannelA_Dimm1_PartNum

Rank: UnkNown

Configured Clock Speed: UnkNown

Handle 0x0034,DMI type 126,35 bytes

Inactive

Handle 0x0035,255)">Locator: ChannelA_Dimm2

Manufacturer: ChannelA_Dimm2_Manufacturer

Asset Tag: ChannelA_Dimm2_AssetTag

Part Number: ChannelA_Dimm2_PartNum

Handle 0x0036,255)">Handle 0x0037,255)">Locator: ChannelB_Dimm1

Bank Locator: ChannelB

Manufacturer: ChannelB_Dimm1_Manufacturer

Asset Tag: ChannelB_Dimm1_AssetTag

Part Number: ChannelB_Dimm1_PartNum

Handle 0x0038,255)">Handle 0x0039,255)">Locator: ChannelB_Dimm2

Manufacturer: ChannelB_Dimm2_Manufacturer

Asset Tag: ChannelB_Dimm2_AssetTag

Part Number: ChannelB_Dimm2_PartNum

Handle 0x003A,255)">Handle 0x003B,255)">Size: 8192 MB

Locator: ChannelC_Dimm1

Bank Locator: ChannelC

Type: DDR3

Speed: 1866 MHz

Manufacturer: Samsung

Asset Tag: ChannelC_Dimm1_AssetTag

Part Number: M391B1G73QH0-CMA

Rank: 2

Configured Clock Speed: 1866 MHz

Handle 0x003C,DMI type 20,255)">Memory Device Mapped Address

Ending Address: 0x001FFFFFFFF

Range Size: 8 GB

Physical Device Handle: 0x003B

Memory Array Mapped Address Handle: 0x0032

Partition Row Position: UnkNown

Interleave Position: UnkNown

Interleaved Data Depth: UnkNown

Handle 0x003D,255)">Locator: ChannelC_Dimm2

Manufacturer: ChannelC_Dimm2_Manufacturer

Asset Tag: ChannelC_Dimm2_AssetTag

Part Number: ChannelC_Dimm2_PartNum

Handle 0x003E,255)">Handle 0x003F,255)">Locator: ChannelD_Dimm1

Bank Locator: ChannelD

Asset Tag: ChannelD_Dimm1_AssetTag

Handle 0x0040,255)">Starting Address: 0x00200000000

Physical Device Handle: 0x003F

Handle 0x0041,255)">Locator: ChannelD_Dimm2

Manufacturer: ChannelD_Dimm2_Manufacturer

Asset Tag: ChannelD_Dimm2_AssetTag

Part Number: ChannelD_Dimm2_PartNum

Handle 0x0042,255)">Handle 0x0043,DMI type 32,20 bytes

System Boot information

Status: No errors detected

Handle 0x0044,DMI type 34,11 bytes

Management Device

Description: Nuvoton NCT6776F

Type: Other

Address: 0x00000295

Address Type: I/O Port

Handle 0x0045,DMI type 26,255)">Voltage Probe

Description: LM78A

Location: <OUT OF SPEC>

Status: <OUT OF SPEC>

Maximum Value: UnkNown

Minimum Value: UnkNown

Resolution: UnkNown

Tolerance: UnkNown

Accuracy: UnkNown

OEM-specific information: 0x00000000

Nominal Value: UnkNown

Handle 0x0046,DMI type 36,16 bytes

Management Device Threshold Data

Lower Non-critical Threshold: 1

Upper Non-critical Threshold: 2

Lower Critical Threshold: 3

Upper Critical Threshold: 4

Lower Non-recoverable Threshold: 5

Upper Non-recoverable Threshold: 6

Handle 0x0047,DMI type 35,255)">Management Device Component

Description: To Be Filled By O.E.M.

Management Device Handle: 0x0044

Component Handle: 0x0044

Threshold Handle: 0x0045

Handle 0x0048,DMI type 28,255)">Temperature Probe

Handle 0x0049,255)">Handle 0x004A,255)">Component Handle: 0x0047

Threshold Handle: 0x0048

Handle 0x004B,DMI type 27,255)">Cooling Device

Temperature Probe Handle: 0x0048

Type: <OUT OF SPEC>

Cooling Unit Group: 1

Nominal Speed: UnkNown Or Non-rotating

Description: Cooling Dev 1

Handle 0x004C,255)">Handle 0x004D,255)">Component Handle: 0x004A

Threshold Handle: 0x004B

Handle 0x004E,255)">Description: Not Specified

Handle 0x004F,255)">Handle 0x0050,255)">Component Handle: 0x004D

Threshold Handle: 0x004E

Handle 0x0051,DMI type 29,255)">Electrical Current Probe

Description: ABC

Handle 0x0052,255)">Handle 0x0053,255)">Component Handle: 0x0050

Handle 0x0054,DMI type 39,255)">System Power Supply

Power Unit Group: 1

Location: To Be Filled By O.E.M.

Name: To Be Filled By O.E.M.

Manufacturer: To Be Filled By O.E.M.

Model Part Number: To Be Filled By O.E.M.

Revision: To Be Filled By O.E.M.

Max Power Capacity: UnkNown

Status: Not Present

Input Voltage Range Switching: <OUT OF SPEC>

Plugged: Yes

Hot Replaceable: No

Input Voltage Probe Handle: 0x0045

Cooling Device Handle: 0x004E

Input Current Probe Handle: 0x0051

Handle 0x0055,255)">Description: 2

Type: LM78

Address: 0x00000000

Handle 0x0056,255)">Description: LM78B

Handle 0x0057,255)">Lower Non-critical Threshold: 7

Upper Non-critical Threshold: 8

Lower Critical Threshold: 8

Upper Critical Threshold: 10

Lower Non-recoverable Threshold: 11

Upper Non-recoverable Threshold: 12

Handle 0x0058,255)">Management Device Handle: 0x0055

Component Handle: 0x0055

Threshold Handle: 0x0056

Handle 0x0059,255)">Handle 0x005A,255)">Lower Non-critical Threshold: 13

Upper Non-critical Threshold: 14

Lower Critical Threshold: 15

Upper Critical Threshold: 16

Lower Non-recoverable Threshold: 17

Upper Non-recoverable Threshold: 18

Handle 0x005B,255)">Component Handle: 0x0058

Threshold Handle: 0x0059

Handle 0x005C,255)">Handle 0x005D,255)">Handle 0x005E,255)">Component Handle: 0x005B

Threshold Handle: 0x005C

Handle 0x005F,255)">Temperature Probe Handle: 0x005C

Description: Cooling Dev 2

Handle 0x0060,255)">Handle 0x0061,255)">Component Handle: 0x005E

Threshold Handle: 0x005F

Handle 0x0062,255)">Handle 0x0063,255)">Handle 0x0064,255)">Component Handle: 0x0061

Threshold Handle: 0x0062

Handle 0x0065,255)">Temperature Probe Handle: 0x0062

Handle 0x0066,255)">Handle 0x0067,255)">Component Handle: 0x0064

Threshold Handle: 0x0065

Handle 0x0068,255)">Description: DEF

Handle 0x0069,255)">Handle 0x006A,255)">Component Handle: 0x0067

Handle 0x006B,255)">Description: GHI

Handle 0x006C,255)">Handle 0x006D,255)">Component Handle: 0x006A

Handle 0x006E,255)">Input Voltage Probe Handle: 0x0059

Cooling Device Handle: 0x0065

Handle 0x006F,DMI type 41,255)">Onboard Device

Reference Designation: Onboard LAN

Type Instance: 1

Bus Address: 0000:00:19.0

Handle 0x0070,DMI type 139,94 bytes

OEM-specific Type

Header and Data:

8B 5E 70 00 00 1E 8C 00 00 72 AD 7C 04 04 32 55

F8 00 A2 02 A1 00 40 63 43 10 84 83 03 DF 40 80

00 20 00 73 3C 10 08 00 60 0F B2 1F D4 05 01 00

DB DB DB DB DB DB 00 20 20 DB DB 20 20 20 20 20

10 20 DA C3 7C AD 72 FF 22 8C 1E 00 19 1D 86 72

B1 1F 00 00 00 00 00 00 00 00 00 00 00 01

Strings:

V1394GUID

Handle 0x0071,DMI type 13,255)">BIOS Language information

Language Description Format: Long

Installable Languages: 9

en|US|iso8859-1

fr|FR|iso8859-1

es|ES|iso8859-1

de|DE|iso8859-1

ru|RU|iso8859-5

ko|KR|unicode

ja|JP|unicode

zh|TW|unicode

zh|CN|unicode

Currently Installed Language: en|US|iso8859-1

Handle 0x0072,DMI type 127,4 bytes

End Of Table

rootroot@cm-System-Product-Name:~$

ubuntu系统中查看本机cpu和内存信息的命令和用法分色排版的更多相关文章

  1. iOS推送通知适用于Dev而不是Enterprise Distribution

    本网站上没有其他问题,我已经能够找到实际上提出了Dev将工作的原因,但企业分布不会.为什么归档总是使aps环境生产?

  2. ios – testflight库和Xcode 5没有变化现在说“ld:找不到-lTestFlight的库”

    我已经创建了几个月的应用程序,突然Xcode5不想构建它.它只是抱怨以下错误.如果我理解它可以,它会抱怨testflight,但我几周没有改变它.它完美地编译了它.我不得不说我已经尝试将AdobeADMS跟踪库添加到项目中.然后,出现链接器错误.任何提示?

  3. 如何在ios swift项目中为dev n prod使用两个不同的GoogleService-info.plist文件?

    我需要使用两个不同的GoogleService-info.plist来处理dev和prod构建,目前我只是通过在编辑方案中更改“构建配置”来分离dev和prod,但现在我需要有两个不同的.plist文件dev和prod用于处理谷歌分析,pushwoosh等,解决方法对于这种情况,您需要在Dev和Prod的项目中使用带有diffbundleid的不同Targets.之后,您可以链接GoogleSer

  4. openstack安装liberty--安装对象存储服务swift

    通常使用CACHE技術提高性能Accountservers賬戶服務,管理對象存儲中的賬戶定義。Containerservers容器服務,在對象存儲中管理容器或文件夾映……Objectservers對象服務,在存儲節點管理實際的對象,比如文件。Wsgimiddleware處理認證,通常使用OPENSTACKIdentityswiftclient為用戶提供命令行接口使用RESTAPIswift-init初始化和構建RING文件腳本swift-recon一個命令行工具,用於檢索群集的各種度量和測試信息。

  5. (Cross-)编译Swift for Raspberry PI

    Swift现在是开源的.有没有人试过编译Swift的RaspBerryPI?我开始做,但我的8GBSD卡似乎太小了;)是否可以从Ubuntu交叉编译?写Swift打开你最喜欢的文本编辑器,编写一个程序并保存它:编译它并运行它:而已!

  6. Swift 3 dev快照中的POST请求给出了“对成员’dataTask的模糊引用(with:completionHandler :)’

    编辑:我注意到有人在我之后写了这个问题的副本.这里的答案是更好的答案.使用URLRequest结构.在Xcode8中工作正常:另外,出现此错误的原因是URLSessionAPI具有相同的名称方法,但每个都采用不同的参数.因此,如果没有明确的演员,API将会混淆.我认为这是API的命名错误.发生此问题,代码如下:

  7. 针对不同环境的不同Android构建

    我希望能够构建和安装我的应用程序的多个版本(同时),针对不同的环境,如开发,暂存和生产.AndroidManifest.xml中的软件包名称似乎是这里的主要障碍,因为它是唯一标识应用程序的内容.我认为可以简单地在com.mydomain.prod,com.mydomain.staging和com.mydomain.dev之间切换或某种类似的约定,但到目前为止,我还没有运气的包装结构对于这种方法.我

  8. android – 如何在Google Play商店中打开开发者页面(market://)

    ),但我在AndroidDeveloper页面上找不到它.解决方法您只需调用market://dev?id=xxx即可例如.:我希望,这适合您的需求!

  9. 适用于Android dev的可下载字体和“Chrome已停止”错误

    作为Oreo和支持库中新的可下载字体支持的一部分,我已经开始将功能集成到我开发的应用程序中.第一个应用程序是成功的–只需几个活动的简单应用程序.第二个应用程序没有成功.添加可下载字体(基于此资源:https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts.html)后,我在启动活动时遇到此错误:该应用

  10. Android,设置Linux构建环境,libgl1-mesa-glx:i386包有未满足的依赖项

    解决方法我解决了这个问题.执行以下操作,安装除libgl1-mesa-glx:i386之外的所有软件包:安装libglapi-mesa-lts-saucy:i386而不是libgl1-mesa-glx:i386:现在您拥有正确的AOSP构建环境,并且不会丢失桌面环境.

随机推荐

  1. crontab发送一个月份的电子邮件

    ubuntu14.04邮件服务器:Postfixroot收到来自crontab的十几封电子邮件.这些邮件包含PHP警告.>我已经解决了这些警告的原因.>我已修复每个cronjobs不发送电子邮件(输出发送到>/dev/null2>&1)>我删除了之前的所有电子邮件/var/mail/root/var/spool/mail/root但我仍然每小时收到十几封电子邮件.这些电子邮件来自cronjobs,

  2. 模拟两个ubuntu服务器计算机之间的慢速连接

    我想模拟以下场景:假设我有4台ubuntu服务器机器A,B,C和D.我想在机器A和机器C之间减少20%的网络带宽,在A和B之间减少10%.使用网络模拟/限制工具来做到这一点?

  3. ubuntu-12.04 – 如何在ubuntu 12.04中卸载从源安装的redis?

    我从源代码在Ubuntu12.04上安装了redis-server.但在某些时候它无法完全安装,最后一次makeinstallcmd失败.然后我刚刚通过apt包安装.现在我很困惑哪个安装正在运行哪个conf文件?实际上我想卸载/删除通过源安装的所有内容,只是想安装一个包.转到源代码树并尝试以下命令:如果这不起作用,您可以列出软件自行安装所需的步骤:

  4. ubuntu – “apt-get source”无法找到包但“apt-get install”和“apt-get cache”可以找到它

    我正在尝试下载软件包的源代码,但是当我运行时它无法找到.但是当我运行apt-cache搜索squid3时,它会找到它.它也适用于apt-getinstallsquid3.我使用的是Ubuntu11.04服务器,这是我的/etc/apt/sources.list我已经多次更新了.我尝试了很多不同的debs,并没有发现任何其他地方的错误.这里的问题是你的二进制包(deb)与你的源包(deb-src)不

  5. ubuntu – 有没有办法检测nginx何时完成正常关闭?

    &&touchrestarted),因为即使Nginx没有完成其关闭,touch命令也会立即执行.有没有好办法呢?这样的事情怎么样?因此,pgrep将查找任何Nginx进程,而while循环将让它坐在那里直到它们全部消失.你可以改变一些有用的东西,比如睡1;/etc/init.d/Nginx停止,以便它会休眠一秒钟,然后尝试使用init.d脚本停止Nginx.你也可以在某处放置一个计数器,这样你就可以在需要太长时间时发出轰击信号.

  6. ubuntu – 如何将所有外发电子邮件从postfix重定向到单个地址进行测试

    我正在为基于Web的应用程序设置测试服务器,该应用程序发送一些电子邮件通知.有时候测试是使用真实的客户数据进行的,因此我需要保证服务器在我们测试时无法向真实客户发送电子邮件.我想要的是配置postfix,以便它接收任何外发电子邮件并将其重定向到一个电子邮件地址,而不是传递到真正的目的地.我正在运行ubuntu服务器9.10.先感谢您设置本地用户以接收所有被困邮件:你需要在main.cf中添加:然后

  7. ubuntu – vagrant无法连接到虚拟框

    当我使用基本的Vagrantfile,只配置了两条线:我看到我的虚拟框打开,但是我的流氓日志多次显示此行直到超时:然后,超时后的一段时间,虚拟框框终于要求我登录,但是太久了!所以我用流氓/流氓记录.然后在我的物理机器上,如果我“流氓ssh”.没有事情发生,直到:怎么了?

  8. ubuntu – Nginx – 转发HTTP AUTH – 用户?

    我和Nginx和Jenkins有些麻烦.我尝试使用Nginx作为Jenkins实例的反向代理,使用HTTP基本身份验证.它到目前为止工作,但我不知道如何传递带有AUTH用户名的标头?}尝试将此指令添加到您的位置块

  9. Debian / Ubuntu – 删除后如何恢复/ var / cache / apt结构?

    我在ubuntu服务器上的空间不足,所以我做了这个命令以节省空间但是现在在尝试使用apt时,我会收到以下错误:等等显然我删除了一些目录结构.有没有办法做apt-getrebuild-var-tree或类似的?

  10. 检查ubuntu上安装的rubygems版本?

    如何查看我的ubuntu盒子上安装的rubygems版本?只是一个想法,列出已安装的软件包和grep为ruby或宝石或其他:)dpkg–get-selections

返回
顶部