• If you are having problems with cut command and want to get rid of multiple spaces between words you can use M-x canonically-space-region. This will leave only one space.

  • for sudo editing a file -> C-x C-f /sudo:: then hit enter and then navigate through to find the file to edit