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
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
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??
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.
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 →
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
Input :
wc /usr/share/drirc.d/00-mesa-defaults.conf
output :
600 1894 27422 /usr/share/drirc.d/00-mesa-defaults.conf