hey, i noticed that whenever I execute *.bin files, it is needed to run command setenv PATH...

Can anybody explain me what is the usage of this command? cheers

link|improve this question

59% accept rate
1  
What do you need to set the path to? – bryan Aug 4 '10 at 14:32
so that I can execute my file anywhere, though, I found out for my linux i gotta write: export PATH=... – user44509 Aug 4 '10 at 14:49
feedback

1 Answer

up vote 1 down vote accepted

It's modifying the system path. This controls where the system checks for executables. The path is a colon-separated list of directories; the system will check each, in order, until it finds the executable you run. If none contain it, you will get a "command not found" error.

link|improve this answer
is that look like I could run/call my executable file(for that specific software) anywhere? – user44509 Aug 4 '10 at 14:39
Yes, you can run a file from anywhere if it's in a directory in your PATH. – Matthew Flaschen Aug 4 '10 at 14:39
if it's not in the PATH you can run it using it's full or relative path: in current directory a relative path could then be ./exectutablefile or full path /home/theuser/myexectuablefile – Joakim Elofsson Aug 4 '10 at 16:08
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.