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
Discussion