Find Files and Directories

Hack The Box Academy Module: Linux Fundamentals

The section Find Files and Directories belongs to Linux Fundamentals module.

Don't know how to connect to HTB VPN? Click here.

What is the name of the config file that has been created after 2020-03-03 and is smaller than 28k but larger than 25k?

Use the command:

find / -type f -name "*.conf" -newermt "2020-03-03" -size +25k -size -28k 2>/dev/null

Submit the file name as the answer.

How many files exist on the system that have the ".bak" extension?

find / -type f -name "*.bak" 2>/dev/null | wc -l

Submit the number returned as the answer.

Submit the full path of the "xxd" binary.

To see the path for any binary, use the which command:

which xxd

Submit the path as the answer.

Join HTB Academy (Get 20 Cubes Free)

Join Now