PDA

View Full Version : How does the 'path' command work?


slydog75
01-06-2008, 11:06 AM
If installation instructions say such and such programs need to be in your 'path' how do you add it? My current path reads:

export PATH=./:.:/utils:/bin:/sbin:/tvbin:/tivobin:/busybox:/enhancements

If the programs I need in the path reside in the enhancements directory is that good enough, or do I actually need to put the program names directly into the path statement? If I need to add them, how do I do so?

Gunnyman
01-06-2008, 11:08 AM
If installation instructions say such and such programs need to be in your 'path' how do you add it? My current path reads:

export PATH=./:.:/utils:/bin:/sbin:/tvbin:/tivobin:/busybox:/enhancements

If the programs I need in the path reside in the enhancements directory is that good enough, or do I actually need to put the program names directly into the path statement? If I need to add them, how do I do so?
that export PATH= is the actual command you add whole directories to the path with a : between each one.

slydog75
01-06-2008, 11:12 AM
Ok, so if the programs I need reside someewhere in any of those directories, that's all I need then. Do subdirectories count?

rbautch
01-06-2008, 12:01 PM
PATH is not a command. It's an environmental variable (http://en.wikipedia.org/wiki/Environment_variable).

Da Goon
01-06-2008, 01:34 PM
export PATH=$PATH:/newfolderyouwantinyourpath

BTUx9
01-06-2008, 03:52 PM
PATH is not a command. It's an environmental variable (http://en.wikipedia.org/wiki/Environment_variable).
Nobody said PATH was the command
that export PATH= is the actual command you add whole directories to the path with a : between each one.

wkearney99
01-06-2008, 06:27 PM
The PATH variable is set from your .profile. Edit that file to make the any changes permanent. Being careful, of course, not to screw it up.

Sherminator
01-06-2008, 06:55 PM
Nobody said PATH was the commandSlydog did in the thread title.

BTUx9
01-06-2008, 07:17 PM
my bad... I still don't think it was helpful. (he posted the correct command, and a case could be made that "export PATH" is actually a path command)

PortlandPaw
01-09-2008, 02:42 PM
But the real question is whether the PATH is set under GMT or UTC.

Gunnyman
01-09-2008, 03:59 PM
But the real question is whether the PATH is set under GMT or UTC.

hush you :D