Check available memory
Zhenguo Zhang
Bioinformatics scientist dedicated to healthcare innovation, fueled by diverse skills and a commitment to lifelong learning
When one wants to know the total memory and available memory in a computer, one can try the following command:
free -g
And the output may look like this
total used free shared buff/cache available
Mem: 247 1 44 0 201 244
Swap: 6 3 3
Here the rows *Mem* amd *Swap* show the info for physical and swap memory, respectively. And the columns *total* and *available* show the total memory and available memory (for starting new applications) the system has. The unit is gibibytes because the option *-g* was used.
Run command `man free` to learn more.