LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

lstopo-no-graphics

displays the hardware topology of the system in text format without requiring

TLDR

Display the machine topology in tree format
$ lstopo-no-graphics
copy
Display only physical cores (ignore logical processors)
$ lstopo-no-graphics --only pu
copy
Display the topology with physical indexes
$ lstopo-no-graphics -p
copy
Display help
$ lstopo-no-graphics -h
copy

SYNOPSIS

lstopo-no-graphics [options]

DESCRIPTION

lstopo-no-graphics displays the hardware topology of the system in text format without requiring a graphical display. Part of the hwloc (Hardware Locality) package, it shows the hierarchical structure of CPUs, caches, memory, and I/O devices.The output shows the system's NUMA nodes, packages (sockets), cores, and processing units (hardware threads) in a tree structure. This information is useful for understanding CPU architecture, cache sharing, and memory locality for performance optimization.Unlike lstopo, this variant works in console-only environments without X11 or graphical libraries.

PARAMETERS

--only _type_

Display only objects of the specified type (e.g., pu for processing units)
-p, --physical
Display physical indexes instead of logical indexes
-l, --logical
Display logical indexes (default)
--no-io
Hide I/O devices from the output
--no-bridges
Hide bridge devices from the output
-h, --help
Display help information

INSTALL

sudo apt install hwloc
copy
sudo dnf install hwloc
copy
sudo pacman -S hwloc
copy
sudo apk add hwloc-tools
copy
sudo zypper install hwloc
copy
brew install hwloc
copy
nix profile install nixpkgs#hwloc
copy

CAVEATS

Output detail depends on the kernel's exposure of hardware information. Some virtual machines or containers may show limited topology data. The hwloc library must be installed for this command to be available.

HISTORY

The hwloc project was developed at Inria Bordeaux and the University of Tennessee, first released around 2009. It provides portable abstraction of hierarchical topology information across various operating systems and architectures.

SEE ALSO

lstopo(1), hwloc-ls(1), lscpu(1), numactl(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid