Why do I get the error 'bash: hotbackup.sh: command not found' when trying to run a shell script titled hotbackup.sh?

Updated -

The directory containing the shell script, 'hotbackup.sh', is not listed in your PATH environment variable. Bash, like most other Unix shells (sh, ksh, and csh for example) use the PATH environment variable to find shell scripts and other programs for execution.

The PATH environment variable is a colon separated list of directory names. You can see the current value of your PATH environ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content