Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
155
rated 0 times [  155] [ 0]  / answers: 1 / hits: 171361  / 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
confiorc questions
Fri, Jul 23, 21, 18:21, 3 Years ago
Tue, Mar 22, 22, 14:25, 2 Years ago
Thu, Feb 17, 22, 22:43, 2 Years ago
;