如何为每个人环境变量在我的linux系统? [英] How to set environment variable for everyone under my linux system?

查看:101
本文介绍了如何为每个人环境变量在我的linux系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能有一定的设置,是普遍的为我的所有用户?

Can I have certain settings that are universal for all my users?

推荐答案

除了 / etc / profile文件哪些其他人所说的,有些Linux系统现在使用目录 /etc/profile.d中/ ;在没有任何 .SH 文件将由将采购/ etc / profile文件。这是稍微整洁,让您的自定义环境的东西,在这些文件中,而不是仅仅修改 / etc / profile文件

As well as /etc/profile which others have mentioned, some Linux systems now use a directory /etc/profile.d/; any .sh files in there will be sourced by /etc/profile. It's slightly neater to keep your custom environment stuff in these files than to just edit /etc/profile.

这篇关于如何为每个人环境变量在我的linux系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆