Linuxをコンソールで管理している場合の容量やスペックの調べるのが面倒ですよね。
慣れたら簡単なので有名所のコマンドを記載しておきます。
ぐぐれば沢山出てくるよヾ(゚∀゚)ノ
というのはキニシナイ方向でお願いしたい所存です。
慣れたら簡単なので有名所のコマンドを記載しておきます。
ぐぐれば沢山出てくるよヾ(゚∀゚)ノ
というのはキニシナイ方向でお願いしたい所存です。
OSの詳細を確認する
DebianやUbuntuでも調べることは出来ますが、動作環境がないのでコマンドだけ記載しておきます(・∀・)
結果は見てのお楽しみという事で。
CPUの詳細を確認する
CPUの情報はこれで分かります( ゚∀゚)
メモリの詳細を確認する
メモリの情報はこれで分かります。
KB表記で少し分かりづらいですが、上記の場合は4GB搭載しています。
HDDの詳細を確認する
HDDの情報はこれで分かります。
-hオプションを付けると容量に見合った単位にしてくれるので便利ですよヾ(゚∀゚)ノ
何かの拍子に突然上司に
「サーバの仕様書無くしちゃったwwwwサーバのスペック調べて、今。」
とか言われた時に使えば幸せになれるかもしれません。
そんなウッカリ上司でも怒らずに対応してあげると、良いことがあるかもしれませんよ?
#uname -a
※カーネルのバージョンを調べる
#>cat /etc/redhat-release
※RedHatやCentOSでOSの詳細を調べる
※カーネルのバージョンを調べる
Linux hostname 2.6.*-**..el5PAE #1 SMP Wed Jan 4 22:49:48 EST 2012 i686 i686 i386 GNU/Linux
#>cat /etc/redhat-release
※RedHatやCentOSでOSの詳細を調べる
Red Hat Enterprise Linux Server release *
DebianやUbuntuでも調べることは出来ますが、動作環境がないのでコマンドだけ記載しておきます(・∀・)
#cat /etc/debian_version
※DebianでOSの詳細を調べる
#>cat /etc/lsb-release
※UbuntuでOSの詳細を調べる
※DebianでOSの詳細を調べる
#>cat /etc/lsb-release
※UbuntuでOSの詳細を調べる
結果は見てのお楽しみという事で。
CPUの詳細を確認する
#cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
stepping : 10
cpu MHz : 2500.243
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 5000.00
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
(以下略)
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
(以下略)
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
(以下略)
上記の例はクアッドコアなので4個のCPU情報が表示されます
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
stepping : 10
cpu MHz : 2500.243
cache size : 3072 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 3
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 5000.00
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
(以下略)
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
(以下略)
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU X3323 @ 2.50GHz
(以下略)
上記の例はクアッドコアなので4個のCPU情報が表示されます
CPUの情報はこれで分かります( ゚∀゚)
メモリの詳細を確認する
#cat /proc/meminfo
MemTotal: 4144120 kB
MemFree: 3262832 kB
Buffers: 359548 kB
Cached: 399476 kB
SwapCached: 0 kB
Active: 534540 kB
Inactive: 290428 kB
HighTotal: 3271296 kB
HighFree: 2791568 kB
LowTotal: 872824 kB
LowFree: 471264 kB
SwapTotal: 10485752 kB
SwapFree: 10485752 kB
Dirty: 8 kB
Writeback: 0 kB
AnonPages: 65928 kB
Mapped: 31168 kB
Slab: 36040 kB
PageTables: 3384 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 12557812 kB
Committed_AS: 752820 kB
VmallocTotal: 116728 kB
VmallocUsed: 10380 kB
VmallocChunk: 105860 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
MemFree: 3262832 kB
Buffers: 359548 kB
Cached: 399476 kB
SwapCached: 0 kB
Active: 534540 kB
Inactive: 290428 kB
HighTotal: 3271296 kB
HighFree: 2791568 kB
LowTotal: 872824 kB
LowFree: 471264 kB
SwapTotal: 10485752 kB
SwapFree: 10485752 kB
Dirty: 8 kB
Writeback: 0 kB
AnonPages: 65928 kB
Mapped: 31168 kB
Slab: 36040 kB
PageTables: 3384 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 12557812 kB
Committed_AS: 752820 kB
VmallocTotal: 116728 kB
VmallocUsed: 10380 kB
VmallocChunk: 105860 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
メモリの情報はこれで分かります。
KB表記で少し分かりづらいですが、上記の場合は4GB搭載しています。
HDDの詳細を確認する
#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 9.7G 1.5G 7.8G 16% /
/dev/mapper/VolGroup00-LogVol04 98G 210M 93G 1% /data
/dev/mapper/VolGroup00-LogVol03 9.7G 636M 8.6G 7% /var
/dev/mapper/VolGroup00-LogVol02 4.9G 139M 4.5G 3% /tmp
/dev/sda1 99M 19M 76M 20% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/mapper/VolGroup00-LogVol00 9.7G 1.5G 7.8G 16% /
/dev/mapper/VolGroup00-LogVol04 98G 210M 93G 1% /data
/dev/mapper/VolGroup00-LogVol03 9.7G 636M 8.6G 7% /var
/dev/mapper/VolGroup00-LogVol02 4.9G 139M 4.5G 3% /tmp
/dev/sda1 99M 19M 76M 20% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
HDDの情報はこれで分かります。
-hオプションを付けると容量に見合った単位にしてくれるので便利ですよヾ(゚∀゚)ノ
何かの拍子に突然上司に
「サーバの仕様書無くしちゃったwwwwサーバのスペック調べて、今。」
とか言われた時に使えば幸せになれるかもしれません。
そんなウッカリ上司でも怒らずに対応してあげると、良いことがあるかもしれませんよ?
コメント