.BASH_PROFILE 文件扩展名

Bash Interactive Login Shell File

开发者 The GNU Project
受欢迎程度
3.7  |  30 
 

什么是 BASH_PROFILE 文件?

Shell file used by Mac OS X and Linux terminal programs; stores setup instructions for the shell environment, such as environment variables and default scripts to execute; commonly used for setting user command prompt preferences as well as file system paths for directories and program binaries.

更多信息

BASH_PROFILE files are automatically run for interactive login shells. In other words, they are executed after a user logs in with their login credentials, or when a new terminal window is created. This differs from .BASHRC files, which are run only when Bash shell scripts are executed within a terminal that is already open.

Since users often want to run both BASH_PROFILE and BASHRC files upon login, they often include the following segment in the BASH_PROFILE file, which forces the BASHRC file to be run when only the BASH_PROFILE file is executed:

if [ -f ~/.bashrc ]. Then
  source ~/.bashrc
fi

注: BASH_PROFILE files are hidden in a user's home directory and do not contain a filename prefix. They always use the filename .bash_profile.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开或引用 BASH_PROFILE 文件的程序

Mac
操作系统自带
免费
Linux
免费
分类: 系统
更新时间: 2010-08-18

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Bash Interactive Login Shell 文件格式和 Mac and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们