Skip to content

Instantly share code, notes, and snippets.

@Buravo46
Created August 2, 2023 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Buravo46/d3256615c1a72b9e87152da588427744 to your computer and use it in GitHub Desktop.
Save Buravo46/d3256615c1a72b9e87152da588427744 to your computer and use it in GitHub Desktop.
【CentOS】7zipのコマンド実行

概要

7zipのコマンド「7zzs」を用いてファイルの圧縮&解凍を実施する。

前提

  • 環境
    CentOS7
  • インストール済み
    7zip 22.1

手順

  • ディレクトリ作成
mkdir 7zip
  • ファイルの生成
touch input.txt
  • ファイルの圧縮
7zzs a -ppassword -tzip -mem=AES256 input 7zip
  • ファイルの解凍
7zzs x -ppassword -oinput input.zip

参考サイト

https://7-zip.opensource.jp/howto/dos-command-password.html

https://pcvogel.sarakura.net/2015/06/17/31467

https://netlog.jpn.org/r271-635/2012/03/linux_unzip_aes_7z.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment