|
- What is the difference between ~ . profile and ~ . bash_profile?
The profile was the original profile configuration for the Bourne shell (a k a , sh) bash, being a Bourne compatible shell will read and use it The bash_profile on the other hand is only read by bash It is intended for commands that are incompatible with the standard Bourne shell
- bash - What is the difference between ~ . profile, ~ . bashrc, ~ . bash . . .
"profile" is a much less common suffix Define "scope" Most applications do not share configuration files with other non-related applications The one possible exception is etc profile and profile, which may be used by multiple different shells (including at least sh and bash)
- 计算机里面的Profile怎么翻译比较好? - 知乎
本质上就是一个文本文档,里面写了很多配置信息。那么“User profile”就是“用户配置文件”,“sample profile”就是“标准配置文件”或者“默认配置文件”。“User profile”一般是用户个性化设置信息,“sample profile”一般是公共的标准配置。
- Setting PATH vs. exporting PATH in ~ . bash_profile [duplicate]
Any of the ENV files first invoked by a shell such as bashrc or profile will set variable values for the life of that shell So any variables that are set and export ed within those files will maintain that export characteristic and be export ed to all child processes invoked by that shell for the life of the shell or until they are unset
- What do the scripts in etc profile. d do? - Unix Linux Stack Exchange
@AvindraGoolcharan Different distros may use different schemes for this kind of thing The profile d directory only works because its contents are sourced by etc profile, which is specified by shells such as bash as a startup file (see INVOCATION in man bash); if you edit etc profile, you can disable etc profile d
- bash - How to correctly add a path to PATH? - Unix Linux Stack Exchange
The profile file is read by login shells, so it will only take effect the next time you log in (Some systems configure terminals to read a login shell; in that case you can start a new terminal window, but the setting will take effect only for programs started via a terminal, and how to set PATH for all programs depends on the system )
- What is the purpose of . bashrc and how does it work?
Contrast bash_profile and profile which are only run at the start of a new login shell (bash -l) You choose whether a command goes in bashrc vs bash_profile depending on whether you want it to run once or for every interactive shell start
- Where should I source usr local etc profile from? . bash_profile or . . .
usr local etc profile is not a classic location and would not be sourced Many distributions have a directory etc profile d, and put code in etc profile to source the files in etc profile d If your distribution does that, the best place for your machine-specific content would be a machine-specific file in etc profile d
|
|
|