1. Use TTY to Regain Control (Very Useful) Even if the GUI is frozen, Linux still runs in the background. You can switch to a TTY (text console): 👉 Press: css Copy Edit Ctrl + Alt + F2 (or F3, F4... up to F6) This brings you to a black screen asking for login. Log in with your username and password, then: bash Copy Edit htop Or use: bash Copy Edit top Find the highest CPU or memory usage process, and kill it: bash Copy Edit kill -9 <PID> If you don’t have htop yet: bash Copy Edit sudo apt install htop To return to the desktop GUI after killing the offending process: 👉 Press: nginx Copy Edit Ctrl + Alt + F1 (or sometimes F7, depending on distro) 🔹 2. Hard Reset as Last Resort If TTY doesn't work (rare but possible), you can force a system reboot safely: 👉 Press: nginx Copy Edit Alt + SysRq + REISUB That’s: Alt + Print Screen (SysRq key) + type R E I S U B slowly. It safely unmounts disks and reboots — better than holding the power button. ⚙️ How to Prevent Future Fr...
Comments
Post a Comment