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 an Ubuntu VPS—script:
#!/bin/bash\nvmstat -s | grep \"used memory\" > mem_used.log
On DigitalOcean run:
./mem.sh
—expect used memory stats Monitors hosting RAM usage

Back to All Tips