Linux Fundamentals: How many files exist on the system that have the ".log" file extension?

The files having the .bak are few and thus running the command below should get you through.

find / -type f -name *.bak -exec ls -al {} \; 2>/dev/null

Try this - find / -name *.bak 2>/dev/null |wc -l

I use ''find / -name *.log | wc -l" and I got the number 32 and submit and it is right

the answer should be 32 for .log extension files. I find it funny i log into the target system and it ask how packages are on the systems and target systems doesnt even have any directories or files at all Great job hack the box what lame excuse you have for this one like all the other thousands of complaints online. I can’t believe people pay to deal with this ■■■■ worse learning platform i have ever seen

4 for *.bak

In fact I had 2 files. As I showed some written by other users - system is compromised…

1 Like

Following the third instruction resulted in an unexpected outcome (738) or calculate it. However, simply entering 737 yielded the correct answer

1 Like

Why do I get a wrong response - 3217 with this command?

32 Is the Correct Answer

The Correct Bash is
find / -name *.log 2>/dev/null | wc -l
coz We will be searching all over the system.