[ubuntu-users] Command not found
David Fletcher
dave at thefletchers.net
Sat Mar 3 22:00:47 UTC 2012
On Sat, 2012-03-03 at 21:34 +0000, John Sampson wrote:
> Hello -
>
> I am new to Ubuntu, being a Windows user. I am accustomed to
> running batch files by typing their names in a shell. When I try
> this in Ubuntu 11.10 there is a 'command not found' error.
> I found that the file has to be in a folder in the path for it to be
> runnable from a shell. I attended to this by copying the file to
> '/usr/bin' and also navigated to '/usr/bin' before tryng to run it.
> I typed 'ls <filename>' to ensure that the file was present.
You should be able to run a script from your home directory
with ./<filename>
Have you set the file properties to executable?
More information about the ubuntu-users
mailing list