Using the Korn Shell

.profile login script

To set up the shell automatically every time a user logs in, create a .profile file in the user's home directory. The commands in this file are executed when the shell starts up.

Testing changes to the .profile file

Changes to the .profile file can be tested by executing the script in the shell with the . (dot) command:

. ~/.profile

Next: Prompt 

Home > Computers > Operating Systems > UNIX > Shell > Korn > .profile

Viewing mobile website page. Switch to WML or Full HTML