由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - setting up bash
相关主题
bash中比较无聊的功能如何使terminal里面总是显示一行当前目录?
哪位大牛来普及一下 linux 下面的各种环境变量以及设置有人用boybu 么?
Newbie question新手问个shell的问题
找不到命令的路径如何
请总结一下:如何实现自启动 autostart?搞一个只有terminal纯文本的live cd
初学linux,好几个小问题。.bash_profile not run when opening a terminal from desktop
请教如何更改启动时的默认目录?ubuntu无法上下箭头呼出历史命令
gedit can't display chinese..请教一个linux下面matlab的问题
相关话题的讨论汇总
话题: bash话题: set话题: profile话题: path
进入Linux版参与讨论
1 (共1页)
i*****s
发帖数: 438
1
How to set up environment variables (PATH, etc) for
interactive and non-interactive sessions?
If I set PATH in .bash_profile, is it interactive
or non-interactive?
How many such files can affect the setting?
.profile? .bash_profile? .bashrc? .bash_login? what else?
When all of them are present, which one got to run first?
Which one should be used?
Thanks!
v*****r
发帖数: 1119
2
"Invoation" section of the man page of bash command specifies clearly under
what condition and sequence those files are invoked depending on whether it
is a login shell or interactive shell.
Regarding where to set Environment/Shell variables in Bash, I posted one
general guideline before:
1. Set all environment variables in .bash_profile (assuming bash is your
login shell. It will be .profile if you are ksh fan like me).
2. Set all shell variables to .bashrc.
3. As a general rule, always call .b
i*****s
发帖数: 438
3

under
whether it
one
your
should
Thank you for the advice, I noticed, however, after logging in GUI
interface of GNOME, when I click on the terminal icon,
LD_LIBRARY_PATH is not set. It will be set if ssh to the host.

【在 v*****r 的大作中提到】
: "Invoation" section of the man page of bash command specifies clearly under
: what condition and sequence those files are invoked depending on whether it
: is a login shell or interactive shell.
: Regarding where to set Environment/Shell variables in Bash, I posted one
: general guideline before:
: 1. Set all environment variables in .bash_profile (assuming bash is your
: login shell. It will be .profile if you are ksh fan like me).
: 2. Set all shell variables to .bashrc.
: 3. As a general rule, always call .b

1 (共1页)
进入Linux版参与讨论
相关主题
请教一个linux下面matlab的问题请总结一下:如何实现自启动 autostart?
不用安装的trash bin?初学linux,好几个小问题。
问一个 remote terminal 的Shell 问题请教如何更改启动时的默认目录?
新手问问题,在Mac里用linuxgedit can't display chinese..
bash中比较无聊的功能如何使terminal里面总是显示一行当前目录?
哪位大牛来普及一下 linux 下面的各种环境变量以及设置有人用boybu 么?
Newbie question新手问个shell的问题
找不到命令的路径如何
相关话题的讨论汇总
话题: bash话题: set话题: profile话题: path