Windows and Linux
Disk and storage
| Task | Windows | Linux |
|---|---|---|
| Free space | or | |
| Folder sizes | File Explorer properties, or | |
| Check a disk for errors | , which schedules a check at the next restart if the drive is in use | on an unmounted drive |
| Disk health | , then read the HealthStatus column | , from the smartmontools package |
Older guides use wmic logicaldisk and wmic diskdrive. WMIC is no longer included in current Windows 11 builds, so use the PowerShell commands above.