Warm tip: This article is reproduced from serverfault.com, please click

bash-如何重新加载.bashrc设置而不注销并重新登录?

(bash - How to reload .bashrc settings without logging out and back in again?)

发布于 2010-03-25 17:58:36

如果对进行更改.bashrc,如何在不注销并重新登录的情况下重新加载它?

Questioner
Jed Daniels
Viewed
0
2,490 2020-10-21 22:18:32

你可以输入长格式命令:

source ~/.bashrc

或者你可以使用命令的较短版本:

. ~/.bashrc