Linux
petips

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

More than 1 year has passed since last update.


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