Linux - How to reload etc profile without restart, Reload file without server reboot

How to reload etc profile without restart


Today I came across a situation to edit the user profile on my linux dev machine. I have added few alias in my server into file /etc/profile. Now I have a requirement like I want my changes has to get effect without server reboot.

Most of us would know about sysctl command, which is used to reload kernal parameter changes. source command is used to reload the file and update the changes with out restaring the server immediately.

 # vi /etc/profile
   
   alias vi=\'vim\'


Reload file without restart
 # source /etc/profile 

The topic on Linux - How to reload etc profile without restart is posted by - Math

Hope you have enjoyed, Linux - How to reload etc profile without restartThanks for your time

Tech Bluff