I have directory /var/my_dir ( from my Linux machine)

And under my_dir I have other sub directories as /var/my_dir/sdr/vgtt/last_dir/file I want to create compress file as my_dir.zip from my_dir directory And transfer this file by ftp from my Linux machine to my PC and then open the my_dir.zip file by WinZip

My question how to create my_dir.zip file from my_dir directory in order to uncompress the file on my PC

link|improve this question

55% accept rate
feedback

closed as off topic by Coops, sysadmin1138 Aug 15 '11 at 14:11

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

zip -r my_dir.zip /var/my_dir/
link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.