Booting Debian in recovery mode
Introduction
If something went wrong, you can try to solve your problems by booting in recovery
Booting
During boot, choose
Advanced options for Debian
Then choose
root
and run the commands
mount -o remount, rw /
mount -a
cd /home
Now you are in your own home directory and can look there for your user and the files that you edited recently.
Article author: Andrei Olegovich