Hello!
To open /etc/fstab as root into the default editor
# First, create a file sudo dd if=/dev/zero of=/path/swap.img bs=2048 count=1M #Format it sudo mkswap /path/swap.img # Open and add an entry to /etc/fstab file like this. As root. Save it. /path/swap.img swap swap sw 0 0 # Make it active sudo swapon /path/swap.imgThis will create 2GB swap file.
To open /etc/fstab as root into the default editor
sudo xdg-open /etc/fstab