How do I run a shell?
Henk Koster
H.A.J.Koster at xs4all.nl
Thu Dec 29 14:26:21 UTC 2005
On Thu, 29 Dec 2005 12:59:16 +0200, Bill Cairns wrote:
> NB: This email and its contents are subject to the Eskom Holdings Limited EMAIL LEGAL NOTICE
>
> which can be viewed at http://www.eskom.co.za/email_legalnotice
>
> ------------------------------------------------------------------------
>
> Reply - thanks Julio, I will try it.
>
> I thought that the Linux convention was that $HOME/bin was on the PATH?
>
> Bill
>
>>>> ubuntu-users-request at lists.ubuntu.com 29 December 2005 >>>
> On 29/12/05, Bill Cairns <cairnsww at eskom.co.za> wrote:
>> I create a folder bin under my home directory.
>>
>> I create a file called dir in bin. The contents of the file is simply one line "ls".
>>
>> I add execute to the file properties.
>>
>> I type dir in the terminal window.
>>
>> In SuSe I get the listing from the ls.
>>
>> In Ubuntu I get "command not found".
>>
>> In Ubuntu, if I type ". dir", it works.
>
> You probably don't have '$HOME/bin' on your PATH. Edit .bashrc and
> add, on the end
>
> export PATH=$PATH:$HOME/bin
>
> Close the terminal, open it again and it should work.
1. No need to make a new alias "dir" for "ls" in a terminal session -- it
already exists.
2. The more common place to put your own executables is in /usr/local/bin,
which is already on the default path.
3. Executables to be run from the very directory they're in must be
prefixed with the current directory ./ and the user must have execute
priviledges in the current directory (a security measure in Debian).
Hope this helps...
--
H.A.J. Koster
"Behavioral axioms are right, but agents make mistakes..."
(attributed to L.J. Savage)
More information about the ubuntu-users
mailing list