From 4910cbeff5d0fa7b736606b0324d9e08e569189e Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Tue, 6 May 2025 02:42:17 +1000 Subject: [PATCH] lscpu: add examples (#16388) --- pages/linux/lscpu.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/linux/lscpu.md b/pages/linux/lscpu.md index 981ebb07b3..de8fe579b9 100644 --- a/pages/linux/lscpu.md +++ b/pages/linux/lscpu.md @@ -11,6 +11,18 @@ `lscpu {{[-e|--extended]}}` +- Display only information about online CPUs in a table: + +`lscpu {{[-e|--extended]}} {{[-b|--online]}}` + - Display only information about offline CPUs in a table: `lscpu {{[-e|--extended]}} {{[-c|--offline]}}` + +- Display details about CPU caches: + +`lscpu {{[-C|--caches]}}` + +- Display information in JSON format: + +`lscpu {{[-J|--json]}}`