How do I run a shell?

Julio Biason julio.biason at gmail.com
Thu Dec 29 09:16:55 UTC 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.

--
Julio Biason <julio.biason at gmail.com>




More information about the ubuntu-users mailing list