forked from UofT-DSI/shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homework.sh
23 lines (12 loc) · 900 Bytes
/
homework.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# On your terminal, input all the commands you have used to create the following:
# 1. How would you create 5 directories? Feel free to use any name for your directories.
# 2. How would you verify the creation of all 5 directories?
# 3. In each directory, how would you create 5 .txt files and write "I love data" into each within the directories?
# 4. How would you verify the presence of all 5 files?
# 5. How would you append to one of the existing files " and machine learning!"?
# 6. How would you verify that the text was indeed appended to the existing file?
# 7. How would you delete all files except for the one with the appended text?
# 8. How would you navigate back to the parent directory containing all the directories?
# 9. How would you remove each directory along with its contents?
# 10. How would you verify that all directories and files have been deleted?