Anil Kumar
Anil Kumar

Reputation: 13

Reload /etc/profile in ksh shell

I have updated /etc/profile on an AIX host and would like to reload in the same session without logging off.

Any idea how can we do it? I tried source /etc/profile, but it doesn't work in ksh (it does work in bash).

Upvotes: 1

Views: 443

Answers (1)

Jeff Schaller
Jeff Schaller

Reputation: 2558

If you're getting the message "/usr/bin/ksh: source: not found", you're probably using an older ksh shell that doesn't have the source command. The way to source a file in with your older ksh shell is (as Lorinczy commented):

. /etc/profile

Upvotes: 1

Related Questions