How do I view swap files in Linux?

Daniel William

New member
How do I view swap files in Linux?
Answer
HowTo: Check Swap Usage and Utilization in Linux
  1. Option #1: /proc/swaps file. Type the following command to see total and used swap size:
  2. Option #2: swapon command. Type the following command to show swap usage summary by device.
  3. Option #3: free command. Use the free command as follows:
  4. Option #4: vmstat command.
  5. Option #5: top/atop/htop command.
 

Tìm kiếm

Back
Top