目的
列出設備的GPU、CPU型號,以及內存和硬碟(HDD, SSD)的大小
範例
# GPU
echo "GPU:"
lspci | grep -i nvidia
# CPU
echo "CPU:"
lscpu | grep "Model name"
# RAM
echo "RAM:"
grep MemTotal /proc/meminfo
# HDD
echo "HDD:"
lsblk -d -o name,size,rota | grep -v "0"
# SSD
echo "SSD:"
lsblk -d -o name,size,rota | grep -i "0"