You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
907 B
31 lines
907 B
1 year ago
|
#!/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
|