LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-04-2007, 08:35 PM   #1
zorrokan
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
Lightbulb 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
 
Old 09-04-2007, 09:11 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
.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
 
Old 09-04-2007, 11:04 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I've never seen any file with ".." at the front. Where did you see this?
 
Old 09-05-2007, 12:53 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Perhaps the OP is referring to the command
Code:
. .profile
# or
. ./.profile
(note the space between the dots) which can be used to reload the .profile file.
 
Old 09-05-2007, 01:26 AM   #5
Ghodmode
LQ Newbie
 
Registered: Feb 2007
Location: New Zealand
Distribution: Kubuntu
Posts: 11

Rep: Reputation: 0
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.

-- Ghodmode
 
  


Reply

Tags
bash, shell



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
"Broken" envirnment variable (MANPATH) and "/etc/profile.d" question. ErV Slackware 3 03-20-2007 09:42 AM
Problems emerging " /etc/make.profile symlink?" Portage tree complete? stl222 Linux - Software 2 02-11-2006 10:38 PM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration