Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 2 PCs. A Laptop dv600 and an Intel dp35dp. I want a command that shows me how many slots of memory I am using, the size, speed, etc.. For the moment the size of each would be good. Maybe see if there are slot free to use.

share|improve this question
I don't think it's possible. System monitor will show you how much memory you have and how much you're using/is available, but that's it. . . – James Jan 4 '11 at 18:33
up vote 31 down vote accepted
lshw -short -C memory


share|improve this answer
Thank you. After testing with dmidecore the exact answer for me was: sudo dmidecode -t memory Many thanks jet. – Luis Alvarado Jan 4 '11 at 18:57
My system told me to run the command as super user. Add 'sudo' to the start of the command. – MattSmith Jun 15 '15 at 0:56

I find the following more more Human friendly and it gives the Speed, Size, Slot, Dimm Type, etc...

sudo dmidecode -t memory

If you only need to know the actual maximum memory and amount of slots in your motherboard then do the following:

sudo dmidecode -t 16

Changing 16 for 17 will give you an more detail look at each memory slot in your motherboard.

share|improve this answer

sudo lshw -class memory worked for me.



You should see




If you have 2 slots. Only *-bank for 1 slot.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.