> Hi everyone,
> Can someone help this Linux newbie? I can't execute files that should be
> executable. I've written (actually edited) some scripts, then make them
> exectable by running "chmod +x filename". But when I try to run the script
> from a command prompt, I get "bash: filename: command not found."
> The funny thing is, I can execute these from the Gnome file manager.
> Why is this guys? Thanks for any info.
It's exactly what it says : it doesn't find the command. If you arre
in the directory the file is, instead of typing "filename" as a
command, type "./filename", "." being the nickname for the current
directory. Generally you can had the current directory to your search
path (e.g., under bash you can had the following line to your .bashrc
file : export PATH=$PATH:.).
More generally, the system can only start a command if it knows where
the corresponding executable file is. Its search list is defined by
the variable PATH. To see its content :