Skip to main content
almarefa.net

Back to all posts

How to Get Disk Information on Linux?

Published on
6 min read
How to Get Disk Information on Linux? image

Best Disk Information Tools to Buy in October 2025

1 Norton Utilities Ultimate for 10 Devices, Keep your devices running like new - for Windows PC, Android and iOS (Download)

Norton Utilities Ultimate for 10 Devices, Keep your devices running like new - for Windows PC, Android and iOS (Download)

  • RECLAIM STORAGE SPACE BY REMOVING UNNECESSARY FILES AND APPS.
  • BOOST DEVICE PERFORMANCE BY ELIMINATING BACKGROUND BLOATWARE.
  • ENHANCE PRIVACY BY CLEARING BROWSING HISTORY AND TRACKING COOKIES.
BUY & SAVE
$19.99 $39.99
Save 50%
Norton Utilities Ultimate for 10 Devices, Keep your devices running like new - for Windows PC, Android and iOS (Download)
2 Rioddas External CD/DVD Drive for Laptop, USB 3.0 CD DVD Player Portable +/-RW Burner CD ROM Reader Writer Disk Duplicator Compatible with Laptop Desktop PC Windows Apple Mac Pro MacBook Linux

Rioddas External CD/DVD Drive for Laptop, USB 3.0 CD DVD Player Portable +/-RW Burner CD ROM Reader Writer Disk Duplicator Compatible with Laptop Desktop PC Windows Apple Mac Pro MacBook Linux

  • EASY PLUG & PLAY SETUP: NO DRIVERS NEEDED-JUST PLUG INTO USB!
  • HIGH-SPEED TRANSFERS: ENJOY UP TO 5GBPS WITH RELIABLE PERFORMANCE.
  • TRENDY, COMPACT DESIGN: STYLISH AND PORTABLE WITH BUILT-IN CABLE STORAGE.
BUY & SAVE
$22.68 $23.99
Save 5%
Rioddas External CD/DVD Drive for Laptop, USB 3.0 CD DVD Player Portable +/-RW Burner CD ROM Reader Writer Disk Duplicator Compatible with Laptop Desktop PC Windows Apple Mac Pro MacBook Linux
3 Gotega External DVD Drive USB 3.0 Type C USB C Portable CD/DVD +/-RW Disk Drive External DVD Player for Laptop CD/DVD ROM Burner Reader Compatible with Desktop PC Windows Linux OS Apple Mac

Gotega External DVD Drive USB 3.0 Type C USB C Portable CD/DVD +/-RW Disk Drive External DVD Player for Laptop CD/DVD ROM Burner Reader Compatible with Desktop PC Windows Linux OS Apple Mac

  • WIDE COMPATIBILITY: WORKS SEAMLESSLY WITH MAC, WINDOWS, AND LINUX.
  • HIGH SPEED TRANSFER: ACHIEVE UP TO 5GBPS WITH USB 3.0 CONNECTIONS.
  • EASY PLUG AND PLAY: SIMPLY CONNECT AND ENJOY INSTANT ACCESS TO DISCS.
BUY & SAVE
$19.99
Gotega External DVD Drive USB 3.0 Type C USB C Portable CD/DVD +/-RW Disk Drive External DVD Player for Laptop CD/DVD ROM Burner Reader Compatible with Desktop PC Windows Linux OS Apple Mac
4 DS Recovery Boot Password Reset CD Disc for Windows XP, Vista, 7, 8 (All Versions of Windows)

DS Recovery Boot Password Reset CD Disc for Windows XP, Vista, 7, 8 (All Versions of Windows)

  • FAST, HASSLE-FREE PASSWORD RESET FOR WINDOWS SYSTEMS.
  • USER-FRIENDLY INTERFACE SIMPLIFIES RECOVERY FOR ANYONE.
  • COMPATIBLE WITH VARIOUS WINDOWS VERSIONS FOR WIDER REACH.
BUY & SAVE
$6.99
DS Recovery Boot Password Reset CD Disc for Windows XP, Vista, 7, 8 (All Versions of Windows)
5 9th & Vine Password Recovery Reset CD Compatible With Windows Versions,11,10, 8.1, 7, XP and Vista in 32/64 Bit. No Internet Connection Required. Reset Lost Password

9th & Vine Password Recovery Reset CD Compatible With Windows Versions,11,10, 8.1, 7, XP and Vista in 32/64 Bit. No Internet Connection Required. Reset Lost Password

  • RESET LOST PASSWORDS WITHOUT INTERNET CONNECTION REQUIRED!
  • COMPATIBLE WITH ALL WINDOWS VERSIONS: XP TO 11, 32/64 BIT.
  • EASY BOOTABLE CD: QUICK AND SECURE PASSWORD RECOVERY SOLUTION!
BUY & SAVE
$15.99
9th & Vine Password Recovery Reset CD Compatible With Windows Versions,11,10, 8.1, 7, XP and Vista in 32/64 Bit. No Internet Connection Required. Reset Lost Password
6 Gator 3" Spot Sander Assorted Disc Utility Kit

Gator 3" Spot Sander Assorted Disc Utility Kit

  • ACHIEVE THE PERFECT FINISH WITH VERSATILE GRIT OPTIONS!
  • QUICK DISC CHANGES WITH HOOK AND LOOP BACKING!
  • DURABLE RUBBER PAD ENSURES LONG-LASTING PERFORMANCE!
BUY & SAVE
$20.79
Gator 3" Spot Sander Assorted Disc Utility Kit
+
ONE MORE?

To get disk information on Linux, you can use various commands and tools available in the terminal. Here are a few ways to obtain disk information:

  1. df: The "df" command displays the amount of disk space used and available on the file system. Running "df -h" provides the output in a more readable format, with sizes displayed in human-readable units (e.g., GB, MB).
  2. du: The "du" command estimates the file and directory sizes by recursively traversing through the file system. Running "du -h" provides the sizes in human-readable units.
  3. lsblk: The "lsblk" command lists information about block devices, including disks and partitions. It shows details like device names, sizes, mount points, and more. Running "lsblk -f" also displays the file system type.
  4. fdisk: The "fdisk" command allows you to view and manage disk partitions. Running "fdisk -l" lists information about all detected disks and their partitions.
  5. hdparm: The "hdparm" command provides information and various settings for disk drives. Running "hdparm -i /dev/sda" (replace "/dev/sda" with the appropriate drive) displays detailed information about that specific disk.
  6. smartctl: The "smartctl" command is used to monitor and retrieve information from SMART (Self-Monitoring, Analysis, and Reporting Technology) enabled hard drives. Running "smartctl -a /dev/sda" displays the SMART attributes and overall health status of the specified drive ("/dev/sda" can be replaced with the desired drive).

These are just a few common commands to gather disk information on Linux. Depending on your specific distribution and setup, there might be additional tools or commands available to explore more disk details.

How to display disk statistics on Linux?

There are several commands you can use to display disk statistics on Linux. Here are a few commonly used ones:

  1. df: This command provides information about disk space usage on all mounted filesystems. To display disk statistics, simply run the command "df" without any options. It will show you the file system, size, used space, available space, and mount point of each disk partition.
  2. du: The du command is used to estimate file and directory space usage. By default, it shows the disk usage of the current directory and its subdirectories. You can also specify a specific directory or file to get its disk usage information. For example, "du -h /path/to/directory" will display the disk usage of the specified directory in human-readable format.
  3. iostat: This command displays statistics about CPU utilization, disk I/O, and throughput for each device and partition in your system. You can use "iostat -d" to display disk statistics only.
  4. smartctl: smartctl is a command line tool for controlling and monitoring SMART (Self-Monitoring, Analysis, and Reporting Technology) enabled devices. It provides detailed information about hard disk health, temperature, disk errors, and more. You can use "smartctl -a /dev/sdX" to display the SMART information for a specific disk (replace /dev/sdX with the actual device name).
  5. blkid: The blkid command lists information about block devices (e.g., hard drives, partitions) available on your system. It can be used to display detailed information about disks, their partitions, and their file system types. Simply running "blkid" will show you a list of all block devices and their properties.

These commands will help you display disk statistics and gain insights into disk utilization, health, and other relevant information on your Linux system.

What is the command to get disk information on Linux?

The df command is commonly used to get disk information on Linux systems. By running df -h, you can retrieve information such as the total size, used space, available space, and mount point for each mounted file system.

How to check disk usage on Linux?

To check disk usage on Linux, you can use the 'df' command. Here are the steps:

  1. Open the terminal on your Linux system.
  2. Type the following command and press Enter: df This command shows the disk usage statistics of all mounted file systems.
  3. Alternatively, you can also use the '-h' option to display the disk space usage in a more human-readable format. Enter the following command: df -h This will show the disk usage in sizes like KB, MB, GB, etc.

The 'df' command will give you information about the available space, used space, and file system usage of your disk partitions.

What is the smartctl command used for in Linux?

The smartctl command in Linux is used to monitor and control SMART (Self-Monitoring, Analysis, and Reporting Technology) enabled devices, such as hard disk drives (HDDs) and solid-state drives (SSDs). It provides information and statistics about the drive's health, temperature, error rates, performance, etc. and can be used to diagnose or predict drive failures. Additionally, smartctl allows users to run self-tests, enable or disable certain features, and retrieve various attributes of the drive.

How to find disk I/O performance on Linux?

To find disk I/O performance on Linux, you can use various command-line tools and utilities. Here are a few options:

  1. iostat: The iostat command provides detailed statistics about disk I/O including the number of reads/writes per second, transfer rates, and average response times. You can use the following command:

iostat -d

Replace <interval> with the time between each report, and <count> with the number of reports you want.

  1. sar: The sar command, part of the sysstat package, provides system activity reports including disk I/O statistics. You can use the following command:

sar -d

Again, replace <interval> with the time between each report, and <count> with the number of reports you want.

  1. atop: The atop command is a powerful performance monitoring tool that can display real-time disk I/O statistics. Use the following command:

atop

Once atop is running, press d to display disk I/O stats. Use t to toggle between showing cumulative and real-time data.

  1. iotop: The iotop command provides an interactive display of processes and their disk I/O usage. It can help identify which processes are consuming the most disk I/O bandwidth. Run the following command:

iotop

Press r to sort by I/O rate and o to toggle between different display options.

These tools will help you analyze disk I/O performance and identify any potential bottlenecks on your Linux system.