linux find prune
问题 I am trying to exclude two directories; vntvdone and downloading, but for some reason, my command still goes in there and outputs the file within it: find -name '*.avi' -o -name '*.mkv' -o -name '*.mp4' -o -name '*.VOB' -o -path './downloading' -prune -o -path './vntvdone' -prune I am also running into problems where if a folder/directory that has .mp4 in it, it also gets treated as a file as well... how can we do this search only for files and not folders? 回答1: I find it easier to use ! than