How to check RAM size?












46















What is the command to find the RAM size in computer? I want to see result in MB.










share|improve this question





























    46















    What is the command to find the RAM size in computer? I want to see result in MB.










    share|improve this question



























      46












      46








      46


      6






      What is the command to find the RAM size in computer? I want to see result in MB.










      share|improve this question
















      What is the command to find the RAM size in computer? I want to see result in MB.







      ram






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      today

      1085




      1085










      asked Mar 31 '17 at 18:34









      KonradDosKonradDos

      4111511




      4111511






















          4 Answers
          4






          active

          oldest

          votes


















          45














          From a terminal you should be able to use:



          free -m


          From man page:




          -m, --mebi Display the amount of memory in mebibytes.



          --mega Display the amount of memory in megabytes. Implies --si.




          Note: A kilobyte (kB) is 1000 Bytes.






          share|improve this answer

































            37














            Open terminal.



            Run "free" to see RAM information in KB.



            Run "free -m" to see RAM information in MB.



            Run "free -g" to see RAM information in GB.






            share|improve this answer

































              12














              Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.



              This value (and the value shown as Total in output of free -m on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.



              To see the total amount of physical RAM installed, you can run sudo lshw -c memory which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.






              share|improve this answer



















              • 1





                More useful answer..!

                – Riken Shah
                May 27 '18 at 13:27











              • Then why was this more useful answer from 18 months ago, downvoted today?

                – dobey
                Nov 20 '18 at 13:29






              • 1





                I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                – Cranky
                Nov 21 '18 at 19:54



















              9














              Physical memory available in MB:



              echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


              Virtual memory available in MB:



              echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


              ..or use /proc/meminfo:



              grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'


              To see the physical chip information, you can use dmidecode to extract the DMI type 17 (Memory Device) tagged information:



              sudo dmidecode -t 17


              this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory which give a little bit more information.






              share|improve this answer


























              • With 1024 seems to be a mebibyte (MiB), no MB.

                – Pablo Bianchi
                3 hours ago











              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f898941%2fhow-to-check-ram-size%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              45














              From a terminal you should be able to use:



              free -m


              From man page:




              -m, --mebi Display the amount of memory in mebibytes.



              --mega Display the amount of memory in megabytes. Implies --si.




              Note: A kilobyte (kB) is 1000 Bytes.






              share|improve this answer






























                45














                From a terminal you should be able to use:



                free -m


                From man page:




                -m, --mebi Display the amount of memory in mebibytes.



                --mega Display the amount of memory in megabytes. Implies --si.




                Note: A kilobyte (kB) is 1000 Bytes.






                share|improve this answer




























                  45












                  45








                  45







                  From a terminal you should be able to use:



                  free -m


                  From man page:




                  -m, --mebi Display the amount of memory in mebibytes.



                  --mega Display the amount of memory in megabytes. Implies --si.




                  Note: A kilobyte (kB) is 1000 Bytes.






                  share|improve this answer















                  From a terminal you should be able to use:



                  free -m


                  From man page:




                  -m, --mebi Display the amount of memory in mebibytes.



                  --mega Display the amount of memory in megabytes. Implies --si.




                  Note: A kilobyte (kB) is 1000 Bytes.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 4 hours ago









                  Pablo Bianchi

                  2,4551530




                  2,4551530










                  answered Mar 31 '17 at 18:35









                  FCTWFCTW

                  62169




                  62169

























                      37














                      Open terminal.



                      Run "free" to see RAM information in KB.



                      Run "free -m" to see RAM information in MB.



                      Run "free -g" to see RAM information in GB.






                      share|improve this answer






























                        37














                        Open terminal.



                        Run "free" to see RAM information in KB.



                        Run "free -m" to see RAM information in MB.



                        Run "free -g" to see RAM information in GB.






                        share|improve this answer




























                          37












                          37








                          37







                          Open terminal.



                          Run "free" to see RAM information in KB.



                          Run "free -m" to see RAM information in MB.



                          Run "free -g" to see RAM information in GB.






                          share|improve this answer















                          Open terminal.



                          Run "free" to see RAM information in KB.



                          Run "free -m" to see RAM information in MB.



                          Run "free -g" to see RAM information in GB.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 4 hours ago









                          Pablo Bianchi

                          2,4551530




                          2,4551530










                          answered Apr 1 '17 at 5:02









                          VictorVictor

                          37922




                          37922























                              12














                              Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.



                              This value (and the value shown as Total in output of free -m on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.



                              To see the total amount of physical RAM installed, you can run sudo lshw -c memory which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.






                              share|improve this answer



















                              • 1





                                More useful answer..!

                                – Riken Shah
                                May 27 '18 at 13:27











                              • Then why was this more useful answer from 18 months ago, downvoted today?

                                – dobey
                                Nov 20 '18 at 13:29






                              • 1





                                I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                                – Cranky
                                Nov 21 '18 at 19:54
















                              12














                              Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.



                              This value (and the value shown as Total in output of free -m on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.



                              To see the total amount of physical RAM installed, you can run sudo lshw -c memory which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.






                              share|improve this answer



















                              • 1





                                More useful answer..!

                                – Riken Shah
                                May 27 '18 at 13:27











                              • Then why was this more useful answer from 18 months ago, downvoted today?

                                – dobey
                                Nov 20 '18 at 13:29






                              • 1





                                I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                                – Cranky
                                Nov 21 '18 at 19:54














                              12












                              12








                              12







                              Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.



                              This value (and the value shown as Total in output of free -m on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.



                              To see the total amount of physical RAM installed, you can run sudo lshw -c memory which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.






                              share|improve this answer













                              Click on the power/gear icon (System Menu) in the top right corner of the screen and choose About This Computer. You will see the total available memory in GiB. Multiply the value by 1024 to get the size in MiB.



                              This value (and the value shown as Total in output of free -m on the console), is total physical RAM size, minus the amount assigned to the internal GPU, if your computer has one.



                              To see the total amount of physical RAM installed, you can run sudo lshw -c memory which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by 1024 to get the MiB value.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Mar 31 '17 at 18:51









                              dobeydobey

                              32.6k33586




                              32.6k33586








                              • 1





                                More useful answer..!

                                – Riken Shah
                                May 27 '18 at 13:27











                              • Then why was this more useful answer from 18 months ago, downvoted today?

                                – dobey
                                Nov 20 '18 at 13:29






                              • 1





                                I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                                – Cranky
                                Nov 21 '18 at 19:54














                              • 1





                                More useful answer..!

                                – Riken Shah
                                May 27 '18 at 13:27











                              • Then why was this more useful answer from 18 months ago, downvoted today?

                                – dobey
                                Nov 20 '18 at 13:29






                              • 1





                                I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                                – Cranky
                                Nov 21 '18 at 19:54








                              1




                              1





                              More useful answer..!

                              – Riken Shah
                              May 27 '18 at 13:27





                              More useful answer..!

                              – Riken Shah
                              May 27 '18 at 13:27













                              Then why was this more useful answer from 18 months ago, downvoted today?

                              – dobey
                              Nov 20 '18 at 13:29





                              Then why was this more useful answer from 18 months ago, downvoted today?

                              – dobey
                              Nov 20 '18 at 13:29




                              1




                              1





                              I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                              – Cranky
                              Nov 21 '18 at 19:54





                              I'm going to upvote this just for the "sudo lshw -c memory" part, which is exactly what I needed..

                              – Cranky
                              Nov 21 '18 at 19:54











                              9














                              Physical memory available in MB:



                              echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              Virtual memory available in MB:



                              echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              ..or use /proc/meminfo:



                              grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'


                              To see the physical chip information, you can use dmidecode to extract the DMI type 17 (Memory Device) tagged information:



                              sudo dmidecode -t 17


                              this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory which give a little bit more information.






                              share|improve this answer


























                              • With 1024 seems to be a mebibyte (MiB), no MB.

                                – Pablo Bianchi
                                3 hours ago
















                              9














                              Physical memory available in MB:



                              echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              Virtual memory available in MB:



                              echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              ..or use /proc/meminfo:



                              grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'


                              To see the physical chip information, you can use dmidecode to extract the DMI type 17 (Memory Device) tagged information:



                              sudo dmidecode -t 17


                              this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory which give a little bit more information.






                              share|improve this answer


























                              • With 1024 seems to be a mebibyte (MiB), no MB.

                                – Pablo Bianchi
                                3 hours ago














                              9












                              9








                              9







                              Physical memory available in MB:



                              echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              Virtual memory available in MB:



                              echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              ..or use /proc/meminfo:



                              grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'


                              To see the physical chip information, you can use dmidecode to extract the DMI type 17 (Memory Device) tagged information:



                              sudo dmidecode -t 17


                              this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory which give a little bit more information.






                              share|improve this answer















                              Physical memory available in MB:



                              echo $(($(getconf _PHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              Virtual memory available in MB:



                              echo $(($(getconf _AVPHYS_PAGES) * $(getconf PAGE_SIZE) / (1024 * 1024)))


                              ..or use /proc/meminfo:



                              grep MemTotal /proc/meminfo | awk '{print $2 / 1024}'


                              To see the physical chip information, you can use dmidecode to extract the DMI type 17 (Memory Device) tagged information:



                              sudo dmidecode -t 17


                              this informs you about all the memory devices installed, including the type, speed, manufacturer, form factor and a lot more besides. Yo also have sudo dmidecode -t memory which give a little bit more information.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited 3 hours ago









                              Pablo Bianchi

                              2,4551530




                              2,4551530










                              answered Mar 31 '17 at 19:15









                              Colin Ian KingColin Ian King

                              12.1k13747




                              12.1k13747













                              • With 1024 seems to be a mebibyte (MiB), no MB.

                                – Pablo Bianchi
                                3 hours ago



















                              • With 1024 seems to be a mebibyte (MiB), no MB.

                                – Pablo Bianchi
                                3 hours ago

















                              With 1024 seems to be a mebibyte (MiB), no MB.

                              – Pablo Bianchi
                              3 hours ago





                              With 1024 seems to be a mebibyte (MiB), no MB.

                              – Pablo Bianchi
                              3 hours ago


















                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f898941%2fhow-to-check-ram-size%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              GameSpot

                              日野市

                              Tu-95轟炸機