forked from SEI-NYC-1114/Star_Wars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
act1.sh
executable file
·15 lines (13 loc) · 897 Bytes
/
act1.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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?)
# cd star_wars
# mkdir rebellion empire
mkdir star_wars/rebellion star_wars/empire
# 3. Inside the empire directory, create a file called darth_vader.txt
touch star_wars/empire/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!)
echo "...heavy breathing..." >> star_wars/empire/darth_vader.txt
# 5. Inside the empire directory, create a file called emperor_palpatine.txt
# 6. Inside the empire directory, create a directory called death_star
# 7. Move darth_vader.txt into the death_star