Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
155
rated 0 times [  155] [ 0]  / answers: 1 / hits: 171362  / 2 Years ago, mon, december 20, 2021, 1:21:43

Is it possible to coerce bash to reload the .profile file without logging out and back in again?


More From » bash

 Answers
1

This should work for the current terminal:



. ~/.profile


. is a bash builtin and a synonym for source, see man bash:




. filename [arguments]

source filename [arguments]

     Read and execute commands from filename in the current shell environment (…).



[#43687] Tuesday, December 21, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
confiorc

Total Points: 42
Total Questions: 121
Total Answers: 123

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
;