I need to get the ram size of the current machine and the used ram of the current machine in gb. How do i do this? I can get the ram size in kB, but how in gb?
RAM = $(grep MemTotal /proc/meminfo)
I would need one variable with the total ram and one with used ram. I am sorry for this question, but i am editing a bash script for the first time in my life right now ^^ Thanks for all of your Help! ;)