Системный вызов этого в Linux является fadvise, где можно предложить, чтобы различные файлы кэшировались или не кэшировались и также предложили тип шаблона чтения (т.е. последовательный или случайный). Кто-то записал обертку командной строки для этого в жемчуге здесь. Эти две опции, которыми Вы интересуетесь, я думаю:
-dontneed
Announces the expectation that file content won't be needed in
the near future.
Under Linux 2.6.9, this is known to cause the file content to be
evicted from the buffer-cache immediately.
Note that this option first causes an fsync of the file.
-noreuse
Announces the expectation that file content won't be reused in
the near future.
find dir1 -name '* .mp3' -print
сделает это. -name
и -iname
чувствительны к регистру и нечувствительны к регистру для поиска.