7 lines
103 B
Bash
Executable File
7 lines
103 B
Bash
Executable File
#!/bin/sh
|
|
set -eu pipefail
|
|
|
|
memory=$(free -m | awk '/^Mem:/ {printf "%.1f", $3/1024}')
|
|
|
|
echo "$memory"
|