Linux Environment Variables-basic
来源:互联网 发布:成发待遇知乎 编辑:程序博客网 时间:2024/04/30 11:41
1)Some examples of build-in shell variables:
PS1: defines the shell's command-line prompt.
HOME: defines the home directory for a user.
PATH: defines a list of directories to search through when looking for a command to execute.
2)Commands
/*list */
env: list the current varues of all environment variables.
echo $variable_name : list a specific variable.
/*example */
-> echo $PS1
$(ppwd /l)/u@/h:/w>
/*Setting */
PATH=$PATH:$HOME/bin /*changing PATH variable to include personal directory. */
/*example */
code=$HOME/projects/src/ipudp
cd $code
/* Note: the scope(visibility) is limited to the current shell. */
/* use export to make the setting global. */
export code=$HOME/projects/src/ipudp
- Linux Environment Variables-basic
- Environment Variables
- environment variables
- Environment Variables
- Qt for Embedded Linux Environment Variables
- Linux: 3 methods to set environment variables
- Qt for Embedded Linux Environment Variables
- C获取linux系统环境变量方法(Environment Variables)
- 7.9.环境变量(Environment Variables)
- Persistent environment variables
- QTP Environment Variables
- QML environment variables
- Environment Variables impi
- Launch Arguments & Environment Variables
- Windows Environment Variables
- CGI Environment Variables
- Mac Environment Variables
- Get windows environment variables
- drawable文件夹说明
- OpenGL函数参考(中文版)
- J2EE性能分析篇 JVM参数对J2EE性能优化的影响
- 文件系统初识
- Altium designer DRC规则中英文对照
- Linux Environment Variables-basic
- bl_ctrl 制作笔记
- 缓冲区首部结构
- Western media to buy arms in South East Asia due to China absurd _7093
- SQL 贷款毕业生信息管理系统数据库设计
- 在VC中编写程序自动查找SQLServer2000连接字符串
- Important Concepts(重要概念)
- 安装wxHaskell
- !important 什么意思?