unzip folder in linux code example

Example 1: unzip command in linux

unzip file.zip -d destination_folder

Example 2: unzip folder linux

mkdir temp_for_zip_extract
unzip /path/to/file.zip -d temp_for_zip_extract

Example 3: unzip command in linux

move command : mv filename dirname
remove command : rm -r filename
copy command : cp filename dirname
zip command : zip -r filename.zip foldername
unzip command : unzip filename.zip -d dirname

Example 4: unzip command in linux

unzip file.zip

Example 5: unzip specific folder linux

unzip /path/to/archive.zip "in/archive/folder/*" -d "/path/to/unzip/to"