Commpress files and delete after.

tar -zcvf tar_name.tgz file_name.txt  –remove-files

Open:
tar –xvzf file_name.tgz

Advertisements