I might have stumble upon an error in the the Lab of Chapter 15.
The task is as follows:
Store the search result of all files in the /usr/share directory that is greater than 50 MB and less than 100 MB in the /mnt/freespace/search2.txt file.
No problem with this. Approach was:
find /usr/share -size +50M -size -100M > /mnt/freespace/search2.txt
Returns 1 result, the file /usr/share/GeoIP/GeoLite2-City.mmdb with 54MB.
Trying to grade the lab - failure at this position. Ok. Solution shows:
find /usr/share -size +50M -size 100M > \
Difference being "100M" instead of "-100M". Empty result. Grade works.
But IMHO does this query not fulfil the exercise. But the grade verifies the empty txt-file, although the 54MB file is still there.
Am I trapped within this or might this be unwanted behaviour?
A collaborative learning environment, enabling open source skill development.