What is .profile in UNIX?

.profile is the shell startup file, like autoexec.bat is the startup file for DOS users; .profile will get executed whenever you login. It is used to set environment variables and shell options such as $PATH

In ksh (Unix Korn shell) .profile will be in each home directory of each user.

For example :

Leave a Reply

Your email address will not be published. Required fields are marked *