Archiving & Compression Flashcards

1
Q

What is the linux command to hide a file?

A

mv file.ext .file.ext

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

What is the linux command to remove an item?

A

rm

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

What is the linux command to copy an item?

A

cp

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

What is the linux command to create and remove a folder?

A

mkdir

rmdir *folder must be empty

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

What is the linux command to update a folder/files timestamp?

A

touch file.ext

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

What is the linux command to create an empty file?

A

touch file.ext

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

What is the linux command to copy a folder?

A

cp -R

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

What is the linux command to remove a folder/item forces?

A

rm -rf

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

What can be substituted for quotes when referencing a name with spaces?

A

\

i.e
My\ Pictures

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

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

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

A

bzip2 filetobebzipped
*cannot archive multiple
bunzip filetobebunzipped

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

When running a linux command what parameter can often be specified to see verbose output?

A

-v