[Linux] Commands to collect CPU, BIOS, MEM, HW details in one go
At times, you wanted to run a script in on-prem or in cloud to understand the Linux Machine spec, this script (series of commands) helps you to get that info easily.
1. To get the CPU info,
$ lscpu
2. To get the H/w info,
$ lshw -short
3. To get the H/w info2,
$ hwinfo –short
4. To get the Diskblocks,
$ lsblk
5. To get the mounted disk,
$ df -hT
6. To get the attached disk,
$ fdisk -l
7. To get the memory,
$ free -m
8. To get the OSVersion,
$ cat /proc/version
9. To get the HW CPU,
$ dmidecode -t processor (cpu), $ dmidecode -t memory (memory), $ dmidecode -t bios (bios)
Hint: You could save this as bash script(#/bin/bash) and then cat out to individual file to /tmp/ so that we can get all of them in one go.
-
Recent
- The ID token is not yet valid. Make sure your computer’s time and time zone are both correct. Current epoch = 1689517128
- .NET Core – How to create a .NET GUI app which runs across the platform
- AKS 2022 updates
- Linux firewall and connectivity issues
- Microsoft Ignite (Sep22-24) event recap & On-demand sessions
- [Linux] Steps to install and configure sysstat package for monitoring.
- Azure Security Enablement – Centralized place for all the links
- Presenting tech session with stories [linkedin learning notes]
- gRPC using .NET core notes
- .NET in 2020 (Build recap)
- #KubeCon CNCF – North America 2019 watchlist
- AKS CLI Sheetcheat for the labs
-
Links