Hardware information
Let’s explore how to peek under the hood of your Ubuntu system right from the command line! These ls
commands are your go-to tools for getting a quick and informative snapshot of your hardware.
Ubuntu manages your hardware well, but sometimes you need to know exactly what’s what. These commands give you that insight without opening up your computer case:
lshw
(list hardware): This is the big one!lshw
provides a comprehensive overview of your system’s hardware components. Run it withsudo lshw
(you’ll likely need administrator privileges to see all the details) and prepare to see a detailed tree-like structure listing everything from your CPU and memory to your network interfaces and storage devices. You can even filter the output to focus on specific types of hardware using the-C
option followed by a class. For example, to display only memory-related information, runsudo lshw -C memory
.lsusb
(list USB devices...