The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • O seară în ritmul tău: atmosfera divertismentului de cazinou pe internet

  • Outrageous: AppLovin Hit With Lawsuit Over AI Claims — What Investors Need to Know

  • 9 Critical Ways AI Investment Fraud Is Quietly Draining Your Bank Account

  • Is the AI Bubble Bursting? OpenAI’s Funding Woes Revealed

  • Why Millions Are Skipping College for These 7 Online Courses Right Now

  • The Astonishing Truth About PS5 Pro vs Xbox Ally X Financing

  • The Urgent Truth About 2026 Privacy Laws: Why Your Business Could Face Catastrophic Fines

  • Shocking: Esports Pros Reveal the Critical Steps to Protect Your Earnings

  • The Staggering Truth About These New Weight Loss Drugs — And Why You Need to Know

  • The Quiet Crisis: Why Your Auto Loan Interest Rates Are Still Skyrocketing

Assistive Technology
Home›Assistive Technology›How to Use the lsblk Command to List Block Devices on Linux

How to Use the lsblk Command to List Block Devices on Linux

By Matthew Lynch
June 6, 2023
0
Spread the love

As a Linux user, you might often need to list the hardware devices connected to your system. This information can be useful when troubleshooting or configuring your system. The lsblk command is a powerful tool that allows you to list all the block devices connected to your Linux system, which includes hard disks, flash drives, and memory cards.

In this article, we’ll explore how to use the lsblk command to list block devices on Linux.

Syntax

The syntax of the lsblk command is relatively simple:

lsblk [OPTIONS] [DEVICE]

Here, the OPTIONS are any command-line options you would like to use while running the command, and DEVICE refer to any block devices you want to list.

To list all block devices on your Linux system, simply run the lsblk command without any options or arguments, like this:

$ lsblk

The above command will list all available block devices on your system, including their names, sizes, and mount points.

Options

There are several options available with the lsblk command, which can help you narrow down your search for certain devices. Here are some of the commonly used options:

-a or –all: Show all block devices, including empty ones.

-b or –bytes: Show size in bytes instead of the default human-readable format.

-f or –fs: Show the filesystem type of each device.

-h or –human-readable: Show the size of the device in human-readable format.

-i or –inverse: Invert the output, showing only empty devices.

-m or –ascii: Use ASCII characters to draw the tree view.

-p or –paths: Print each device with its full absolute path.

-t or –topology: Show the relationship between parent and child devices.

-u or –uniq: Show only unique devices, filtering out duplicate names.

-x or –exclude: Exclude any devices matching a specified pattern.

Examples

Here are some examples of how to use the lsblk command in Linux:

To list all block devices on your system:
$ lsblk

To list all block devices with their filesystem type:

$ lsblk -f

To list all block devices with their size in human-readable format:

$ lsblk -h

To list all block devices and their mount points:

$ lsblk -m

To list all block devices in a tree view:

$ lsblk -t

To list all SCSI devices, excluding partition names:

$ lsblk -x NAME_REGEX=’sd[a-d][^0-9]’

Conclusion

The lsblk command is a powerful tool that can help you list all block devices on your Linux system. With the various options available, you can specify your search criteria and view the output in a way that suits you. Next time you need to list hardware devices on your Linux system, use the lsblk command to get fast and accurate results. 

Previous Article

Google Pixel 7 vs. iPhone 14: Which ...

Next Article

Ways to Fix Twitch Error 4000, Media ...

Matthew Lynch

Related articles More from author

  • Assistive Technology

    How to Display Drive Icons on Your Mac’s Desktop

    June 14, 2023
    By Matthew Lynch
  • Assistive Technology

    Video Cable Types Explained: Differences between VGA, DVI, and HDMI Ports

    June 5, 2023
    By Matthew Lynch
  • Assistive Technology

    You Can Safely Disable or Uninstall These Pre-Installed Apps on Samsung Phones

    June 15, 2023
    By Matthew Lynch
  • Assistive Technology

    Free Online Tycoon Games You Should Try

    June 21, 2023
    By Matthew Lynch
  • Assistive Technology

    How to Avoid Losing Your AOL Mail Account

    June 10, 2023
    By Matthew Lynch
  • Assistive Technology

    The Most Common Hardware Problems on Android Phones and How to Fix Them

    June 5, 2023
    By Matthew Lynch

Search

Login & Registration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2026 Matthew Lynch. All rights reserved.