mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 18:00:52 +00:00
Update cheatsheets
This commit is contained in:
@@ -6,24 +6,28 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# smartctl
|
||||
|
||||
> Monitor disk health including SMART data.
|
||||
> More information: <https://www.smartmontools.org>.
|
||||
> More information: <https://manned.org/smartctl>.
|
||||
|
||||
- Display SMART health summary:
|
||||
|
||||
`sudo smartctl --health {{/dev/sdX}}`
|
||||
`sudo smartctl {{[-H|--health]}} {{/dev/sdX}}`
|
||||
|
||||
- Display device information:
|
||||
|
||||
`sudo smartctl --info {{/dev/sdX}}`
|
||||
`sudo smartctl {{[-i|--info]}} {{/dev/sdX}}`
|
||||
|
||||
- Start a short self-test in the background:
|
||||
- Start a short/long self-test in the background:
|
||||
|
||||
`sudo smartctl --test short {{/dev/sdX}}`
|
||||
`sudo smartctl {{[-t|--test]}} {{short|long}} {{/dev/sdX}}`
|
||||
|
||||
- Display the self-test log:
|
||||
|
||||
`sudo smartctl {{[-l|--log]}} selftest`
|
||||
|
||||
- Display current/last self-test status and other SMART capabilities:
|
||||
|
||||
`sudo smartctl --capabilities {{/dev/sdX}}`
|
||||
`sudo smartctl {{[-c|--capabilities]}} {{/dev/sdX}}`
|
||||
|
||||
- Display exhaustive SMART data:
|
||||
|
||||
`sudo smartctl --all {{/dev/sdX}}`
|
||||
`sudo smartctl {{[-a|--all]}} {{/dev/sdX}}`
|
||||
|
||||
Reference in New Issue
Block a user