I installed Rust using rustup, but when I try to enter a Rust command like cargo or rustc in my console, the following error appears:
cargo
rustc
I installed rust by root,but my IDEA works on user,then I installed rust on user,all worked well.