Rustup: command not found

I am using Ubuntu Budgie 22.04 and I have installed rustup successfully using:
curl https://sh.rustup.rs -sSf | sh
I have restarted my PC to allow Rust to be added to my system PATH automatically and I have even written, compiled && run the hello, world! program with success, but while trying to retrieve the docs using rustup doc the terminal gives me an error message:
rustup: command not found
How do I install the rustup command?

Check your path printenv PATH
Should contain .cargo/bin
ls -lh ~/.cargo/bin/rustup should show the program.

btw: restarts should not be required for this; in general opening a new shell or, worst case, logging out / logging back in should resolve path issues

Thanks, I didn't know this.

Thanks, your guidance helped me tackle the challenge

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.