Files
hestiacp/bin/v-list-sys-memory-status
Alexey Berezhok 346a50856b Initial
2024-03-19 22:05:27 +03:00

31 lines
907 B
Bash
Executable File

#!/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