i accidentally change my path to this
$ echo $PATH
/home/josh/snap/flutter/common/flutter/bin:/snap/bin:/snap/bin:/snap/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
how can i change that $PATH into this permanently? like this
$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
i tried every solution but when i close the terminal and open it again, the path still not change
snap
, but there are better ways than changing PATH. – pLumo Apr 05 '22 at 06:07