关于bash启动脚本/etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc的区别
来源:互联网 发布:js 计数器 编辑:程序博客网 时间:2024/05/22 03:15
/bin/bash这个命令解释程序(后面简称shell)使用了一系列启动文件来建立一个运行环境:
/etc/profile 和 ~/.bash_profile 是在启动一个交互登陆shell的时候被调用,不过前者任何用户都会执行
/etc/bashrc 和 ~/.bashrc 是在一个交互的非登陆shell启动的时候被调用。同上
~/.bash_logout 在用户注销登陆的时候被读取
一个交互的登陆shell会在 /bin/login 成功登陆之后运行。一个交互的非登陆shell是通过命令行来运行的,如[prompt]$/bin/bash。一般一个非交互的shell出现在运行 shell脚本的时候。之所以叫非交互的shell,是因为它不在命令行上等待输入而只是执行脚本程序。
启动最后执行
/etc/rc.local
- 关于bash启动脚本/etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc的区别
- ~/.bashrc 和 ~/.bash_profile 和 /etc/bashrc 和 /etc/profile 脚本的区别和启动加载顺序
- /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc 区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 的区别
- Linux下/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc的区别
- /etc/profile、/etc/bashrc、.bash_profile和.bashrc的区别
- /etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc,~/.bash_logout的区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 四文件的区别
- /etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc ~/.bash_logout 说明及区别
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 比较
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- /etc/profile,/etc/bashrc,~/.bash_profile,~/.bashrc
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc
- Linux /etc/profile,~/.bash_profile,~/.bashrc,/etc/bashrc
- Animating Pie Slices Using a Custom CALayer
- 设置程序以管理员模式运行
- Process.start() is failed on run with special account...why?
- C++中参数传递问题
- pl/sql存储过程loop死循环
- 关于bash启动脚本/etc/profile /etc/bashrc ~/.bash_profile ~/.bashrc的区别
- 跟我一起学Oracle 11g【1】----基础回顾
- 领导力大挑战
- 项目设置player设置里设置分辨率 unity输出竖屏等
- 任意宽度灰度BMP图像读写 V1
- ios 编译静态库
- EPOLL_CTL_DISABLE and multithreaded applications
- FileStream和StreamWriter区别
- 1.1.1脚本元素