当尝试使用unzip在 ubuntu 中提取 zip 文件时,每个文件都用一个子目录(一堆文件)单独提取:
sudo unzip arch.zip -d /var/www/test
ls /var/www/gs/
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\rent
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\security
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\site
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\smev
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\source
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\statement
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\stock
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\vehicle
drwxr-xr-x 2 root root 4096 дек. 28 2015 protected\views\xmlparsing
drwxr-xr-x 7 root root 4096 сент. 27 18:01 public
drwxr-xr-x 2 root root 4096 дек. 28 2015 public\css
drwxr-xr-x 2 root root 4096 дек. 28 2015 public\css\images
drwxr-xr-x 2 root root 4096 дек. 28 2015 public\fonts
drwxr-xr-x 2 root root 4096 дек. 28 2015 public\img
drwxr-xr-x 2 root root 4096 дек. 28 2015 public\img\_temp
但是必须要有公共保护的文件夹等等,怎么办呢?存档的结构是正常的。
在具有正常结构的存档中,斜线是不一样的。windows目录分隔符是\,unix是/。
使用 -j(不带目录)从存档中取出并用笔分散。