I'm trying to make a shell script on my Linux Amazon-EC2 server that will start my Minecraft server but the cd command says it can't find the directory or file when I try to change to the directory the server executable is in. Please note I have next to no experience with shell script of any kind. Does it have to with permissions in the folder this file is located in or the file itself? The file is named "startServer".
#!/bin/bash cd /home/ec2-user/Minecraft java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui
*I did not save it with a file extension. Should I? Does it need to be?