LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2003, 01:09 PM   #1
akihandyman
Member
 
Registered: Oct 2003
Location: brooklyn ny
Distribution: mandrake9.2
Posts: 297

Rep: Reputation: 30
How do I make path?


I do not under stand how to make path to a cirtain program.
I need example of command line.
 
Old 12-25-2003, 01:29 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
I can think of 2 ways to read this question:

1) How to set the PATH variable
or
2) How to execute a program that's not in your PATH variable

Answer to 1 is:

To have access to executables that are stored in /home/usr/programs

$ PATH=$PATH:/home/user/programs
If you want it to be permanent add/alter your ~/.profile (export PATH=$PATH:/home/user/programs)

Answer to 2 is:

If you are in the directory that the executable is located in:

$ ./name_executable

If you are not:

$ /path/to/executable/name_executable

Hope this helps.
 
  


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 do I make sure something is in right path? Ken1015 Linux - Newbie 3 09-03-2005 09:02 PM
How to make a path for a program? Tommi Linux - Software 12 06-19-2004 05:38 PM
How do I make PATH ? akihandyman Linux - Newbie 1 02-07-2004 09:05 PM
How to make PATH? tommilaiho Linux - Software 4 12-01-2003 05:01 PM
How to make a path for a program? Tommi Linux - General 1 06-17-2003 05:43 AM


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