Exercise 1
Exercise
Time: 20 min
Create a shell script that automates the following tasks:
Create a directory named
mydirin thescratchdirectory under your user directory.Create a new file insde
mydirnamedmyfile.txtusing thetouchcommand.Write a message “Hello, World!” into
myfile.txtusing theechocommandecho "your text" > myfile.txt.List the contents of
mydirto verify thatmyfile.txtwas created successfully.