hestiacp/bin/v-list-sys-memory-status

31 lines
907 B

#!/bin/bash
# info: list virtual memory info
# options:
#
# example: v-list-sys-memory-status
#
# This function lists virtual memory information
#----------------------------------------------------------#
# Action #
#----------------------------------------------------------#
# Displaying memory and swap usage
free -t -m
echo -en "\n---------------------------------------------"
echo -en "---------------------------------------------\n\n"
# Displaying memory stats
vmstat -S m -s
echo -en "\n---------------------------------------------"
echo -en "---------------------------------------------\n\n"
# Displaying ram information
dmidecode -t 17 2> /dev/null
#----------------------------------------------------------#
# Hestia #
#----------------------------------------------------------#
exit