git clone --branch master --depth 1 https://gh-proxy.com/https://github.com/nelvko/clash-for-linux-install.git 
&& cd clash-for-linux-install 
&& sudo bash install.sh
$ clashctl
Usage:
    clash     COMMAND [OPTION]
    
Commands:
    on                   开启代理
    off                  关闭代理
    ui                   面板地址
    status               内核状况
    proxy    [on|off]    系统代理
    tun      [on|off]    Tun 模式
    mixin    [-e|-r]     Mixin 配置
    secret   [SECRET]    Web 密钥
    update   [auto|log]  更新订阅

取消开机自启动sudo systemctl disable clash;如果是早期安装的可以试试sudo systemctl disable "$BIN_KERNEL_NAME"

取消新建窗口自动开启代理
修改~/.bashrc
source /opt/clash/script/common.sh && source /opt/clash/script/clashctl.sh && watch_proxy改为
source /opt/clash/script/common.sh && source /opt/clash/script/clashctl.sh

Last modification:August 21, 2025
如果觉得我的文章对你有用,请随意赞赏