How to solve these challenges:


Challenge #1

  1. Install the tree command which is necessary.

  2. 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

  1. Create a file named users.txt by redirecting the output of the who command.

  2. Display the file contents.

  3. 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.