Sample Header Ad - 728x90

What is the difference between .shrc and .profile?

2 votes
2 answers
2379 views
I want to try out Bourne shell on FreeBSD so I am starting to set it up for my use. In .shrc, I set my prompt, enabled vi mode, set some aliases, and exported some variables. However, I see that .profile also, by default, exports some variables. It is my understanding that Bourne shell will source .profile on each startup. If so, what is the (historical) reason for having both .shrc and .profile?
Asked by Vladimir (219 rep)
May 27, 2023, 11:46 PM
Last activity: May 20, 2024, 05:52 PM