Quiz
Linux Essentials Chapter 7 Exam
Erstelle ein kostenloses Konto, um dieses Quiz zu beenden
Speichere deinen Fortschritt und sieh dir dein Endergebnis an.
oder mit deiner E-Mail registrieren
Schon ein Konto? Anmelden
Fragen in diesem Quiz (20)
1Compression on a file works by:
- ARemoving redundant information
- BEliminating gaps within the file
- CStoring most of the data on removable media and just leaving a pointer
- DConsolidating multiple files into one
- ERemoving the high order bit from each byte
2In general, for which of the following would you want to use lossless compression?
- AA log file
- BA movie
- CA JPEG image
- DAn mp3 audio file
- EAn encrypted email
3Lossy compression:
(choose three)- ADecompresses to an identical version as the original
- BIs often used with documents
- CIs often used with images
- DUsually results better compression than lossless
- ESacrifices some quality
4You type gzip myfile.tar. What happens?
(choose two)- Amyfile.tar is removed
- Bmyfile.tar.gz holds a compressed version of myfile.tar
- CAn error; you forgot to specify the file with –f
- Dmyfile.tar is unarchived into the current directory
- EAn error; you forgot to pass the name of the output file
5How would you obtain output similar to the following?
compressed uncompressed ratio uncompressed_name
278168 1016950 72.6% tags- Agunzip –t tags
- Bfile tags
- Cgzip –l tags
6Which command would you use to archive the Documents directory and compress it with bzip2 compression?
- Atar –czf documents.tbz Documents
- Btar –cjf Documents
- Ctar –fzc Documents documents.tbz
- Dtar –cjf documents.tbz Documents
- Etar –cf Documents documents.tbz
7Which flag would you pass to tar in order to have it make a new archive?
- A–t
- B-c
- C–j
- D-x
- E–n
8Which command will show what is inside the compressed tarball with a name of foo.tar.gz?
- Atar –tjf foo.tar.gz
- Btar –tzf foo.tar.gz
- Ctar –lf foo.tar.gz
- Dtar –xf foo.tar.gz
- Etar –tf foo.tar.gz
9In the command tar –cvjf foo.tbz a b c, what are a, b, and c?
- AFile names to be added to the archive
- BMatching operators; anything starting with a, b, or c will be added
- Ca is the directory that will be prepended to files; b and c are files inside it
- DExtra flags passed to tar
- ENothing; -cvjf only expects one parameter
10Given the command tar –cvjf homedirs.tbz /home, which of the following are true?
(choose two)- AThe /home directory will be restored with the contents of homedirs.tbz
- BOnly files starting with /home will be extracted from the archive
- CThe command will print out each filename as it is processed
- DFiles that are present in the archive might overwrite files in /home
- EThe output file will be compressed
11You archived your users’ directories into a file called backup.tar.gz. You then view the archive and see the filenames follow this convention:
home/username/somefile- AHow will you extract just the files for the user called fred?
- Btar –tzf /home/fred < backup.tar.gz
- Ctar –tjf backup.tar.gz /home/fred
- Dtar –xjf backup.tar.gz home/fred/
- Etar –xzf backup.tar.gz home/fred/
- Ftar –xzf backup.tar.gz fred
12Which of the following commands will create a zipfile with the contents of your Documents directory?
- Azip –cf mydocs.zip Documents
- Bzip –c mydocs.zip Documents
- Czip -r mydocs.zip Documents
- Dzip mydocs.zip Documents
- Ezip –f mydocs.zip Documents
13Given a file called documents.zip, how can you see what’s in it without extracting the files?
- Ashowzip documents.zip
- Bzip –lf documents.zip
- Czip –l documents.zip
- Dunzip –list documents.zip
- Eunzip –l documents.zip
14Given a file called documents.zip, how can you extract just the files under ProjectX?
- Azip –x documents.zip ProjectX
- Bunzip documents.zip | grep ProjectX
- Cunzip –t documents.zip ProjectX
- Dunzip documents.zip ProjectX
- Eunzip documents.zip ProjectX/*
15You try to compress a file that is already compressed. Which of the following statements is true?
- AThe file will not be compressed any further than it already was
- BThe compression algorithm needs to be set to the “currently compressed” mode for it to be compressed further
- CThe file will actually be uncompressed
- DThe file will be deleted
- EThe file changed while you were compressing it
16Which of the following commands can be used to compress a file?
(choose three)- Abunzip2
- Bbzip2
- Cgzip
- Dcat
- Ezip
17The three main modes of tar are:
(choose three)- ACopy
- BList
- CCompress
- DCreate
- EExtract
18In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?
- ATells tar to read from the file that follows the flag
- BTells tar to print the name of each file as it is processed
- CTells tar to copy only files, and not directories
- DSpecifies extra compression is to be used
- ETells tar to write to the file that follows the flag
19Which two commands do the same thing?
(choose two)- Atar –czf foo.tar.gz foo
- Btar –c foo | gzip > foo.tar.gz
- Ctar –xzf foo.tar.gz
- Dtar –x foo | gzip
- Etar –tzf foo.tar.gz
20The _____ command is normally executed daily to update the database of all files that are on the system.
- Aupdatedb
- Bsearch
- Clocate
- Dfind
Informationen
- Beschreibung
- Quiz am Linux Essentials Chapter 7 Exam, erstellt von David Harton am 08/06/2018.
- Autor
- David Harton
- Sprache
- English
- Aufrufe
- 139
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz