![](/rp/kFAqShRrnkQMbH6NYLBYoJ3lq9s.png)
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.
What do the scripts in /etc/profile.d do? - Unix & Linux Stack …
@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.
Ash profile/configuration file - Unix & Linux Stack Exchange
2014年12月26日 · So if you set that somehow (Maybe in your ~/.profile, or some other 'overarching' environment control), then any future forked shells will run that script. Very handy for non-login cases. Example: In your .profile, something like:
Setting PATH vs. exporting PATH in ~/.bash_profile
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 .
bash - How to correctly add a path to PATH? - Unix & Linux Stack …
2016年2月21日 · 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.)
计算机里面的Profile怎么翻译比较好? - 知乎
具体说就是User profile, 以及程序运行中的sample profile,词典上一般译成剖面,轮廓。感觉这些翻译的
Change shell from ksh to bash and change prompt in .profile
2016年9月8日 · Stack Exchange Network. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to permanently set environmental variables
2014年2月28日 · To do if for all users/shells, depending on distro you could use /etc/environment or /etc/profile.Creating a new file in /etc/profile.d may be preferable if it exists, as it will be less likely to conflict with updates made by the packaging system.
What is the difference between .bash_profile and .bash_login?
Therefore, .bash_profile borrows its name from the ksh shell's .profile file, while .bash_login borrows its name from the csh shell's .login file. The user uses .bash_profile or .bash_login depending on from what other family of shells ( ksh -like shells or csh -like shells) they are migrating to bash from.
validity of imposing tmux on users - Unix & Linux Stack Exchange
2023年12月4日 · So the reality of /etc/profile.d/tmux.sh causes tmux to run whenever a user does an ssh connection into Linux and also any open terminal window within a VNC session, and then the tmux.conf settings causes a password prompt to happen within any tmux session after 15 minutes of not entering a character in that tmux'd window.