need help.

the good command is :
find -type f -name *.conf -size +25k -size -28k -newermt 2020-03-03 -exec ls -al {} ; 2>/dev/null

and normaly the good answer to the question is :
00-mesa-defaults.conf

Nice day every body :v: :v:

1 Like

Can someone help me understand if my prompt is wrong or simply the box is outdated?

how?? i typed in this command and got find: missing argument to `-exec’ i just want to know what the command means and how i go about finding the specific requirements to find this file i originally have typed find / -type f -iname “*.conf” -size +25k -size -28k -newermt 2020-03-03 2>/dev/null and got one file /etc/dnsmasq.conf how did i not get what you got??

1 Like
find: missing argument to `-exec'

This is the output I am getting most of the time. Tried a number of varieties. Either I am getting a Permission Denied notification on all paths, or this exec error

I just wanted to put a response on this so maybe someone would see? I spent literally hours on this exact question before coming here; I’m talking like at least 5 hours. I painstakingly entered the exact commands that others in this thread were entering.

find / -type f -name *.conf -size -28k -size +25k -newermt 2020-03-03 -exec ls -al {} \; 2>/dev/null

And I was getting nothing back.

So I decided to enter the file name that everyone has been posting as the correct answer here, and it was correct. I then went into the terminal, used the locate command to find that exact file, and had a look at the file size and it was 52k.

I spent hours looking for a file using parameters that doesn’t even match the answer.

2 Likes

Looks like you got it with the command!

Same for me, the accepted answer was 00-mesa-defaults.conf whose size was 52k. I spent a long time thinking I was crazy before finding this! Thanks bro!

I have been having the same problem. I changed the ‘config’ to 'conf and got the mesa-defaults file.

Same issue.

The question really should be updated to say conf and not config.

Correct Answer Is :slight_smile:

Input :

find / -type f -name *.conf -size -28k -size +25k -newermt 2020-03-03 -exec ls -al {} \; 2>/dev/null

output :

-rw-r--r-- 1 root root 27422 Jun 12  2020 /usr/share/drirc.d/00-mesa-defaults.conf

How you check size of file :slight_smile:
Input :

wc /usr/share/drirc.d/00-mesa-defaults.conf

output :

600  1894 27422 /usr/share/drirc.d/00-mesa-defaults.conf
1 Like

You are right! The exercise is wrong! It might be an error.

1 Like

There is an error on the exercise. The correct file for the qustions is called 00-mesa-defaults.conf. However, this file is 50k, thus not in the range of 25k-28k.

1 Like