Archive - jasper-zanjani/dotfiles GitHub Wiki
ar
bzcat
bzip2
bzless
bzmore
compress
cpio
dar
gunzip
gzcat
gzip
tar
uncompress
unxz
unzip
xz
zcat
zip
zipcloak
zipcmp
zipdetails
zipgrep
zipinfo
zipnote
zipsplit
0 a b c d f i k l m n o p r s t u v A B C E F H I L M O R S V
Create an archive that contains all the files in the current working directory [Haeder][Haeder]: 94
ls | cpio -ov > /tmp/archive.cpioExtract all the files from the archive we just created
cpio -iv < /tmp/archive.cpioCreate a differential (or incremental) backup of {file}, using full.bak as reference
dar -R /path/to/file -c diff1.bak -A full.bakCreate a full backup of {file}
dar -R /path/to/file -c full.bakRestore full.bak
dar -x full.bakZip a single file in-place; each file is replaced by one with the extension .gz or .z, maintaining ownership modes, access and modification times
gzip -#
gzip --fast
gzip --bestCompress {symlink}
gzip -f symlink
gzip --force symlinkPage through .gz files
Create {archive} from contents of {path}
tar -cf archive path
tar --create --file archive pathCreate bzip2-compressed {archive} from contents of {path}
tar -cfj archive path
tar --create --file --bzip archive pathCreate gzip-compressed {archive} from contents of {path}
tar -cfz archive path
tar --create --file --gzip archive pathAdd {file} to {archive}
tar -rf archive file
tar --append --file archive fileList the contents of {archive}
tar -tf archive
tar --list --file archiveExtract contents of {tarfile} in the current directory
tar -xf archive
tar --extract --file archiveExtract only {file} from {archive}
tar -xf archive file tar--extract --file archive fileExtract contents of gzip-compressed {archive} to {path}
tar -xzf archive -C pathExtract compressed files in a zip archive
Archive files in InfoZIP format
zip zipfile *files