Shell/Bash: linux memory usage Example

By

Shell/Bash Example: This is the "linux memory usage" Example. compiled from many sources on the internet by SimpleTutorials.org

linux memory usage

// linux command for reporting used memory percentage
$ free | grep Mem | awk '{print $3/$2 * 100.0}'
23.8171

check ram memory usage linux

free -m

Ram usage in linux

$ cat /proc/meminfo

linux command to check memory usage in percentage

$ free -t | awk 'NR == 2 {printf("Current Memory Utilization is : %.2f%"), $3/$2*100}'
or
$ free -t | awk 'FNR == 2 {printf("Current Memory Utilization is : %.2f%"), $3/$2*100}'

Current Memory Utilization is : 20.42%

check vm ram details in linux

sudo dmidecode -t 17

how can I check memory usage in linux?

for more information search this webside --
https://www.howtogeek.com/659529/how-to-check-memory-usage-from-the-linux-terminal/


* Summary: This "linux memory usage" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others