Solved

.profile

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 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

18 Experts available now in Live!

Get 1:1 Help Now