Search notes:

Shell command: free

free reports the amount of free and used physical memory and swap space.
free: grep /proc/meminfo 'MemFree\|SwapFree' (Sometimes slightly different. Because of delay between executing commands?)
shared: used by tmpfs
grep Shmem /proc/meminfo
cache: page cache and slabs.
grep '^Cached:\|Slab /proc/meminfo
buffers: used for kernel buffers
grep Buffers /proc/meminfo
available: An estimation on how much memory a new process might allocate.
grep MemAvailable /proc/meminfo
total: cat /proc/meminfo | grep MemInfo
total = used + free + buffers + cache

Actual free memory

Since cache (and also buffers?) are used to speed up hard disk access, the actual free memory calculates as
free + cache + buffers

Determine size in megabyes

-m: megabytes
free -m

-w: wide

-w is the wide option: the buff/cache column is shown separately as buffers and cache.
free -w

See also

Displaying swap space
/proc/meminfo
memory
Shell commands

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758200431, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/free(102): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78