tar czf archive.tar.gz directory/*
tar czf archive.tar.gz file1 file2 ...
tar cjf archive.tar.bz2 file1 file2 ...