Forrest logo
back to the hdparm tool

hdparm:tldr:de3d9

hdparm: Request the identification info of a given device.
$ sudo hdparm -I /dev/${device}
try on your machine

This command is used to retrieve detailed information about a storage device (such as a hard disk drive or solid-state drive) in Linux using the "hdparm" utility.

Let's break down the command:

  • "sudo": It is used to execute the subsequent command with administrative privileges. The user running this command may need to provide the root password.

  • "hdparm": This command is a tool/utility used to set and view various parameters of a hard drive. In this case, it is going to be used to get detailed information about a storage device.

  • "-I": It is an option for hdparm that specifies the command to display detailed identification information about the device.

  • "/dev/${device}": This part of the command is the path to the device file. The actual device name or identifier should be placed in place of "${device}". For example, if you want to retrieve information about the first hard disk drive (e.g., /dev/sda), the command will be: sudo hdparm -I /dev/sda.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the hdparm tool