Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to display swap information on Linux?

Answer:

With the following command

# cat /proc/swaps

Filename           Type            Size    Used    Priority
/dev/md4          partition       4192824 224     -1

It will display the current swap information.

  1. Display the current hard limit of my Linux server
  2. Create a swap partition using LVM
  3. Display physical memory size in Linux
  4. Reduce the chance of using swap if you have enough memory
  5. Display current login user information

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>