ubuntuforums-unanswered team mailing list archive
-
ubuntuforums-unanswered team
-
Mailing list archive
-
Message #03634
Re: [Question #77177]: how to run a shell script in command line?
Question #77177 on gnome-terminal in ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/77177
Status: Open => Answered
actionparsnip proposed the following answer:
you need to run
chmod +x <file>
sh ./<file>
the chmod +x marks it as executable. the second part launches it.
Make sure your location that the terminal is pointing to (your pwd or
present working directory) is the same as the script you want to run.
--
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.