Difference between revisions of "Swapon"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 7: Line 7:
 
  NAME      TYPE      SIZE  USED PRIO
 
  NAME      TYPE      SIZE  USED PRIO
 
  /dev/[[dm]]-2 partition 976M 974.8M  -2
 
  /dev/[[dm]]-2 partition 976M 974.8M  -2
 +
 +
swapon --show
 +
(No output if not swap active)
  
 
* <code>cat /[[proc]]/swaps</code>
 
* <code>cat /[[proc]]/swaps</code>

Revision as of 10:21, 10 May 2020

swapon/swapoff enable/disable devices and files for paging and swapping and it is included on the mount package. http://man7.org/linux/man-pages/man8/swapon.8.html


  • swapon -s or swapon --show
swapon --show
NAME      TYPE      SIZE   USED PRIO
/dev/dm-2 partition 976M 974.8M   -2
swapon --show
(No output if not swap active)

See also

Advertising: