Linux Free Command and it's usage

Linux Free Command and it's usage

Linux is one of the most popular open source operating system and comes with huge set of commands.
To check the total available space of the physical memory and swap memory we can use “free” command utility in Linux. The Linux “free” command gives information about total used and available space of physical memory and swap memory with buffers used by kernel in Linux/Unix like operating systems. Below are some example of free command :

1). To check system memory : It will show used and available space of physical memory and swap memory in KB.
-----
# free
-----

2). To display memory in bytes :
It will show used and available space of physical memory and swap memory in bytes
-----
# free -b
-----

3). To display memory in megabytes : It will show used and available space of physical memory and swap memory in megabytes
-----
# free -m
-----

4). To display memory in gigabytes : It will show used and available space of physical memory and swap memory in gigabytes
-----
# free -g
-----

5). To display total lines : It will show total lines at the end.
-----
# free -b
-----

6). To disable buffer adjusted line : By default buffer shows through free command. To disable it use -o option.
-----
# free -0
-----

7). To display memory status on regular intervals : It will show used and available space of physical memory and swap memory in every 10 seconds.
-----
# free -s 10
-----

8). To display high and low memory statistics : It will show detailed information for high and low memory statistics.
-----
# free -l
-----

9). To check version of free command : It will show version of free command.
-----
# free -v
-----

10). To display combined size for both RAM and swap : It will show combined size of both swap as well as RAM.
-----
# free -t
-----
Author
bhawanisingh
Views
1,877
First release
Last update
Rating
0.00 star(s) 0 ratings
Top