Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
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
add comment

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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