In: Computer Science
USB memory devices are displayed in Linux as which of the following?
What is USB ?
There are many programs and many ways to list USB devices on Linux:
To display information about USB devices connected to your
system, you can use the lsusb command.
$ lsusb
To display detailed information about each device, use the
-v option.
$ lsusb -v
To display the device list as a tree so you can see what devices
are connected to what controllers, use the -t
option.
$ lsusb -t
You can run the following command to list all the
connected USB devices of your system:
$ usb-devices
If you want to list all the USB block storage devices, that is
all the USB storage devices, then you can use the
lsblk or fdisk command to do
so.
$ lsblk
You can get almost the same information as
lsblk command with blkid command.
But you have to run it as root as follows:
$ sudo blkid
You can also use fdisk command to list all the
USB block storage devices.
$sudo fdisk -l
You can use the dmesg command to find out more
information about the connected USB devices.
The last connected USB device is the easiest to find with
dmesg command.
It is more widely used for debugging purpose. In short the output
of dmesg command is system log messages.
$ dmesg
Almost everyone uses some type of USB devices in their
System.
These days there are
USB webcams,
USB hard drives,
PenDrive etc.
Almost every device has a USB version of it. Listing what USB
device is connected to your system might be necessary at some point
when you’re using Linux.