Help running .SH file..

I’m studying the Stephane Marek course for the Solutions Architect Associate exam and I just got to a hands-on section where he uses a script from a file called “ec2-user-data.sh” and for the life of me I can not figure out ho to open that file and copy the text needed for the script. Thanks in advance for any help offered!


Related discussions:

Open in note pad and copy the text

cat ec2-user-data.sh;

To see it

chmod +x ec2-user-data.sh;

sh ec2-user-data.sh;

to run it

Thank you! I’ve worked in IT for years, but I forgot that trick and COULD NOT figure it out. Had me feeling like a total fool for a bit. You’re a life saver!