Ash file.sh not found errors when running scripts

As written here: Speedtest from Router - #14 by LupusE

Please try ./ before the command.
./speedtest

I have no access to my Beryl, right now. Else I would have test ist myself, before recommending.

Explaination:
If you type any command in a linux shell, the filename will be searched in the directories, mentioned in the $PATH variable …
echo $PATH should give something like:

/usr/local/bin:/usr/bin:/bin

but as /root/ is not in $PATH, the command cannot be found. So you’ll tell the shell with ./ ‘execute this file here, from this path.’

And in addition the root directory is /. The path /root will be called ‘home directory of the root user’. A little unlucky, that the path root and the user root is the same word, but isn’t the same meaning.

1 Like