Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
12/23/2007 2:38:56 PM EDT
I'm trying to get the hang of *nix... using bash on Xandros currently.

This has happened with all programs I installed, I'll use Tor as an example. I found the binary located at /usr/sbin. It runs if I type "/usr/sbin/tor". But if I go "cd /usr/sbin" and then type "tor", it says command not found. What's the deal?
12/23/2007 2:41:32 PM EDT
[#1]
try going to the directory and then doing ./tor
12/23/2007 8:34:28 PM EDT
[#2]
Is this how the Linux filestructure works? Or did I leave something out in the installation? It's not a big problem (or a problem at all), I'm just trying to learn from the situation.
12/24/2007 4:55:20 AM EDT
[#3]
if you run something from within it's home directory you use the ./filename to execute it.   This is normal and you haven't done anything wrong as far as I can tell.  The other thing you can do is maybe write a very simple shell script that sets the path, etc and then runs the program for you without having to change to the bin directory each time.

You can Google to find lots of examples of shell scripts.
12/24/2007 12:17:28 PM EDT
[#4]
If you aren't root then /usr/sbin will not be in your default search path.  Varmintkilla has it right to add ./ before tor