Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • Thanks a lot for your answer, the problem is I do not find PATH in this file, I find still PATH in a .profile file
    – Makoto
    Commented Dec 20, 2020 at 9:52
  • What does grep ~/.bashrc show? Commented Dec 20, 2020 at 9:52
  • 1
    @Makoto: remove that if [ -d "$HOME/bin" ] ; then and the next two lines and add this at the end of the file: PATH="$HOME/Android/Sdk:$PATH" and then su -l $(whoami). BTW, what are these * for? Commented Dec 20, 2020 at 12:12
  • 1
    @Makoto: how do you know you have /home/makoto/Android/Sdk in PATH? Have you logged out and logged in again or have you sourced .profile? su -l $(whoami) asks for you user's password. Commented Dec 20, 2020 at 12:33
  • 1
    If you got nothing that's ok - you just started a new shell with updated PATH. That's what you wanted to achieve. Commented Dec 20, 2020 at 12:39