Archiving Flashcards

1
Q

When archiving what is good practice?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the linux command to zip a file?

A

zip -r filename.zip filetobezipped

must specify -r to recurse folder hierarchy/structure on folders, tar does automatically
unzip filetobeunzipped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the linux command to archive (concatenate) files/folders?

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the linux command to gzip a file/folder?

A

gzip filetobegzipped
*cannot archive multiple
gunzip filetobegunzipped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the linux command to bzip2 a file/folder?

A

bzip2 filetobebzipped
*cannot archive multiple
bunzip2 filetobebunzipped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an alternative file extension to .tar.gz?

A

.tgz

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an alternative file extension to .tar.bz2?

A

.tbz

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the command to xz a file?

A

xz filetobezipped
*cannot archive multiple
unxz filetobeunzipped

How well did you know this?
1
Not at all
2
3
4
5
Perfectly