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


Reply
  Search this Thread
Old 07-19-2012, 04:26 AM   #1
Priyanka Kaushal
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Rep: Reputation: Disabled
linux commands


what is .bash_profile file and how to export command like $ export PATH=$PATH:~/Castalia/bin..
plz reply soon
 
Old 07-19-2012, 04:28 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,924

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
read the man page of bash, or google for some short answer, like this: http://www.joshstaiger.org/archives/...rofile_vs.html
 
1 members found this post helpful.
Old 07-19-2012, 05:10 AM   #3
Priyanka Kaushal
LQ Newbie
 
Registered: Jul 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
How to tag solved?
 
Old 07-19-2012, 05:21 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Priyanka Kaushal View Post
what is .bash_profile file and how to export command like $ export PATH=$PATH:~/Castalia/bin..
plz reply soon
2 separate questions....right?

.bash_profile is a file with settings relating to the use of BASH

for export, look at "man export"

Quote:
plz reply soon
You mean please---but note that we pretty much reply to things when we get around to it. Please note the sign above the door: "I have two speeds---If you don't like this one, you surely won't like the other."
 
1 members found this post helpful.
Old 07-19-2012, 08:24 PM   #5
dru8274
Member
 
Registered: Oct 2011
Location: New Zealand
Distribution: Debian
Posts: 105

Rep: Reputation: 37
Code:
$ man export
No manual entry for export

$ help export
export: export [-fn] [name[=value] ...] or export -p
    Set export attribute for shell variables.
.....
 
Old 07-20-2012, 11:37 AM   #6
i_joh
Member
 
Registered: Apr 2005
Distribution: Debian
Posts: 82

Rep: Reputation: 5
Just a tip here to find help:

Code:
ingvald@castor $ type export
export is a shell builtin

ingvald@castor $ type cat
cat is /bin/cat
If it's a shell builtin, look in the shell manual. As in 'man bash'. Otherwise it should have a man page. And if it doesn't then google it first. It's often quicker than to ask on a forum.

Last edited by i_joh; 07-20-2012 at 11:43 AM.
 
Old 07-20-2012, 06:57 PM   #7
BuckNekkid
Member
 
Registered: Jun 2007
Location: Bayou, Louisiana
Posts: 121
Blog Entries: 1

Rep: Reputation: Disabled
Thumbs up My "Friend", Priyanka Kaushal..

Quote:
Originally Posted by Priyanka Kaushal View Post
what is .bash_profile file and how to export command like $ export PATH=$PATH:~/Castalia/bin..

plz reply soon
Pixy, plse or plz is 'ham short hand' in Morse Code. A lot of us still USE it. Yes, it's short, but concise and to the point.

Back when the telegraph was "new", customers paid for a "per-letter fee" with Western Union. This shorthand was good for the customer not to pay as much and the telegraphers to send it, LOL!

I don't know if my new "friend" is a ham in I'm guessing India, (VU) but he's certainly smart enough to BE one..

BTW (By the Way) a good reference for Linux commands is ab
O'Reilly publication. I lost mine but thery're good at explaining things. I believe the last time I checked it was about $55. US dollars.

Respectfully submitted,
Regards,

"Buck/KA5LQJ
 
Old 08-02-2012, 12:14 AM   #8
*K*F*7*P*C*L*
LQ Newbie
 
Registered: Aug 2012
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by BuckNekkid View Post
Pixy, plse or plz is 'ham short hand' in Morse Code. A lot of us still USE it. Yes, it's short, but concise and to the point.
I think "pls" is somewhat more common since 'S' is quicker to send in CW then 'Z'
 
Old 08-02-2012, 12:31 AM   #9
ksdeiva
LQ Newbie
 
Registered: Oct 2011
Posts: 14

Rep: Reputation: Disabled
Quote:
Originally Posted by Priyanka Kaushal View Post
what is .bash_profile file and how to export command like $ export PATH=$PATH:~/Castalia/bin..
plz reply soon

Temporary export:


for example to set/export java path:

$export JAVA_HOME=/path/of the java

to confirm

$echo $JAVA_HOME ...its should return the path we gave...


Permanent Set/export it should like .bash_profile:

$ cat .bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

export JAVA_HOME=/path/to the java
export PATH=$PATH:/path/to the java

I think is this you are expecting if not please !!!
 
  


Reply



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
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 06:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 06:53 AM

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

All times are GMT -5. The time now is 03:42 AM.

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