Skip to content

Instantly share code, notes, and snippets.

@sxiii
Last active May 25, 2021 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sxiii/89c8ac2455d186dc6b279c7a0bd11622 to your computer and use it in GitHub Desktop.
Save sxiii/89c8ac2455d186dc6b279c7a0bd11622 to your computer and use it in GitHub Desktop.
CHIA NVME Statistics Gathering Bash Oneliner Linux

This command gathers statistics on your NVME usage every 6 hours

You can also replace the delay (sleep 21600) with any other time in seconds

Don't forget to create folder ~/Chia-NVME/ before running

Also don't forget to change /dev/nvme0 to your actual device

while true; do sleep 21600; date >> ~/Chia-NNVME/stat.txt && sudo nvme smart-log /dev/nvme0 >> ~/Chia-NNVME/stat.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment