A sample .profile file for Korn shell and Bash users
 

Introduction

This article presents a sample .profile file that can be used by Unix Korn shell and Bash users.

The intent of this brief article is to show some of the things that are possible with the Korn and Bash shells.  Please feel free to use this .profile at your own site, and modify it as desired!
 

Brief discussion

Listing 1 shows our sample .profile file for Korn shell and Bash users.  For Korn shell and Bash users, the .profile is the shell startup file, just like autoexec.bat is the startup file for DOS users.
 
 

 
Listing 1:    profile - a sample .profile file for Korn shell and Bash users.
 

Download the .profile file

If you'd like to download the .profile into a separate window instead of cutting-and-pasting the text from Listing 1, click here, and the text will be displayed in the next window.  Then just select File|Save As... from your browser to save the .profile to your local filesystem.