If you have already made a swap file during setup of ubuntu, would the commands mkswap and swapon add to it or it replaces it? Is there a way to add to it rather than replace it? Is there a way to do it while you are not sudoer?
create a partition and make it a swap partition with
add a corresponding line in the file
/etc/fstabto make it active at boot. You can use
sudo swapon -a
to make all swap devices (files and partitions in
You can also create a second swapfile (with another name), or maybe better, replace the current swapfile with a new one.
But first you should consider, if you really need more swap and in that case why and how much.
Managing swap is a typical task, where you need