From fecbda85a8a8a7b41cd6ae586dd0e0b22a85c9c6 Mon Sep 17 00:00:00 2001 From: hthuz Date: Mon, 8 Jul 2024 13:55:29 +0800 Subject: [PATCH] add: read system info cmds --- .gitignore | 1 + doc/cmd | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 8cac1ea..63f882f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ python/django/mysite/polls/__pycache__ python/django/mysite/polls/migrations/__pycache__ python/*.png python/*.jpg +.vscode diff --git a/doc/cmd b/doc/cmd index 4ff7142..9bf2709 100644 --- a/doc/cmd +++ b/doc/cmd @@ -666,5 +666,18 @@ A common usage: +## Read system info + +architecture: `uname -a` +cpu: `lscpu` +disk: `df -h` or `lsblk` or `fdisk -l` +PCI peripheries: `lspci` +memory: `free -h` + +Or `dmidecode` + + + +