Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: Bash

Use vmstat—a memory tool—in a Bash script on a CentOS VPS—script:
#!/bin/bash\nvmstat -s | grep \"used memory\" > mem_used.log
On DigitalOcean run:
./mem.sh
—expect used memory Monitors hosting RAM

Back to All Tips