linuxのシステム情報を取得するコマンド

# uname -a
Linux ik1-xxx-xxx.vs.sakura.ne.jp 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# head -n 1 /etc/issue
CentOS release 6.8 (Final)
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU E5645 @ 2.40GHz
stepping : 2
microcode : 1
cpu MHz : 2400.084
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 11
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb lm constant_tsc arch_perfmon unfair_spinlock pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm
bogomips : 4800.16
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual

# hostname
ik1-xxx-xxx.vs.sakura.ne.jp

# lspci -tv
-[0000:00]-+-00.0 Intel Corporation 440FX – 82441FX PMC [Natoma]
+-01.0 Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
+-01.1 Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
+-01.2 Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II]
+-01.3 Intel Corporation 82371AB/EB/MB PIIX4 ACPI
+-02.0 Device 1234:1111
+-03.0 Red Hat, Inc Virtio network device
+-04.0 Red Hat, Inc Virtio network device
+-05.0 Red Hat, Inc Virtio network device
+-06.0 Red Hat, Inc Virtio block device
\-07.0 Red Hat, Inc Virtio memory balloon
# lsusb -tv
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 1: Dev 2, If 0, Class=HID, Driver=usbhid, 12M

# lsmod
Module Size Used by
ipv6 336282 32
uinput 8120 0
sg 29318 0
joydev 10480 0
virtio_balloon 4798 0
virtio_net 22002 0
i2c_piix4 11232 0
i2c_core 29132 1 i2c_piix4
ext4 379559 2
jbd2 93252 1 ext4
mbcache 8193 1 ext4
# env
HOSTNAME=ik1-xxx-xxx.vs.sakura.ne.jp
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=126.218.2.230 49218 22
SSH_TTY=/dev/pts/0
USER=root

Linux

Posted by arkgame