I've modified the .profile file of a user. It contains some new environement vars, how can i reload this file without restarting the server ?
The .profile file is only charged when the system boots or in any other case ??
Thanks in advance.
Normally the file gets parsed on startup of a new shell (not at system boot!). So you can just start another shell and your changes to ~/.profile will be present. However, you can also "source" the file in the current shell session:
source ~/.profile
Note that source is just human readable shortcut for the . command. So, you can also issue
. ~/.profile
Thanks to @chepner for explaining that source is an alias of . and not vise versa.