如何在不注销并重新登录的情况下重新加载 .bashrc 设置? [英] How to reload .bashrc settings without logging out and back in again?
本文介绍了如何在不注销并重新登录的情况下重新加载 .bashrc 设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我对 .bashrc
进行了更改,如何在不注销和重新登录的情况下重新加载它?
解决方案
可以输入长格式命令:
source ~/.bashrc
或者您可以使用命令的较短版本:
<预><代码>.~/.bashrcIf I make changes to .bashrc
, how do I reload it without logging out and back in?
解决方案
You can enter the long form command:
source ~/.bashrc
or you can use the shorter version of the command:
. ~/.bashrc
这篇关于如何在不注销并重新登录的情况下重新加载 .bashrc 设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文