Docs: improve installation/ubuntulinux memory and swap accounting section

This commit improves the "memory and swap accounting" section with:
- a typo fix on the first line
- a missing "sudo" before "update-grub" (all the other commands on the page mention sudo)
- some example warnings that can be avoided with these parameters

Thanks