How to solve these challenges:
To be consistent with the filenames and paths run the commands on Ubuntu
Write your solution in a terminal and test it.
If your solution is not correct, then try to understand the error messages, watch the video again, rewrite the solution and test it again. Repeat this step until you get the correct solution.
Save the solution in a file for future reference or recap.
Challenge #1
Install the tree command which is necessary.
Using shell commands create the following directory structure.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #2
Considering this directory structure, copy the file called security.txt to the updates directory.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #3
Considering the solution from the previous challenge remove the file called security.txt from the directory called updates.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #4
Considering the initial directory structure, copy the directory called updates from centos to ubuntu.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #5
Considering the solution from the previous challenge, remove the directory called updates from ubuntu directory.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #6
Considering the initial directory structure and using only one command copy the file called apt.txt and the directory called updates to linux directory.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #7
Considering the solution from the previous challenge remove the file called apt.txt and the directory called updates from the linux directory interactively (by prompting the user).
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #8
Considering the initial directory structure, rename the directory called centos to redhat and then back to centos.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #9
Considering the initial directory structure, copy the file called security.txt to ubuntu directory as sec.txt
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #10
Create a file named users.txt by redirecting the output of the who command.
Display the file contents.
Remove the file in a secure manner by overwriting the file 50 times before removing.
Are you stuck? Do you want to see the solution for this challenge? Click here.
Challenge #11
Remove the entire directory structure without prompting.
Are you stuck? Do you want to see the solution for this challenge? Click here.