I just installed Rust by curl https://sh.rustup.rs -sSf | sh and rebooted my system. But I cannot access cargo, rustc.. on my terminal.
My .profile file contains the following line
export PATH="$HOME/.cargo/bin:$PATH"
I'm using Xfce 4.12 as my desktop env.
I can guess this happens because, my PATH variable is not working .. ?
So, my question is, .profile not work in Xfce(I'm very much new to Xfce) as with Gnome? and how should I resolve this.
Thank you in advance.
~/.profileis not read if~/.bashr_profileor~/.bash_loginexists so check those two files - if you have them, they're probably the reason why the file is not read and doesn't setPATHenv variable. Otherwise, it might be due to how your shell is invoked. Try starting bash withbash --logincommand. It reads~/.profilethen so you should havePATHvariable modified. If you haven't closed the terminal since you installedcargo(immediately trying to callcargoafter install ) , then try to logout and log back in – Sergiy Kolodyazhnyy Mar 23 '19 at 05:59bash --login. and only withbash --loginAs soon as exited and reopened the terminal they were gone. I'm not sure why this happens. – Amirtha Wiiliam Mar 23 '19 at 06:56~/.profilefile and place it into~/.bashrcat the very end of the file. After that whenever you open new terminal tab or window, you will have the properPATHvalue available. – Sergiy Kolodyazhnyy Mar 23 '19 at 07:03