LoginSignup
9

More than 5 years have passed since last update.

Linuxサーバの情報を取得する諸々のコマンド

Last updated at Posted at 2016-05-31

HostName

$ hostname

Network

$ ifconfig

Kernel

$ uname -a

Distribution

$ cat /etc/os-release
$ cat /etc/redhat-release

CPU

$ lscpu
$ cat /proc/cpuinfo

Memory

$ cat /proc/meminfo

Storage

$ df -h

スペック調査とかの時のために…

$ echo -e "\n*** hostname ***" && hostname && \
  echo -e "\n*** kernel ***"&& uname -a && \
  echo -e "\n*** distribution ***" && cat /etc/redhat-release && \
  echo -e "\n*** cpu ***"  && lscpu && \
  echo -e "\n*** memory ***" && cat /proc/meminfo && \
  echo -e "\n*** Network ***" && ifconfig && \
  echo -e "\n*** storage ***" && df -h

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
9