LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-06-2003, 10:39 PM   #1
huangyanfeng
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
How to set the $PATH on command line?


export? set? or else?

I tried 'set PATH=/bin/' but not work.
 
Old 11-06-2003, 10:43 PM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
export PATH="path stuff"
or to ADD to the path:
export PATH="$PATH; added stuff"
 
Old 11-07-2003, 01:48 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You'll need a colon not a semi.

For example

PATH=$PATH:/home/John/progs

export PATH
 
Old 11-07-2003, 01:59 AM   #4
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
ooops, my bad sorry about that
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set PATH variable for command tracert? princegbenga Linux - Software 2 06-14-2007 08:48 AM
How to set Gateway by command line vanhelsing Linux - Networking 1 07-17-2004 12:42 PM
how do I set a path for my java command line tools darkone66669 Linux - Newbie 1 04-19-2004 07:28 PM
how to set command path okiyani Linux - General 1 03-04-2004 08:57 PM
How do i set my command line resolution greendusk Linux - General 1 09-26-2003 06:14 PM


All times are GMT -5. The time now is 09:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration