![Forrest logo](/images/logo.png)
lsblk:tldr:3e041
lsblk: Display a customized summary using a comma-separated list of columns.
$ lsblk --output ${NAME},${SERIAL},${MODEL},${TRAN},${TYPE},${SIZE},${FSTYPE},${MOUNTPOINT}
try on your machine
The command "lsblk --output ${NAME},${SERIAL},${MODEL},${TRAN},${TYPE},${SIZE},${FSTYPE},${MOUNTPOINT}" is used to list information about block devices (such as hard drives, USB drives, etc.) in a Linux system.
Here's an explanation of the different parameters used in this command:
- "lsblk" is the command itself, used to list block devices.
- "--output" is an option that specifies the format of the output.
- "${NAME}" is a placeholder for the name of the device.
- "${SERIAL}" is a placeholder for the serial number of the device.
- "${MODEL}" is a placeholder for the model or make of the device.
- "${TRAN}" is a placeholder for the transport type of the device (e.g., sata, usb, etc.).
- "${TYPE}" is a placeholder for the type of device (e.g., disk, part, loop, etc.).
- "${SIZE}" is a placeholder for the size of the device.
- "${FSTYPE}" is a placeholder for the file system type present on the device.
- "${MOUNTPOINT}" is a placeholder for the mount point of the device (if it is currently mounted).
By running this command, you will get a table-like output with columns displaying the specified information for each block device detected in the system. The actual values will be displayed in place of the placeholders.
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.