Archiving Flashcards
When archiving what is good practice?
Archiving files within a single folder, no archiving files in the same directory
Extracting archive in a designated folder, incase archived files are not contained in a folder
What is the linux command to zip a file?
zip -r filename.zip filetobezipped
must specify -r to recurse folder hierarchy/structure on folders, tar does automatically
unzip filetobeunzipped
What is the linux command to archive (concatenate) files/folders?
tar -c -f filename.tar files/folderstobearchived
- c create -f must be called last
- z gzip file -j bzip2 file -J xz file
- x extract
What is the linux command to gzip a file/folder?
gzip filetobegzipped
*cannot archive multiple
gunzip filetobegunzipped
What is the linux command to bzip2 a file/folder?
bzip2 filetobebzipped
*cannot archive multiple
bunzip2 filetobebunzipped
What is an alternative file extension to .tar.gz?
.tgz
What is an alternative file extension to .tar.bz2?
.tbz
What is the command to xz a file?
xz filetobezipped
*cannot archive multiple
unxz filetobeunzipped