by Sai gowtham

How to reload a .bashrc in Terminal

In this tutorial, we are going to learn about how to reload a .bashrc file from the terminal after making a changes to it.

Reloading the .bashrc file

Use the following command to reload a .bashrc file directly from the current terminal without closing or opening a new one.

. ~/.bashrc

The dot (.) operator execute commands from the file in the current environment.

Similarly, you can also use the source command.

source ~/.bashrc

Top Udemy Courses

JavaScript - The Complete Guide 2020 (Beginner + Advanced)
JavaScript - The Complete Guide 2020 (Beginner + Advanced)
45,614 students enrolled
52 hours of video content
View Course
React - The Complete Guide (incl Hooks, React Router, Redux)
React - The Complete Guide (incl Hooks, React Router, Redux)
284,472 students enrolled
40 hours of video content
View Course
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
Vue - The Complete Guide (w/ Router, Vuex, Composition API)
130,921 students enrolled
48.5 hours of video content
View Course