Cheat Sheet by BlackW61 via cheatography.com/59396/cs/15758/

tar/tar.gz /Unzip common tar Options

Create archiv.tar with 1 file and all pdfs Create Zip archiv -c --create

tar -cf archiv.tar datei_1​ .txt *.pdf zip archiv.zip File1 example/* create a new archive

Create archiv.tar with all subdir Creating Zip with pw -x

tar -cf archiv.tar path/ zip -e archiv.zip File1 example/* extract files from an archive

Extract files Extract file -j

tar -xf archiv.tar unzip archiv.zip -d /path filter the archive through

Add 1 specific file to archiv (unconp​ res​ sed) -z rar tar -rf archiv.tar datei_1​ .txt filter the archive through Createing a Rar archiv Create archiv.tar.gz -f rar a test.rar -p file1 file2 tar -czf archiv.tar.gz file use or device ARCHIVE Creating a Rar achriiv and split the file into Extract gzip archives -u fragments tar -xzf archiv.tar.gz -C / only append files newer than copy in archive rar a -v2048 test.rar -p file1 file2 Extract gzip archives to /path --delete Creating a Rar archiv with pw tar -xzf archiv.tar.gz -C /path delete from the archive rar a -p archiv.rar Extract 1 specific file -r Extract from Rar archiv tar -xzf archiv.tar.gz Path/file append files to the end of an archive unrar e (or with) /path/ Show which files are in archiv.tar -t Extract archiv according their folder structure tar -tvf archiv.tar list the contents of an archive unrar -x --overw​ rite tar.bz2 list files in archiv overwrite existing files when extracting unrar l Create a tar.bz2 archiv

tar -cjf archiv.tar​ .bz2 test /* Update archiv with new file rar u archiv.rar test.txt Extract bz2 archiv Creating 7zip archiv

tar -xjf beispie​ l.ta​ r.bz2 7z a archiv.7z file gzip Extract archiv to specific path Extract 7zip archiv Create a crompre​ ssed gzip tar -xjf archiv.tar​ .bz2 -C /path 7z e archiv.7z gzip FILE List files from 7zip archiv Extract file from archiv 7z l archiv.7z gzip -d FILE

Extract file keeps gzip file

gzip -d -k FILE

By BlackW61 Not published yet. Sponsored by CrosswordCheats.com cheatography.com/blackw61/ Last updated 15th May, 2018. Learn to solve cryptic crosswords! Page 1 of 1. http://crosswordcheats.com