forked from colin/disk-space-report
Update README.md
This commit is contained in:
parent
2f712d05de
commit
821249b0e0
|
@ -1,3 +1,4 @@
|
||||||
|
```markdown
|
||||||
# Swap File Creation Script
|
# Swap File Creation Script
|
||||||
|
|
||||||
This script automatically creates a swap file on your system, allowing you to increase the available virtual memory. It calculates the optimal swap file size based on the available disk space, ensuring that the swap file does not exceed 30GB or 5% of the free disk space, whichever is smaller.
|
This script automatically creates a swap file on your system, allowing you to increase the available virtual memory. It calculates the optimal swap file size based on the available disk space, ensuring that the swap file does not exceed 30GB or 5% of the free disk space, whichever is smaller.
|
||||||
|
@ -30,8 +31,6 @@ To ensure the swap file is persisted across reboots, run the script with the `--
|
||||||
curl -sSL https://git.nixc.us/colin/swap-increase/raw/branch/main/swap.sh | bash -s -- --persist
|
curl -sSL https://git.nixc.us/colin/swap-increase/raw/branch/main/swap.sh | bash -s -- --persist
|
||||||
```
|
```
|
||||||
|
|
||||||
This will automatically add the swap file to `/etc/fstab`, so it is activated after a system reboot.
|
|
||||||
|
|
||||||
## Output
|
## Output
|
||||||
|
|
||||||
The script will provide the following output:
|
The script will provide the following output:
|
||||||
|
@ -44,3 +43,4 @@ The script will provide the following output:
|
||||||
## Note
|
## Note
|
||||||
|
|
||||||
This script requires `sudo` privileges to create and activate the swap file, as well as to modify the `/etc/fstab` file for persistence across reboots when using the `--persist` flag.
|
This script requires `sudo` privileges to create and activate the swap file, as well as to modify the `/etc/fstab` file for persistence across reboots when using the `--persist` flag.
|
||||||
|
```
|
Loading…
Reference in New Issue