Solved

.profile

Posted on 1998-06-06
3
718 Views
Last Modified: 2010-04-21
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
Comment
Question by:zhxin
3 Comments
 
LVL 2

Accepted Solution

by:
gormenghast earned 50 total points
ID: 2007428
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
 

Expert Comment

by:texas050398
ID: 2007429
The .profile also works under korn shell. More info would be appreciated.
0
 
LVL 3

Expert Comment

by:braveheart
ID: 2007430
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now