File Compression

Zip command in Ubuntu


Zipping a File

Format : zip <> dir1 dir2…..

Example : zip test1/ test2/

This creates a zip file with the contents of  folders test1 and test2


Unzipping a File

Format : unzip <>

Example : unzip

This unzips the contents of to the current directory location


Unzipping a File to a specific folder

Format : unzip <> -d dirname/

Example : unzip -d unzip_dir/

This creates a folder unzip_dir and then unzips the contents of to that folder.



The NonsenseBlogger