in

LinuxLinux

How to Get Name, Type & Vendor of Connected USB in Ubuntu 18.04 & 19.10?

Get details about Connected USB in Ubuntu

G

et Name of Connected USB in Ubuntu: Is it possible to get the name, type, vendor and serial number of Connected USB in Ubuntu 18.04, 19.04 & 19.10 versions. Below, we provided the command to get the name of the connected USB and its attributes & so kindly follow the instructions.

Get Name of the Connected USB in Ubuntu 18.04, 19.10:

With the help of lsblk command, you can get the complete details about connected USB on your PC.

  • Open the Terminal
  • Copy the below command
$sudo lsblk -p -o NAME,SERIAL,VENDOR,MODEL,TRAN | grep usb
  • SUDO command is used to run the command as root user
  • The output of the above command will print the Name, Vendor, Partition, Serial Number and etc… of the connected USB on your PC.
Output
/dev/sdc 000FEA0AB9F5BA60641508A8 SanDisk DT 241 SN usb
Available columns (for --output):

        NAME  device name
       KNAME  internal kernel device name
     MAJ:MIN  major:minor device number
      FSTYPE  filesystem type
  MOUNTPOINT  where the device is mounted
       LABEL  filesystem LABEL
        UUID  filesystem UUID
    PARTTYPE  partition type UUID
   PARTLABEL  partition LABEL
    PARTUUID  partition UUID
   PARTFLAGS  partition flags
          RA  read-ahead of the device
          RO  read-only device
          RM  removable device
     HOTPLUG  removable or hotplug device (usb, pcmcia, ...)
       MODEL  device identifier
      SERIAL  disk serial number
        SIZE  size of the device
       STATE  state of the device
       OWNER  user name
       GROUP  group name
        MODE  device node permissions
   ALIGNMENT  alignment offset
      MIN-IO  minimum I/O size
      OPT-IO  optimal I/O size
     PHY-SEC  physical sector size
     LOG-SEC  logical sector size
        ROTA  rotational device
       SCHED  I/O scheduler name
     RQ-SIZE  request queue size
        TYPE  device type
    DISC-ALN  discard alignment offset
   DISC-GRAN  discard granularity
    DISC-MAX  discard max bytes
   DISC-ZERO  discard zeroes data
       WSAME  write same max bytes
         WWN  unique storage identifier
        RAND  adds randomness
      PKNAME  internal parent kernel device name
        HCTL  Host:Channel:Target:Lun for SCSI
        TRAN  device transport type
  SUBSYSTEMS  de-duplicated chain of subsystems
         REV  device revision
      VENDOR  device vendor

From the above output, you can get the “NAME, KNAME, MAJ:MIN, FSTYPE, VENDOR, REV, SUBSYSTEMS, TRAN, HCTL, PKNAME, RAND, WWN, WSAME, DISC-ZERO, DISC-MAX, DISC-GRAN, ISC-ALN, TYPE, RQ-SIZE, SCHED, ROTA, LOG-SEC, PHY-SEC, OPT-IO, MIN-IO, ALIGNMENT, MODE, GROUP, OWNER, STATE, SIZE, SERIAL, MODEL, HOTPLUG, RM, RO, RA, PARTFLAGS, PARTUUID, PARTTYPE, UUID, PARTLABEL, LABEL, MOUNTPOINT” of the connected USB on your Ubuntu system.

Check this too  Bash:~ PIP Command Not Found in Linux! [Easy Fix]

Verdict:

That’s it. This is how you can find the name and many parameters of the connected USB on your Ubuntu system. If you have any queries related to this article and then feel free to comment us below.

Article Explanation
  • Article Review
  • Commands Provided
  • Output displayed
4.9

Summary

For more articles, kindly visit our HomePage

Leave a Reply

Your email address will not be published. Required fields are marked *

Written by Rachel

I'm Rachel, From Arizona. Am playing the "Content Management" Role in Tec Robust. I started working in TR from Jan 2019. Big Marvel Fan.

Contact me:
tecrobust [@] gmail.com
Sub: Message to Rachel

Unity3D on Linux Ubuntu

Unity3D for Ubuntu- How to Install Unity3D on Linux Ubuntu 18.04 LTS/ 19.04/19.10

Fix DPKG Front Error Lock on Ubuntu

Fix- Could not get lock /var/lib/dpkg/lock-frontend on Linux 18.04 LTS/ 19.10