← 返回命令列表

Linux command

rustup-which 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Find cargo path

rustup which cargo

Find rustc path

rustup which rustc

Find tool in specific toolchain

rustup which --toolchain nightly rustfmt

说明

rustup which displays the path to Rust tools. Shows which binary would be executed for a given command. Useful for debugging toolchain issues.

参数

--toolchain _name_
Search in specific toolchain.

FAQ

What is the rustup-which command used for?

rustup which displays the path to Rust tools. Shows which binary would be executed for a given command. Useful for debugging toolchain issues.

How do I run a basic rustup-which example?

Run `rustup which cargo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --toolchain _name_ do in rustup-which?

Search in specific toolchain.