simple send mime file through sendmail
cat ./mime.txt | sendmail toma12rbd@hotmail.com
You do :
zip -r file.zip /opt/somefolder
1. tar –cvf blabla.tar my_dir/
2. gzip blabla.tar
(and to unzip : gunzip blabla.tar.gz and then tar –xvf blabla.tar )
You can also do all in a single command :tar –zcvf blabla.tgz my_dir
(and to unzip & open you do : tar –zxvf blabla.tgz)