How to Show the SWAP Partiton and Memory Size on UBUNTU?

Posted on 2012-03-27
Last Modified: 2012-03-28
i am NOT able to show or list teh SWAP parition when I use    df  -h  what would be the command and switches to show it on Ubuntu 10.40 ?

Secondly, how can I show the memory size RAM on the server ?

Question by:mshamsan

Assisted Solution

by:Milind Koyande
Milind Koyande earned 250 total points
ID: 37775292
try command

sudo free -m

Open in new window


Author Comment

ID: 37775443
so to shwo the swap      sudo free -m    OR   sudo free -g


to show the memroy          cat   /proc/meminfo


Accepted Solution

1ly4me earned 250 total points
ID: 37775472
#cat /proc/swaps
#cat /pro/meminfo

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 54
linux date/time setting via python 6 55
need to clone a white copy of a linux device 2 75
Install Predefined Certificate on Ubunto 4 13
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now