非交互式的 shell 如何使 .bashrc 生效呢?
在 Ubuntu 服务器上,当你通过 SSH 登录时,默认情况下 .bashrc 文件会在每次启动交互式 shell 时自动加载。但是,如果你是在启动服务或者以非交互方式运行命令
2025-02-12