iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔖

Essential tar Command Cheatsheet

に公開

That's All You Need

# Compression
tar -cvzfp xxxxx.tar.gz directory_name

# Extraction
tar -xvzfp xxxxx.tar.gz

Explanation of Options

Option Description
-c Create a new archive file
-x Extract an archive file
-v Display files being processed
-z Compress or extract with gzip
-f Specify the filename
-p Preserve permissions

References

[tar] Command - Creating/Extracting Archive Files
https://www.atmarkit.co.jp/ait/articles/1608/15/news015.html

GitHubで編集を提案

Discussion