Restarting current shell for new installed rust

Hello!
can someone explain about this, i'm still bit unfamiliar on this kind of stuff.

image

As I remember when I installed Rust, you have to close your terminal and open another. Tell me if this worked.

You have a variable in your shell called PATH. The PATH variable lets your shell know the path to binary programs you might want to run from the command line. https://en.wikipedia.org/wiki/PATH_(variable)

When you install rust it puts the binaries in a location that is owned by the user and this directory is not in your PATH (Most other system binaries are in system directories.)

Rust modifies your shell configuration files to modify your PATH to include the directory where the rust binaries are installed. If you reload your shell configuration, it will update your PATH. A simple way to do that is to log out and log in again.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.