I have written a simple script
#! /bin/bash
echo "Hello World"
the script is saved as file.sh
when i do
chmod u+x file.sh
to make it executable and then type file.sh on te terminal it says
file.sh: command not found
why? Doesn't Linux mint support shell scripting ?
LInux mint does not execute scipts[SOLVED]
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
LInux mint does not execute scipts[SOLVED]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: LInux mint does not execute scipts
Before you start to make accusations of things not working, perhaps you should learn how to do things properly? The way to run a .sh file is sh <path>/<filename>.sh - note the <path>, if the file is in the current directory you have to put '.' as the path (without the quotes).pksucks wrote:why? Doesn't Linux mint support shell scripting ?
[Edit] your original post and add [SOLVED] once your question is resolved.
“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
“The people are my God” stressing the factor determining man’s destiny lies within man not in anything outside man, and thereby defining man as the dominator and remoulder of the world.
Re: LInux mint does not execute scipts
Thanks I was silly not to use ./filename. I was using filename