Ubuntu 18.04 – shell commands list devices and hardware

If you want to see all the usb devices/drives and disks then you can use the following commands

lsblk

list block devices

lsblk
How to list devices and hardware Ubuntu, <span>Ubuntu 18.04 – shell commands list devices and hardware</span>, KandZ
It is a virtual machine that is why you see vda and vda1

fdisk -l

fdisk - manipulate disk partition table

sudo fdisk -l
How to list devices and hardware Ubuntu, <span>Ubuntu 18.04 – shell commands list devices and hardware</span>, KandZ

dmesg

dmesg - print or control the kernel ring buffer 
dmesg
How to list devices and hardware Ubuntu, <span>Ubuntu 18.04 – shell commands list devices and hardware</span>, KandZ

lspci

lspci - list all PCI devices
lspci
How to list devices and hardware Ubuntu, <span>Ubuntu 18.04 – shell commands list devices and hardware</span>, KandZ

THE END!!!

78890cookie-checkUbuntu 18.04 – shell commands list devices and hardwareUbuntu 18.04 – shell commands list devices and hardware

Related posts

One Thought to “Ubuntu 18.04 – shell commands list devices and hardware

  1. […] You need to know the name of the device. If you do not know how to do that, read this post. […]

Comments are closed.