Linux command
chruby 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List available Ruby versions
chruby
Switch to specific Ruby
chruby ruby-3.2.0
Switch to system Ruby
chruby system
Show current Ruby
chruby | grep '\*'
说明
chruby switches between multiple Ruby versions by modifying PATH and related environment variables. Lightweight alternative to RVM and rbenv. Just 90 lines of shell script. Works with rubies installed by ruby-install or built from source.
FAQ
What is the chruby command used for?
chruby switches between multiple Ruby versions by modifying PATH and related environment variables. Lightweight alternative to RVM and rbenv. Just 90 lines of shell script. Works with rubies installed by ruby-install or built from source.
How do I run a basic chruby example?
Run `chruby` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more chruby examples?
This page includes 4 examples for chruby, plus related commands for nearby Linux tasks.