There are no. of scripts present at this path /usr/local/bin/. For the user, the instructions are to type the script name <script_name> at his prompt [username@servername]$. How can that be possible that I didn't type ./script_name and script started to show results on standard output by just writting the script name on user prompt ? May be sthin interesting to know about /usr/local/bin/ on LINUX system :-)
|
| |||
feedback
|
migrated from stackoverflow.com Sep 24 '10 at 11:37
This question came from our site for professional and enthusiast programmers.
|
On BSD systems, all non-system software (ports) are installed in On most Linux distributions it is intended to be used for software installed by the local administrator from source, bypassing the distributions package manager. | |||
|
feedback
|
|
The OS is free to blow away anything it wants in And, by placing all this local stuff ( If you
| |||
|
feedback
|
|
To answer your title about the purpose of the /usr/local/bin /usr/local are for software local to the machine, usually installed manually (and not via a package management like rpm or deb) To answer your actual question, I think you should learn about the PATH variable. try echo $PATH in a terminal ./somescript.sh means you are expecting the script to be in the current directory (the .) if you do not put any path, just the name of a command, the shell will look in the PATH to find the command (unless of course it is an internal command of your shell). | |||
|
feedback
|