forked from SEIR-725-Batch/Star_Wars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathact1.sh
executable file
·14 lines (14 loc) · 888 Bytes
/
act1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 1. In this directory, create a new directory called star_wars. Example answer: mkdir star_wars
mkdir star_wars
# 2. In the star_wars folder, create two new directories: empire and rebellion (This can be done in two commands, but how would you do it in one?)
mkdir empire rebellion
# 3. Inside the empire directory, create a file called darth_vader.txt
touch darth_vader.txt && echo ...heavy breathing....>>darth_vader.txt
# 4. Use the force (or your echo) to add the text "...heavy breathing..." to the darth_vader.txt file (Don’t remember how to do this? Use the ‘other force’, known as Google!)
see above
# 5. Inside the empire directory, create a file called emperor_palpatine.txt
touch emperor_palpatine.txt
# 6. Inside the empire directory, create a directory called death_star
mkdir death_star
# 7. Move darth_vader.txt into the death_star
mv ./darth_vader.txt ./death_star