How can I load my .profile file without a relogin in AIX Server?
Asked
Active
Viewed 2.6k times
9
-
Related: [how do i tell gnome to reread my ~/.profile](http://unix.stackexchange.com/q/2949/12779) and [How to change environment variables without re-logging to UI?](http://unix.stackexchange.com/q/43638/12779) – Marco Oct 12 '13 at 11:31
2 Answers
14
Simply source it:
. ~/.profile
Or do a login with su -l <user>, this doesn't require a logout.
Marco
- 33,188
- 10
- 112
- 146
-
In the case of `su -l
`, the options `-`, `-l` and `--login` are equivalent. – Megidd Jun 15 '18 at 14:13