Where can I read about the difference between "..profile" and ".profile"?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Where can I read about the difference between "..profile" and ".profile"?
Hi
I know from reading O Riley's Classic Shell Scripting' that the .profile file is " the shells configuration file" but I am unable to find a reference to what "..profile" means. I have searched on the net, Sams Teach Yourself Unix, Unix Visual Quickstart Guide and Linux in a Nutshell. I have look through a few man pages, also.
The context is a worksheet I was given by a friend who once learnt unix by reading manuals in which the question 'what is .profile' and what is '..profile'? is asked. I don't want to be told what it is, but if someone could point me to the appropriate resource or explain how they would research it I would be very grateful.
Regards
Z
"If you build a man a fire, he will be warm for a day. But if you set a man on fire, he will be warm for a lifetime."
Reply With Quote
.profile is the hidden file in your login/home dir if you use ksh (korn shell).
bash uses .bash_profile ( and .bashrc).
I've never heard of ..profile, although in Unix '.' specifies the current dir, whereas '..' specifies the parent dir (ie one above the one you are in at anytime).
HTH
Looking at the bash man page, I can see that the .profile will be read by bash if both .bash_profile and .bash_login are missing from the home directory.
A file named ..profile isn't special in any way, but jlliagre may have been right in that it's a reference to . ./.profile which is how you source the file named .profile in the current directory. This builtin command is also documented in the bash man page. The first dot is an alias for source, The second dot is a reference to the current directory (as chrism suggested), and the third dot is the first character in the file name.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.