Advertising (This ad goes away for registered users. You can Login or Register)

Linux Bash - Command Not Found

Everything related to computers that doesn't go in other categories
Post Reply
User avatar
SMOKE
Retired Mod
Posts: 3673
Joined: Tue Apr 17, 2012 10:00 pm
Location: USA
Contact:

Linux Bash - Command Not Found

Post by SMOKE » Mon Jul 15, 2013 1:57 pm

When I try to run any bash script, it gives an error saying command not found:

Code: Select all

smoke@smoke:~/Desktop$ sudo ./hello.sh
[sudo] password for smoke: 
sudo: ./hello.sh: command not found
smoke@smoke:~/Desktop$
Ive seen some posts on other sites where bash is not in /bin/bash/
Ive looked on my PC, and it is there.
Heres an example script I cannot run:

Code: Select all

#!/bin/bash/

echo Hello World
Any help will be nice :)
Advertising
Last edited by SMOKE on Mon Jul 15, 2013 2:26 pm, edited 1 time in total.

User avatar
Xian Nox
Retired Mod
Posts: 2749
Joined: Fri Nov 05, 2010 5:27 pm
Location: Over the hills and far away

Re: Linux Bash - Commane Not Found

Post by Xian Nox » Mon Jul 15, 2013 2:09 pm

Set it as executable.
Advertising

User avatar
SMOKE
Retired Mod
Posts: 3673
Joined: Tue Apr 17, 2012 10:00 pm
Location: USA
Contact:

Re: Linux Bash - Command Not Found

Post by SMOKE » Mon Jul 15, 2013 2:33 pm

Ok, I feel like a dumb a** now.
Thanks Xian

Post Reply

Return to “General”