export BZIP=--fast
tar cjf foo.tar.bz2 foo
或者将tar的输出传递给bzip2.
虽然你应该从bzip2手册页中注意到:
-1 (or --fast) to -9 (or --best)
Set the block size to 100 k, 200 k .. 900 k when compressing.
Has no effect when decompressing. See MEMORY MANAGEMENT below.
The --fast and --best aliases are primarily for GNU gzip compat-
ibility. In particular, --fast doesn't make things signifi-
cantly faster. And --best merely selects the default behaviour.