Views:
12,957
Votes: 4
Tags:
18.04
environment-variables
gnome-session
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1102976
Title:
Messed up my PATH environment variable and can't login to desktop
ID:
/2018/12/19/Messed-up-my-PATH-environment-variable-and-can_t-login-to-desktop
Created:
December 19, 2018
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Enter this command:
nano /etc/environment
Make the first line read:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:"
Press Ctrl+O to save the file.
Press Ctrl+X to exit.
Type reboot
to restart your computer.