You can quickly check your available memory in Ubuntu using the free command in the terminal.
Here's how:
- Open a terminal: Press Ctrl+Alt+T to open a terminal window.
- Run the free command: Type
free -h
and press Enter.
The output will display information about your memory usage, including:
- Total: The total amount of RAM installed in your system.
- Used: The amount of RAM currently being used by running programs and processes.
- Free: The amount of RAM that is currently available.
- Shared: The amount of RAM shared between processes.
- Buffers/Cache: The amount of RAM used as buffers and caches by the operating system.
You can also use the top command to monitor your memory usage in real-time. This command provides a more detailed overview of your system's processes and resource utilization.
Example Output:
total used free shared buff/cache available
Mem: 7.7Gi 5.7Gi 2.0Gi 137Mi 1.0Gi 2.0Gi
Swap: 3.9Gi 2.6Mi 3.9Gi
In this example, you can see that the system has 7.7GiB of total RAM, 5.7GiB is used, and 2.0GiB is free.