Starting from:

$25

Linux - Super Secret” Project Brief  - Solved

“Super Secret” Project Brief 

super_secret_stuff
top_secret.txt
In this task you are asked to create a folder called  and inside that folder to place a file called  

top_secret.txt
 may contain whatever content you wish. 

updatedb
 command and the 
locate
top_secret.txt
Once you have created the file, use the  command to find the path to .  

locate
Using redirection, save the path that the  command gives you to a new file called 

secret_place.txt
 in your home directory. 

sudo
Hint: You will need to use  to gain the elevated privileges required to update the database. 

Task 2 

 

 

Part A) 

In this task, you are going to create an advanced pipeline that will create a sorted list of the various file sizes on your system. 

find
 command to search your entire file tree; starting from the 
/
Firstly, use the  

maxdepth
directory, for all files that are over 1 MebiByte in size. Use the  option to limit 

find
the  command’s search to only go 4 levels deep. The search should only show files, not directories. 

-exec
  option of the 
find
 command to run the 
ls -lh
Use the  command on each of those results. 

sudo
Hint: You will need to put  at the start of this command to access all required folders. 

 

Part B Below: 

More products