Skip to content

Instantly share code, notes, and snippets.

@buzzkillb
Last active October 17, 2020 16:56
Show Gist options
  • Select an option

  • Save buzzkillb/6c803006b10fa71f79a668ef0e4d1489 to your computer and use it in GitHub Desktop.

Select an option

Save buzzkillb/6c803006b10fa71f79a668ef0e4d1489 to your computer and use it in GitHub Desktop.
#!/bin/bash
#size of chaindata folder, remove last character (G) at end
du -h --max-depth=0 /root/.denarius | awk '{print $1}' | sed 's/.$//'
#daemon ram usage in kilobytes
ps -C denariusd -o rss | awk 'END { print }'
#daemon getinfo for version and blockheight, split them up is less thinking mmm brainz
#denariusd getinfo | jq -r '.version, .blocks'
denariusd getinfo | jq -r '.version'
denariusd getinfo | jq -r '.blocks'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment