Skip to content

Instantly share code, notes, and snippets.

@rohityadavcloud
Created July 31, 2025 06:48
Show Gist options
  • Save rohityadavcloud/3334ab062ba827b251e59566db4ce647 to your computer and use it in GitHub Desktop.
Save rohityadavcloud/3334ab062ba827b251e59566db4ce647 to your computer and use it in GitHub Desktop.
nvme-tbw-check.sh
#!/bin/sh
sudo smartctl -A /dev/nvme0 | /bin/awk '$0~/Written/{ print strftime("%Y-%m-%d %H:%M:%S"), $3,$4,$5$6}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment