HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rustup which — Display which binary will be run for a command managed by `rustup`. Like `which`, but searches a Rus

Submitted by: @import:tldr-pages··
0
Viewed 0 times
willcommandruncliwhichrustup whichbinarydisplay

Problem

How to use the rustup which command: Display which binary will be run for a command managed by rustup. Like which, but searches a Rust toolchain instead of $PATH. More information: <https://rust-lang.github.io/rustup/>.

Solution

rustup which — Display which binary will be run for a command managed by rustup. Like which, but searches a Rust toolchain instead of $PATH. More information: <https://rust-lang.github.io/rustup/>.

Display the path to the binary in the default toolchain:
rustup which {{command}}


Display the path to the binary in the specified toolchain (see rustup help toolchain for more information):
rustup which --toolchain {{toolchain}} {{command}}

Code Snippets

Display the path to the binary in the default toolchain

rustup which {{command}}

Display the path to the binary in the specified toolchain (see `rustup help toolchain` for more information)

rustup which --toolchain {{toolchain}} {{command}}

Context

tldr-pages: common/rustup which

Revisions (0)

No revisions yet.