14
10

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サーバの情報を取得する諸々のコマンド

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
14
10
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
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?