Solved

.profile

Posted on 1998-06-06
3
729 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 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