how to unzip a file linux code example

Example 1: ubuntu unzip file

// install
sudo apt install zip unzip

// zip
zip -r example.zip original_folder

// unzip
unzip file.zip -d destination_folder

Example 2: how to unrar in linux

$ sudo apt install unrar
//extract to the current folder
$ sudo unrar x filename.rar
//extract all files without sub folders
$ sudo unrar e filename.rar

Example 3: unzip command in linux

unzip file.zip -d destination_folder

Example 4: unzip command in linux

sudo apt-get install unzip

Example 5: unix unzip file command

unzip myzip.zip

Example 6: unzip command in linux

unzip file.zip