033-Unit 9 Configuring the bash Shell
2009-08-10 22:09
344 查看
Local variables , Aliases and functions , the set command
Variables : local and environment
set command display all variables
env command display all environment variables
echo $xxx
Common Local Variables : HISTFILESIZE , COLUMNS , LINES , PS1
Aliases : alias lf='ls -laF' ; alias see all set aliases
set command : set -o vi/noclobber
Environment Variables : export variable name ; export xx=1
unset variable name 删除变量
Common Environment Variables : HOME , LANG 语言 , PWD 当前工作路径
TERM 终端类型(terminal type)
reset command
PATH 系统预设路径,用":"分隔
which command
shell startup scripts
login/non-login shell
Start Script Order of Execution : login shell : /etc/profile -> /etc/profile.d/*.sh -> ~/.bash_profile -> ~/.bashrc ->/etc/bashrc ;
non-login shell : ~/.bashrc ->/etc/bashrc -> /etc/profile.d/*.sh ;
/etc/profile : PATH , USER , LOGNAME , MAIL , HOSTNAME , HISTSIZE , INPUTRC
/etc/profile.d/ : set up variables and run initialization procedures
~/.bash_profile and ~/.bashrc :
~/.bash_logout : execute when exiting a login shell
Variables : local and environment
set command display all variables
env command display all environment variables
echo $xxx
Common Local Variables : HISTFILESIZE , COLUMNS , LINES , PS1
Aliases : alias lf='ls -laF' ; alias see all set aliases
set command : set -o vi/noclobber
Environment Variables : export variable name ; export xx=1
unset variable name 删除变量
Common Environment Variables : HOME , LANG 语言 , PWD 当前工作路径
TERM 终端类型(terminal type)
reset command
PATH 系统预设路径,用":"分隔
which command
shell startup scripts
login/non-login shell
Start Script Order of Execution : login shell : /etc/profile -> /etc/profile.d/*.sh -> ~/.bash_profile -> ~/.bashrc ->/etc/bashrc ;
non-login shell : ~/.bashrc ->/etc/bashrc -> /etc/profile.d/*.sh ;
/etc/profile : PATH , USER , LOGNAME , MAIL , HOSTNAME , HISTSIZE , INPUTRC
/etc/profile.d/ : set up variables and run initialization procedures
~/.bash_profile and ~/.bashrc :
~/.bash_logout : execute when exiting a login shell
相关文章推荐
- RH033 Unit 12 Configuring the Bash Shell
- RH033 Unit12 Configuring the Bash Shell
- RH033 Unit12 Configuring the Bash Shell
- RH033 Unit 6 Using the bash Shell
- RH033读书笔记(11)-Lab 12 Configuring the bash Shell
- RH033 Unit6 Using the bash shell
- RH033 Unit6 Using the bash shell
- How to Cross Compile the Bash shell for Android 1.5 (为Android平台编译Bash shell)
- How to Cross Compile the Bash shell for Android 1.5
- [bash] Some Tips for the Bourne Again Shell
- 【Ubuntu 笔记】翻译 The Bash Shell Startup Files
- Bash/KSH/SH Shell: Find The Length Of a String On a UNIX, Linux, BSD, and OS X
- 033-Unit 11 Advanced Uses of the vi Editors
- rche 033----unit 11 -advanced uses of the vi editors
- 033-Unit 8 The Linux Filesystem In-Depth
- the file command and bash shell
- Python function calls from the bash shell or dos prompt
- A quick guide to writing scripts using the bash shell
- RHCE笔记整理-RH033.Unit4-The Bash shell
- Bash - the shell (1)