Booting RHEL in safe mode
Introduction
If something has gone wrong, you can try to solve your problems in recovery mode
During boot, select
Advanced options for RHEL
Then select
root
and run the commands
mount -o remount, rw /
mount -a
cd /home
Now you are in your own home directory, where you can look for your user and the files you have recently edited.
Article author: Andrei Olegovich