title: How to exclude big files while compressing a directory with tar
body: <p>I want to compress a directory in Linux. I created a <strong>tar.gz</strong> that it turns to be a big file, due to the reason that the directory contains some *.o files and some pdf files.</p>
  
  <p>Is there any way to compress a directory but exclude files <strong>larger than a predefined SIZE?</strong> There is a --exclude argument in tar command, however I would like to reject files larger than 1 MB. This is the constrain, not the name of the file. </p>