wibian/mate/ram.sh

9 lines
179 B
Bash

#!/bin/bash
# This script monitors memory usage
# Get the current usage of memory
memUsage=$(free -m | awk '/Mem/{print $3}')
# Print the usage
echo "RAM: $memUsage MB"