LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-24-2008, 08:35 PM   #1
navderm
Member
 
Registered: Dec 2008
Location: Chandigarh, India
Distribution: Red Hat 9
Posts: 67

Rep: Reputation: 15
. profile


What is a dot profile and what does it do? over all where can i find it. i need to make some changes in the same and hence need the .profile

thx a lot guyz.
 
Old 12-24-2008, 08:40 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Tell us what do you need to do so we can help better.

"A profile" can be lots of things. But since you wrote ".profile" (with a dot in front of it) I assume that you mean the bash initialization file. If that's the case, you can create such file in your home directory if it doesn't exist. If you want it to run globally for all users you could use /etc/profile instead (you will have to be root to be able to edit that one).

Read the "INVOCATION" section of the bash man page to read about these and the rest of the rc files for bash.
 
Old 12-24-2008, 08:44 PM   #3
navderm
Member
 
Registered: Dec 2008
Location: Chandigarh, India
Distribution: Red Hat 9
Posts: 67

Original Poster
Rep: Reputation: 15
Hie.

I was installing QT version 3. and then it says if you have a Bash shell you gotto write some stuff in .profile

Thanks a lot.
 
Old 12-24-2008, 08:48 PM   #4
navderm
Member
 
Registered: Dec 2008
Location: Chandigarh, India
Distribution: Red Hat 9
Posts: 67

Original Poster
Rep: Reputation: 15
should i use the bash_profile to write it or do i create a new .profile?? and in which directory ??
 
Old 12-24-2008, 08:50 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
If you tell us what exactly do you want to do, it'll be easier to help you. There are 2 configuration files in your home directory that might be of interest for you:
.bash_profile
.bashrc
You can assign all your aliases there
Here you can find out the difference between the two files.

For system-wide configuration there's /etc/profile
 
Old 12-24-2008, 09:11 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Originally Posted by navderm View Post
should i use the bash_profile to write it or do i create a new .profile?? and in which directory ??
As I told you in my other post, in your home directory. I would use either .bash_profile or .bashrc instead, or both of them, to be sure. These files will take precedence over any other. Note that ~/.profile won't be read if ~/.bash_profile or ~/.bash_login exist. As I also said in my other post, this info is in the "INVOCATION" section of the bash man page.
 
  


Reply

Tags
bashprofile, bashrc, profile


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where can I read about the difference between "..profile" and ".profile"? zorrokan Linux - Newbie 4 09-05-2007 01:26 AM
system profile vs user profile bonito Suse/Novell 3 06-28-2006 01:02 PM
non roaming profile on a roaming profile system fieldyweb Linux - Newbie 1 10-03-2005 12:27 PM
where is my .profile ? rob99 Linux - Newbie 2 04-07-2003 10:01 PM
profile help jalburger Linux - Newbie 3 07-10-2002 10:54 AM


All times are GMT -5. The time now is 11:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration