Showing posts with label zip folder in Linux. Show all posts
Showing posts with label zip folder in Linux. Show all posts

Wednesday, March 7, 2012

Zip folder with subfolders in Linux

If you are looking to zip folder in Linux with all its contents including subfolders you can make use of this :

zip -r zip_file_name  /path_of_folder_with_subfolders

For example :
zip -r backup  /backup/user
will  backup the entire contents of /backup/user including files and subfolders to a file backup.zip