The TL;DR

alias unzip='/usr/bin/7z x -utf16 -progress -aos -o. -psyno@no@pass -pid12723 -langenu'
cd /volume1/music/
unzip my_music.zip

The Story

At home, I run a Synology DS216j NAS: under the hood, it runs Linux and uses software RAID with LVM. This means that in a pinch, I can always pull the disks out, plug them into a SATA-to-USB adapter, and recover my data.

I just ran into a case where I purchased a whole bunch of ZIP files from Amazon Music, Bandcamp, and various NES music sites. Owing to disk throughput, copying everything to the NAS in the original ZIP format was easiest, but… I had 60 or so ZIP files that needed extracting. Just run unzip, right? I sshed in and found:

john@johnstore:/volume1/music$ which zip
/bin/zip
john@johnstore:/volume1/music$ which unzip
john@johnstore:/volume1/music$ echo $?
1

Hmm….

Going into File Station, I found:

root 12745 93.0 0.8 12744 4372 ? R 00:13 0:01 /usr/bin/7z x -utf16 -progress -aos -o/volume1/music -psyno@no@pass -pid12723 -langenu /volume1/music/my_music.zip

So… you have the zip binary installed… but you use 7z to extract ZIP files? For the sanity of folks like me, Synology, it would be nice to include unzip as well. In the meantime, unzip now lives in my .bashrc file.

Leave a comment

Hello!

I’m John Miller, a teacher/tutor/engineer/musician/bicycle mechanic based in Kansas City.

Let’s connect