How to create folder on amazon ec2 linux

To create a folder in the root directory through an ssh terminal and use that folder for your application:

sudo mkdir /myApp

Next, set write permissions to myApp folder

 sudo chmod -R 777 myApp

Done, now you can add/edit files in that directory as ec2-user!

Comments are closed.