Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 767
  • Last Modified:

.profile

I can not find .profile in my homedirectory,so I create a file .profile.I have to run it everytime I log in.How can I let it exected automatically?
Also how to set CDPATH ,I did it,it doesn't work.
thanks !
0
zhxin
Asked:
zhxin
1 Solution
 
gormenghastCommented:
Hi
What platform is this, Solaris etc?
What is the default shell for your login?
The .profile will be found if your shell is the bourne shell. If it is csh then the login process will look for .cshrc.
On Solaris you can restore a default .profile by copying /etc/skel/local.profile to your home directory and renaming as .profile.
With regard to CDPATH, do you wish to have the CDROM automatically mounted on insertion. I Solaris this is handled by vold which is configured by /etc/vold.conf.
0
 
texas050398Commented:
The .profile also works under korn shell. More info would be appreciated.
0
 
braveheartCommented:
If you are using an X-based window manager it is possible to open a terminal window without executing the shell initialisation files. If this is the case, make sure that you are either using the -ls option to start it, or that it has the loginShell resource set.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now