14
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linuxでサーバのスペックを確認するには

Posted at

CPUスペックの確認

# 物理 CPU の数
# grep physical.id /proc/cpuinfo | sort -u | wc -l

# CPU ごとのコアの数
# grep cpu.cores /proc/cpuinfo | sort -u

# 論理プロセッサーの数
# grep processor /proc/cpuinfo | wc -l

メモリスペックの確認

/proc/meminfoを参照する

# cat /proc/meminfo

dmidecodeコマンド

# メモリの本数
# dmidecode -t memory | grep 'Memory Device' | wc -l
# メモリの容量
# dmidecode -t memory | grep 'Size'

HDDの確認

lsblkコマンド

# lsblk
NAME          MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
fd0             2:0    1     4K  0 disk
sda             8:0    0 146.1G  0 disk
|-sda1          8:1    0   500M  0 part /boot
|-sda2          8:2    0     8G  0 part [SWAP]
`-sda3          8:3    0 137.6G  0 part
  `-rhel-root 253:0    0 137.6G  0 lvm  /
sr0            11:0    1  1024M  0 rom

fdiskコマンド

# fdisk -l

参考URL

https://access.redhat.com/ja/solutions/2159401
http://d.hatena.ne.jp/ike-dai/20110706/1309958404
http://takuya-1st.hatenablog.jp/entry/2016/10/02/014712

14
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?