Command Line

How To: Find The RAM Total In The Terminal

Today’s article will show you how to find the RAM total, because that’s basic information everyone might want to know. If you don’t already know how much RAM you have, this is a good article for you. If you’re like me and need to be reminded from time to time, this is also a good article for you!

You might have a computer that doesn’t run as fast as you want, and having not enough RAM may be a cause. Before you install a distro, you should know that distro’s minimum requirements, of which RAM is often one such prerequisite. Maybe you’re upgrading RAM and really want to make sure you know what you have inside? Dunno, but there are reasons why you might want to find the RAM total.

Not all my articles are long, and that includes this one. This one should be pretty quick and easy, suitable for folks just starting out who want to know how much RAM they have.

Find The RAM Total:

This article requires an open terminal, like many other articles on this site. If you don’t know how to open the terminal, you can do so with your keyboard – just press CTRL + ALT + T and your default terminal should open.

With the terminal open, we’ll just use the free command. It looks like this:

free -m

The output is obvious and will look similar to this:

The output should be fairly obvious to all readers. The total RAM is listed in the output.

That’s the output from a fairly standard device. It should be obvious, but the column you’re looking for is under ‘total’ and you’re looking for the big number/top row.

You can also check /proc/meminfo for more information. Run the following command for a bunch of data about your installed RAM:

cat /proc/meminfo

If you take a look at the output, you’ll be looking for the row starting with “MemTotal” in the results. Of course, you can just use ‘grep’ to pull out just the information you want. Try it with this command:

grep MemTotal /proc/meminfo

That should do it. It should give you an output that has just the row you’re looking for. Feel free to change ‘MemTotal’ to another row, but remember that it’s case sensitive – like most of Linux.

Closure:

There are surely other ways to find the RAM total, but those are a couple of easy ways to toss into your growing toolbox. This is also another article in the books. It’s just a short article, but it’s an article nonetheless. 

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

KGIII

Retired mathematician, residing in the mountains of Maine. I may be old and wise, but I am not infallible. Please point out any errors. And, as always, thanks again for reading.

Recent Posts

How To: Install Wine In Lubuntu

Today's article isn't going to be complicated or long as we are going to cover…

3 hours ago

Update Python Packages (PIP)

We've had a run of Python packages recently and you can tell that I'm a…

2 days ago

Save A Command’s Output To A File (While Showing It In The Terminal)

The title is the best I can come up with to describe this exercise as…

4 days ago

Demystifying journalctl: A Comprehensive Guide to Linux System Logging

It was suggested that I write an article about journalctl, which seemed like a large…

6 days ago

Extract Text From Multiple File Types

Today we will have a fairly simple exercise as we're going to just use a…

1 week ago

Meta: I’ve Been At This For Three Years!

I have not done a meta article lately. I don't find them interesting to write…

1 week ago