
Use the following format to limit a decimal places. %.2f%: By default it prints floating point numbers with 6 decimal places.printf: It used to format and print data.cpu+=$9: For each line, add column 9 to a variable ‘cpu’.awk: awk is a powerful command which is specialized for textual data manipulation.


In this method, we are using combination of free and awk command to get the memory utilization percentage. We can use the following combination of commands to get the work done.
#UBUNTU DISPLAY MEMORY USAGE HOW TO#
Method-1: How to check Memory Utilization Percentage in Linux? It will be very useful for Linux Experts and Middle Level Linux Users. These format commands falls under Linux advanced commands.

But the same time, you won’t be getting the clear utilization if you are using free -m or free -g. This tutorial will help you to identify the memory utilization when you are facing high memory utilization frequently in Linux server. If you want to know those information then you are in the right page. There are lot of commands and options available in Linux to check memory utilization but I don’t see much information to check about memory utilization percentage.Most of the times we are checking memory utilization alone and we won’t think about how much percentage is used.
