---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# dphys-swapfile

> Manage the swap file on Debian-based Linux systems.
> More information: <https://manned.org/dphys-swapfile>.

- Disable the swap file:

`dphys-swapfile swapoff`

- Enable the swap file:

`dphys-swapfile swapon`

- Create a new swap file:

`dphys-swapfile setup`
