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


0 comments:

Post a Comment