![]() ![]() The types of system summary information shown and the types, order and size of information displayed for processes are all user configurable and that configuration can be made persistent across restarts. It can display system summary information as well as a list of processes or threads currently being managed by the Linux kernel. The top program provides a dynamic real-time view of a running system. It reports total memory usage and also total RAM usage by the processes. Ubuntu users can also use top command to check memory and cpu usage per process. h, –human: Show all output fields automatically scaled to shortest three digit unit and display the units of print out. ![]() –tera: Display the amount of memory in terabytes. g, –giga: Display the amount of memory in gigabytes. m, –mega: Display the amount of memory in megabytes. k, –kilo: Display the amount of memory in kilobytes. b, –bytes: Display the amount of memory in bytes. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailable in /proc/meminfo, available on kernels 3.14, emulated on kernels 2.6.27+, otherwise the same as free) available: Estimation of how much memory is available for starting new applications, without swapping.cache: Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo).buffers: Memory used by kernel buffers (Buffers in /proc/meminfo). ![]() shared: Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available).free: Unused memory (MemFree and SwapFree in /proc/meminfo).used: Used memory (calculated as total – free – buffers – cache).total: Total installed memory (MemTotal and SwapTotal in /proc/meminfo).I hope you liked this post and help us to grow by sharing it with your friends.The displayed columns after the execution of the free command are: The free command although it is one of the simplest that you can find, the truth is that it can help us a lot in the memory management of our computer. So, as you can see, it is easy to use the free command in Linux. Or if you want to make it continuous but set an interval of seconds, you can use the -s option free -h -s Īnd to end the execution of the command, you can press the CTRL + C keys. Remember, you have to replace by an integer that specifies the repetitions. If you want to do more continuous monitoring, you can specify the number of times to run the command. It’s like a summary of the totals of the main and swap memory. Using the -t option, you can add a row called total at the end of the output to totalize. free -h Using the free commandĪs we can notice, now the units are expressed in a better and more understandable format for humans. To improve it, you can use the -h option. More usesĪs we can notice, it is a simple command to use, but it expresses the amounts in a not very understandable format. The last row shows information about the swap. Available: A system estimate of the amount of memory available.cached: Amount of memory dedicated to the cache.buffers: This is the memory reserved for buffers.shared which is the memory used by the tmpfs file system.free: this column shows the amount of free memory in the system.total: The amount of memory the computer has.Each of these specifies the memory usage. ![]() In this output, we can see that there are several columns like total, used, free, shared, buffers/ cached. If you use the free command without any parameters defined, then you will get an output similar to this. All we have to do is open our terminal and start using it. Using the free command in LinuxĪs we said, the free command is available from your favorite Linux distribution. This means that we don’t have to install anything or do any additional steps. That is to say, we will be able to know how much is used, and how much is available.Īlthough the free command does not have many options and learning to use it is simple and fast, it is one of those commands that is always good to have on hand to know how the system works.īeing a basic command of the Unix family, it is available in all Linux distributions. Thanks to free, we can quickly know what is the use we are giving it. The free command belongs to a family of commands for Unix operating systems that allows us to know the memory usage of the system.īy memory, we always mean RAM or main system memory. This command is also basic to use, but it can get us out of an important predicament. This time we are going to explore the free in Linux command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |