tar -cvf java.tar --exclude="*.class" $HOME/java
Das man
páginas:
--exclude pattern
Do not process files or directories that match the specified pattern.
Note that exclusions take precedence over patterns or filenames
specified on the command line.