free
Command Function
This command is used to display the system memory usage and the sizes of the text, data, rodata, and bss segments.
Syntax
free [-k | -m]
Parameters
Table 1 Parameter description
Usage
None
Example
Run free, free -k, and free -m, respectively.
Output
Figure 1 Displaying the memory usage in three units
Table 2 Output
Size of the memory occupied by uninitialized global variables |