Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

zip -r my_dir.zip /var/my_dir/
share|improve this answer

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