「Linux」unzipコマンドでディレクトリを指定して解凍する方法

構文
unzip sample.zip -d ディレクトリ名
unzip sample.zip -d /data/test/ディレクトリ名

操作例1
$ unzip data.zip -d test2020
Archive: data.zip
inflating: xxxx

$ ls test2020
12.csv 34.txt

操作例2
$ unzip sample.zip -d /data/backup/test2020
Archive: sample.zip
inflating: /data/backup/test2020/56.php
$ ls /data/backup/test2020
56.php

Linux

Posted by arkgame