linux:配置文件的符号链接
linux: symlink for profile
我看到有人使用 Linux 在他的 /home
中设置这些符号链接,如下所示:
.bashrc -> .profile
.bashrc_profile -> .profile
我不知道他为什么要这样设置配置文件。
.profile 被原始的 Bourne shell (sh) 使用。 bash shell 通常会忽略 .profile 文件并根据您的系统查找 .bashrc 或 .bashrc_profile。通过将所有这些文件链接到 .profile,您可以确保 sh 和 bash 具有相同的配置。
我看到有人使用 Linux 在他的 /home
中设置这些符号链接,如下所示:
.bashrc -> .profile
.bashrc_profile -> .profile
我不知道他为什么要这样设置配置文件。
.profile 被原始的 Bourne shell (sh) 使用。 bash shell 通常会忽略 .profile 文件并根据您的系统查找 .bashrc 或 .bashrc_profile。通过将所有这些文件链接到 .profile,您可以确保 sh 和 bash 具有相同的配置。