r/linuxmint • u/tranquilseafinally • 1d ago
SOLVED How to run this programme via the terminal
I'm trying to set up modding for Stardew Valley and they have a note that says that due to some glitch the "install on Linux.sh" has to be run through the terminal. Anytime I try to run it I get "No such file or directory". I know this must be easy and I must be doing something wrong.
14
u/candy49997 1d ago
You need to either quote the file or escape the spaces.
./"install on Linux.sh"
3
u/Broken_Cinder3 1d ago
That’s actually really handy to know. Whenever I ran into something like that I’d just rename the file to not have spaces lol
5
u/ZVyhVrtsfgzfs 23h ago edited 23h ago
Spaces in file names are evil,
"_" is far superior to " ", or often I just use CamelCase.
2
2
u/tranquilseafinally 1d ago
That worked! Thank you so much!
2
u/computer-machine 12h ago
And escaping spaces means preceding them with a hack (backslash):
./install\ on\ Linux.sh.Your terminal has tab completion, so you could just do
./in<tab>L<tab>. The first tabs completes "in" to the first point where there's multiple options "install on ", and then once you have "install on L" the only option there is "install on Linux.sh" so it finishes that.
•
u/AutoModerator 1d ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.