如何重新加载.bashrc设置而不注销并重新登录? [英] How to reload .bashrc settings without logging out and back in again?

查看:48
本文介绍了如何重新加载.bashrc设置而不注销并重新登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

If 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆