相关疑难解决方法(0)

如何在 debian 上为所有用户的非登录 shell 和登录 shell 添加系统 $PATH 的路径

我在/opt/my-program/bin 中安装了一些程序,我想为所有用户的非登录shell 和登录shell 添加/opt/my-program/bin 到系统$PATH。我该怎么办?

更改 /etc/environment 对于非登录 shell 是可以的,但它不适用于登录 shell,因为 Debian 的 /etc/profile(将由登录 shell 提供)将覆盖 /etc/environment 中指定的 $PATH。

debian path environment-variables

6
推荐指数
2
解决办法
5594
查看次数

标签 统计

debian ×1

environment-variables ×1

path ×1