Solved

.profile

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

828 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