Usually, when we look for a file named, "abc.gz", the command will be: find -name "abc.gz" But how to find all files which is not named as "abc.gz"?
Use the -not parameter: find -not -name 'abc.gz' -print Code (markup): if you are only interested in files, then you'll probably have to pass file as the type to return: find -not -name 'abc.gz' -type f -print Code (markup):