Backup Flashcards
Display the content is the achive
tar –list –file archive.tar
tar -tf archive.tar
tar tf archive tar
Create tar
tar –create –file archive.tar file1
tar -cf archive file1
Append to tar
tar –append –file archive.tar file2
tar rf archive.tar file2
Archive an entire directory
tar –create –file archive.tar Pictures/
Before extracting use the list option to see where the filed will be end up
tar –list –file archive.tar
tar tf archive.tar
Look at absolute and relative paths
Extract to a different directory
tar –extract –file archive.tar –directory /tmp
tar xf archive.tar -C /tmp/
Types of compression tools
gzip file1
bzip2 file2
xz file3
Types of compression tools
gzip file1
bzip2 file2
xz file3
Decompression tools
gunzip file1.gz for gzip
bunzip file2.bz2 for bzip2
unxz file3.xz for xz file3