Mac Environment Variables
来源:互联网 发布:淘宝假台湾回流紫砂壶 编辑:程序博客网 时间:2024/04/28 11:31
1. Shell types:
echo $SHELL
Typing the code above, the terminal will displays the type of shell of your operating system.
C Shell or Bourne Shell :
– C: csh, tcsh
– Bourne: bash, sh, zsh
2. Two types of env files (Public and Urs)
In /etc/, there are public envs, that’s means no matter which users login this machine, they all loading this file at beginning.
- /etc/profile, we do not recommend edit this file, because this is for all users.
- /etc/bashrc, system-level env file, public also, but for bash users only.
- ~/.bash_profile, user-level env file, but it will be run only one time when user login.
- ~/.bashrc, user-level env file, each time be run when user open a new shell.
3. Applied
Using source env-file-name
to active the env file immediately.
4. Save
If there is no permission to save by using :wq
, you can easily use :w !sudo tee %
to save your work.
0 0
- Mac Environment Variables
- Setting Environment Variables in Mac OSX
- Environment Variables
- environment variables
- Environment Variables
- 7.9.环境变量(Environment Variables)
- Linux Environment Variables-basic
- Persistent environment variables
- QTP Environment Variables
- QML environment variables
- Environment Variables impi
- Launch Arguments & Environment Variables
- Windows Environment Variables
- CGI Environment Variables
- Get windows environment variables
- Launch Arguments & Environment Variables
- U-Boot Environment Variables
- environment variables - 环境变量
- VFP 连号查询
- NLP Paper Crawler
- Sum Root to Leaf Numbers
- 安装Android SDK时,点击SDK Manager.exe闪退
- [Codeforces] Round #292 (Div. 2) A、B、C
- Mac Environment Variables
- 汽油依赖
- 见好就收,赌钱问题
- dede5.7 tag 内容页相关列表风格修改
- [python]如何使用virtualenvwrapper切换不同版本的python?
- Android SDK Manager国内无法更新的解决方案
- 伞的问题--Bayesian
- Python 虚拟环境:Virtualenv
- Describe 3 kernel functions and when to use which of them