LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Closed Thread
  Search this Thread
Old 09-12-2007, 10:12 AM   #1
minky81
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Cnt Find .bash_profile


Hello,

I am a real newbie.I work on MAC OSX.I have been trying to locate bash_profile to set some PATHS.I am supposed to find it in home directory..but am a=unable to do so.My programs etc are not in my Home dir..they are rather saved in /users/meenaksharora..IS this a problem?
How can i edit BASH_profile?

Please advise..
 
Old 09-12-2007, 10:41 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Type "echo $HOME" to verify your "home" directory is what you think it is. The fact you're files are being "written" to /users/meenaksharora suggests that is your real "home" directory OR something in your startup is doing a cd to that directory.

There is an /etc/bash_profile which is GLOBAL for all users meaning that anyone that logs in gets the settings there.

There is also $HOME/.bash_profile which is LOCAL for the user who logs in and is executed after the above.

Additionally there can be a $HOME/.bashrc for other settings.

Check for each of these files. Note "." at beginning of file name means it is "hidden" you have to use the -a flag of ls to see such files (e.g. ls -la will show all files including hidden ones). The file in /etc/ does NOT have a "." at the beginning of its name but the two in $HOME should.
 
Old 09-12-2007, 10:54 AM   #3
minky81
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Original Poster
Rep: Reputation: 0
When i do Echo $home, It gives me nothing at all.. not sure what that means.ALso i only have one bashrc file in /etc folder.there is NO bash_profile in my "home" directory...

Please tell me wat this means..





Quote:
Originally Posted by jlightner View Post
Type "echo $HOME" to verify your "home" directory is what you think it is. The fact you're files are being "written" to /users/meenaksharora suggests that is your real "home" directory OR something in your startup is doing a cd to that directory.

There is an /etc/bash_profile which is GLOBAL for all users meaning that anyone that logs in gets the settings there.

There is also $HOME/.bash_profile which is LOCAL for the user who logs in and is executed after the above.

Additionally there can be a $HOME/.bashrc for other settings.

Check for each of these files. Note "." at beginning of file name means it is "hidden" you have to use the -a flag of ls to see such files (e.g. ls -la will show all files including hidden ones). The file in /etc/ does NOT have a "." at the beginning of its name but the two in $HOME should.
 
Old 09-12-2007, 11:36 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Linux is case-sensitive. $home does not equal $HOME. Run 'echo $HOME' as jlightner instructed.

If you don't have a .bash_profile then create one. Do some research on your system; you may have an example bash_provile that you can copy to ~/.bash_profile. After that, edit ~/.bash_profile to suit your needs.

If you don't have an example to copy, do some google research. You may find one.
 
Old 09-13-2007, 05:05 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue the discussion here: http://www.linuxquestions.org/questi...d.php?t=584161
 
  


Closed Thread



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cnt Find .bash_profile minky81 Linux - Newbie 1 09-12-2007 10:42 AM
xmms cnt find Glib, but they are there...!!! Royyy Linux - Desktop 2 03-11-2007 12:54 PM
Where is 'config' in latest v. of quanta, cnt find it BuckRogers01 Linux - Software 1 07-04-2005 08:08 AM
i cnt believe i am such a nub. . i need help. . . sigh faleeknakuv Linux - Software 1 04-16-2004 10:51 PM
Installing MySQL, can't find .bash_profile to edit! blanderson Linux - Newbie 3 10-13-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:30 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