after I powered my system on I was stuck on a login loop. After I logged in by terminal many of the commands like 'ls, sudo, ...' didn't work and said:

the command could not be located because '<path of the command>' is not included in the PATH environment variable

this problem is solved when I do source ~/.bashrc and source /etc/environment but I still don't know how to login

  • echo $PATH just after terminal login. After sourceing both files, sudo journalctl -x --since="-20 minutes" and read the messages
    – waltinator
    Commented Dec 27, 2019 at 20:16
  • thx i found the problem. i made a mistake in my /etc/environment. it was ANDROID_HOME=$HOME/Android/android-sdk ANDROID_SDK_HOME=$HOME/Android/android-sdk PATH=$PATH:$ANDROID_HOME/platform-tools.
    – ds1371dani
    Commented Dec 28, 2019 at 6:21


You must log in to answer this question.

Browse other questions tagged .