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.cpio
Extract all the files from the archive we just created
cpio -iv < /tmp/archive.cpio
Create a differential (or incremental) backup of {file}, using full.bak as reference
dar -R /path/to/file -c diff1.bak -A full.bak
Create a full backup of {file}
dar -R /path/to/file -c full.bak
Restore full.bak
dar -x full.bak
Zip 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 --best
Compress {symlink}
gzip -f symlink
gzip --force symlink
Page through .gz files
Create {archive} from contents of {path}
tar -cf archive path
tar --create --file archive path
Create bzip2-compressed {archive} from contents of {path}
tar -cfj archive path
tar --create --file --bzip archive path
Create gzip-compressed {archive} from contents of {path}
tar -cfz archive path
tar --create --file --gzip archive path
Add {file} to {archive}
tar -rf archive file
tar --append --file archive file
List the contents of {archive}
tar -tf archive
tar --list --file archive
Extract contents of {tarfile} in the current directory
tar -xf archive
tar --extract --file archive
Extract only {file} from {archive}
tar -xf archive file tar--extract --file archive file
Extract contents of gzip-compressed {archive} to {path}
tar -xzf archive -C path
Extract compressed files in a zip archive
Archive files in InfoZIP format
zip zipfile *files