• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

How Do I Check What USB Devices Are Connected On My Linux System?

CJ Saathoff

Published on: August 13, 2024

Categories: Linux Command Line 0

Have you ever encountered a time when you were working in a remote Linux server and needed to check what was connected to the system over USB? To determine the USB devices connected on Linux the simplest way is using the lsusb command.

The lsusb command in Linux is a utility that lists the connected USB devices. This post will touch on the syntax of the command, reading the results, flags, and more.

Table of Contents
  • Basic Syntax
  • Results Explained
    • What Are USB Buses?
    • What Is A Vendor ID?
    • What Is A Product ID?
  • Flags
  • But Wait There’s More
    • The USB-devices Command
    • Logs
  • Conclusion
  • Additional Links

Basic Syntax

The simplest syntax of the lsusb command is:

lsusb

All instances of the command will follow the following syntax:

lsusb [options]

Results Explained

Now that we know what the syntax looks like, let’s break down the display information or the results of running the lsusb command without any flags.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 002: ID 0c45:6a17 Microdia Integrated_Webcam_FHD

Bus 003 Device 003: ID 0a5c:5843 Broadcom Corp. 58200

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

We can break these down into 4 separate parts.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

  1. First, each line starts with the USB bus the device is connected too
  2. Next is the device number that is connected to that USB bus
  3. Next Comes the unique Vendor and product IDs.
  4. Last but not least we have the device name and description.

What Are USB Buses?

USB buses are pathways that allow devices to connect to the host system.

What Is A Vendor ID?

Manufacturers of USB devices are assigned a vendor ID by the USB Implementers Forum. This makes sure that vendors use unique IDs.

What Is A Product ID?

The Product ID identifies the specific device made by the vendor the device is.

Flags

Looking for more out of the lsusb command here’s what it can do with flags.

-v, –verbose Display verbose output

-s [[bus]:][devnum] Show only USB devices with specified device and/or bus numbers

-d vendor:[product] Show only devices with the specified vendor and product ID numbers

-D device Selects the device to examine. Make sure to replace device with the full path to the usb device which will be /dev/bus/usb/[bus number]/[device number]

-t, –tree View the physical USB device hierarchy as a tree

-V, –version Check the version of lsusb

-h, –help Show usage and help

But Wait There’s More

In addition to the lsusb command here are some other ways to check for connected USB devices.

The USB-devices Command

The usb-devices command on Linux is used to display detailed information than the lsusb command, though this may be more information than you need.

results if the usb-devices command

Logs

Are you instead looking for logs? When devices are connected and disconnected they are logged with to the same place as that is configured for kernel messages. On newer system typically this is handled by systemd, to view USB related events from systemd-journal run the following command:

journalctl -k | grep -i usb

Conclusion

In this post, we answered the question of, how to remotely determine what is connected to USB on your Linux server. Primary we do this by using the lsusb command. In this post we touch on the syntax of the lsusb command, reading the results, flags, and more.

Additional Links

Are you done reading and looking for more, why not check these links out?

  • More Linux Command Line Posts
  • Wikipedia USB
CJ Saathoff

Embracing a lifelong passion for technology since childhood, CJ delved into the intricate workings of systems, captivated by the desire to understand the unknown. This innate curiosity led to his discovery of Linux, a revelation that resonated deeply. With more than 7 years of on the job experience, he’s honed his technical skills as a Geek and Senior Linux Systems Administrator.

Related Posts

Resolving the “Fatal: Refusing to Merge Unrelated Histories” Error

The "fatal: refusing to merge unrelated histories" occurs when you try and merge an unrelated repo into your own. Here's what it means.

Git Rebase vs Merge vs Cherry-Pick: When to Use Each

Git has many tools for merging branches and commits. Rebasing, merging, and cherry-picking all have their uses.

How Curl Follows Redirects on Linux

We use curl regularly to fetch resources from websites. Unfortunately, curl doesn't follow redirects automatically. Here's how to fix that.

Bash Debug Mode: set -x and the PS4 Variable

When coding a program, you usually have a full IDE set up with autocomplete and stack tracing, allowing you to pause execution at any point and see what’s going on under the hood. These tools make coding more productive, and they’ve been in use for a long time. But what if you’re just quickly coding […]

Reader Interactions

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA