tarコマンドで「一部のファイルやディレクトリを除外」

tar --exclude "test_2*" -zcvf /tmp/test.tar.gz tar-test/

といった感じ

 

参考URL

tarコマンドで「一部のファイルやディレクトリを除外」したい!どうすればいい?
https://linuxfan.info/tar-exclude