- Create a new directory
fruit/
- Create 7 empty text files like
apple
,banana
etc. - Store all file names in a text file
- List all file names that contain the letter
a
- Store the names with
a
in a text file - Use
diff
to find all file names not containing ana
- Create a new directory
secret_chamber/
- Create an empty text file
chest
inside it - Use a pipe to store the word treasure inside the chest file
- Lock the chest: remove read/write permission for everybody
- Step out of the chamber to the parent directory
- Hide the chamber by renaming it to
.secret_chamber/
- Read the contents of the chest
- Write a bash script
hello.sh
that prints ‘Hello World’ - Execute the program with
source hello.sh
- Store the path+filename of
hello.sh
in the environment variableHELLO
- Execute the program with
source $HELLO
- Modify
hello.sh
to print a message given as an command-line argument (accessible via$1
) - Test the script with
source hello.sh 'Hello World
- Write another bash script that launches
hello.sh
10 times with different messages - Execute everything
- Modify
hello.sh
to repeat the message every 10 seconds - Launch the script
- Use bash commands to terminate the process
- Launch the script 10 times
- Use bash to terminate all 10 processes