0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【2025年03月版】Linuxでよく使う圧縮・解凍コマンドメモ【初学者向け】

Posted at

はじめに

よくわすれる、Linuxでよく使う圧縮と解凍のコマンドのメモ

圧縮コマンド

圧縮形式 拡張子 圧縮コマンド例
tar .tar tar -cvf archive.tar files/
tar.gz .tar.gz / .tgz tar -czvf archive.tar.gz files/
tar.bz2 .tar.bz2 tar -cjvf archive.tar.bz2 files/
tar.xz .tar.xz tar -cJvf archive.tar.xz files/
zip .zip zip -r archive.zip files/
rar .rar rar a archive.rar files/
gz .gz gzip file
bz2 .bz2 bzip2 file
xz .xz xz file
7z (7-Zip) .7z 7z a archive.7z files/

解凍コマンド

圧縮形式 拡張子 解凍コマンド例
tar .tar tar -xvf archive.tar
tar.gz .tar.gz / .tgz tar -xzvf archive.tar.gz
tar.bz2 .tar.bz2 tar -xjvf archive.tar.bz2
tar.xz .tar.xz tar -xJvf archive.tar.xz
zip .zip unzip archive.zip
rar .rar unrar x archive.rar
gz .gz gunzip file.gz または gzip -d file.gz
bz2 .bz2 bunzip2 file.bz2
xz .xz unxz file.xz
7z (7-Zip) .7z 7z x archive.7z

さいごに

わすれたくない

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?