LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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


Reply
  Search this Thread
Old 08-07-2003, 01:35 PM   #1
bignester
Member
 
Registered: Jun 2003
Location: Texas
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
question on paths and profile files


Ive installed the java sdk on my computer now i want to include the binaries in my path for easy execution. I havent set up a profile file yet so wich one do i use

.bash_profile
.profile

Ive used the .bash_profile but when i started up x windows none of the commands worked that i set up.
 
Old 08-07-2003, 01:43 PM   #2
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
You can use either one. The shell will look for .bash_profile, .bash_login, and .profile, but only use which ever it finds first.

Also, a login initialization will only be executed when you login unless you run the command . .profile after making changes so you don't have to log out and back in again to see the changes.
 
Old 08-07-2003, 01:44 PM   #3
redhax8
Member
 
Registered: Jan 2002
Distribution: Debian
Posts: 43

Rep: Reputation: 15
If your using bash you can issue the command
export PATH=$PATH:[path_to_java]
to make an addition to your path

For bash you use .bash_profile
For csh use .profile
 
Old 08-07-2003, 03:54 PM   #4
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
redhax8,

well that's not completelly true. I've used csh and my profile was in csh.login and .profile can be used for all shells. (Just for the sake of it!).

bignester,

there are many ways to do this. Some programs want .bashrc, some .bash_login, some .bash_profile. Well ... I use .bash_profile and use a symbolic link from .bashrc to it.
Sorry for the interruption!

Enjoy
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
locating and edition .profile for java paths Madaize Linux - Newbie 1 11-07-2004 12:41 AM
Question about Unison paths overbored Linux - Software 1 10-28-2004 09:30 PM
Getting erro - Library files for "libkcm_k3bsetup2.la" not found in paths error. rsreeni Linux - Newbie 0 08-22-2004 08:07 PM
suse profile files alaios Linux - General 7 05-01-2004 07:38 AM
Automatically resolving WINDOWS paths to pre-configured Linux paths gazzy Linux - General 1 09-05-2003 11:15 PM

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

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