LoginSignup
0
0

More than 3 years have passed since last update.

【shell】コマンドで任意のファイルをZip圧縮してファイル作成して元ファイルを削除する。

Posted at

メモとして残します。

やり方

zip -m -j "圧縮先ファイルフルパス" "圧縮対象ファイルフルパス"
# -m オプション:圧縮する元ファイルを削除する。
# -j オプション:対象ファイル単体を圧縮する。(このオプションがない場合はファイル構造込みで圧縮される。)

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0