brayhan gutierrez cespedes
Test por , creado hace más de 1 año

sadsadsaasd

5
0
0
brayhan gutierrez cespedes
Creado por brayhan gutierrez cespedes hace más de 6 años
Cerrar

7

Pregunta 1 de 20

1

Compression on a file works by:

Selecciona una de las siguientes respuestas posibles:

  • Removing redundant information

  • Eliminating gaps within the file

  • Storing most of the data on removable media and just leaving a pointer

  • Consolidating multiple files into one

  • Removing the high order bit from each byte

Explicación

Pregunta 2 de 20

1

In general, for which of the following would you want to use lossless compression?

Selecciona una de las siguientes respuestas posibles:

  • A log file

  • A movie

  • A JPEG image

  • An mp3 audio file

  • An encrypted email

Explicación

Pregunta 3 de 20

1

Lossy compression:

Selecciona una o más de las siguientes respuestas posibles:

  • Decompresses to an identical version as the original

  • Is often used with documents

  • Is often used with images

  • Usually results better compression than lossless

  • Sacrifices some quality

Explicación

Pregunta 4 de 20

1

You type gzip myfile.tar. What happens?

Selecciona una o más de las siguientes respuestas posibles:

  • myfile.tar is removed

  • myfile.tar.gz holds a compressed version of myfile.tar

  • An error; you forgot to specify the file with –f

  • myfile.tar is unarchived into the current directory

  • An error; you forgot to pass the name of the output file

Explicación

Pregunta 5 de 20

1

How would you obtain output similar to the following?
compressed​​ ​​​uncompressed ratio uncompressed_name
278168 1016950 72.6% tags

Selecciona una de las siguientes respuestas posibles:

  • gunzip –t tags

  • file tags

  • gzip –l tags

Explicación

Pregunta 6 de 20

1

Which command would you use to archive the Documents directory and compress it with bzip2 compression?

Selecciona una de las siguientes respuestas posibles:

  • tar –czf documents.tbz Documents

  • tar –cjf Documents

  • tar –fzc Documents documents.tbz

  • tar –cjf documents.tbz Documents

  • tar –cf Documents documents.tbz

Explicación

Pregunta 7 de 20

1

Which flag would you pass to tar in order to have it make a new archive?

Selecciona una de las siguientes respuestas posibles:

  • –t

  • -c

  • –j

  • -x

  • –n

Explicación

Pregunta 8 de 20

1

Which command will show what is inside the compressed tarball with a name of foo.tar.gz?

Selecciona una de las siguientes respuestas posibles:

  • tar –tjf foo.tar.gz

  • tar –tzf foo.tar.gz

  • tar –lf foo.tar.gz

  • tar –xf foo.tar.gz

  • tar –tf foo.tar.gz

Explicación

Pregunta 9 de 20

1

In the command tar –cvjf foo.tbz a b c, what are a, b, and c?

Selecciona una de las siguientes respuestas posibles:

  • File names to be added to the archive

  • Matching operators; anything starting with a, b, or c will be added

  • a is the directory that will be prepended to files; b and c are files inside it

  • Extra flags passed to tar

  • Nothing; -cvjf only expects one parameter

Explicación

Pregunta 10 de 20

1

Given the command tar –cvjf homedirs.tbz /home, which of the following are true?

Selecciona una o más de las siguientes respuestas posibles:

  • The /home directory will be restored with the contents of homedirs.tbz

  • Only files starting with /home will be extracted from the archive

  • The command will print out each filename as it is processed

  • Files that are present in the archive might overwrite files in /home

  • The output file will be compressed

Explicación

Pregunta 11 de 20

1

You 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

Selecciona una de las siguientes respuestas posibles:

  • How will you extract just the files for the user called fred?

  • tar –tzf /home/fred < backup.tar.gz

  • tar –tjf backup.tar.gz /home/fred

  • tar –xjf backup.tar.gz home/fred/

  • tar –xzf backup.tar.gz home/fred/

  • tar –xzf backup.tar.gz fred

Explicación

Pregunta 12 de 20

1

Which of the following commands will create a zipfile with the contents of your Documents directory?

Selecciona una de las siguientes respuestas posibles:

  • zip –cf mydocs.zip Documents

  • zip –c mydocs.zip Documents

  • zip -r mydocs.zip Documents

  • zip mydocs.zip Documents

  • zip –f mydocs.zip Documents

Explicación

Pregunta 13 de 20

1

Given a file called documents.zip, how can you see what’s in it without extracting the files?

Selecciona una de las siguientes respuestas posibles:

  • showzip documents.zip

  • zip –lf documents.zip

  • zip –l documents.zip

  • unzip –list documents.zip

  • unzip –l documents.zip

Explicación

Pregunta 14 de 20

1

Given a file called documents.zip, how can you extract just the files under ProjectX?

Selecciona una de las siguientes respuestas posibles:

  • zip –x documents.zip ProjectX

  • unzip documents.zip | grep ProjectX

  • unzip –t documents.zip ProjectX

  • unzip documents.zip ProjectX

  • unzip documents.zip ProjectX/*

Explicación

Pregunta 15 de 20

1

You try to compress a file that is already compressed. Which of the following statements is true?

Selecciona una de las siguientes respuestas posibles:

  • The file will not be compressed any further than it already was

  • The compression algorithm needs to be set to the “currently compressed” mode for it to be compressed further

  • The file will actually be uncompressed

  • The file changed while you were compressing it

  • The file will be deleted

Explicación

Pregunta 16 de 20

1

Which of the following commands can be used to compress a file?

Selecciona una o más de las siguientes respuestas posibles:

  • bunzip2

  • bzip2

  • gzip

  • zip

  • cat

Explicación

Pregunta 17 de 20

1

The three main modes of tar are:

Selecciona una o más de las siguientes respuestas posibles:

  • Copy

  • List

  • Compress

  • Extract

  • Create

Explicación

Pregunta 18 de 20

1

In the command tar –czf foo.tar.gz bar, what is the purpose of the f flag?

Selecciona una de las siguientes respuestas posibles:

  • Tells tar to read from the file that follows the flag

  • Tells tar to print the name of each file as it is processed

  • Tells tar to copy only files, and not directories

  • Specifies extra compression is to be used

  • Tells tar to write to the file that follows the flag

Explicación

Pregunta 19 de 20

1

Which two commands do the same thing?

Selecciona una o más de las siguientes respuestas posibles:

  • tar –czf foo.tar.gz foo

  • tar –c foo | gzip > foo.tar.gz

  • tar –xzf foo.tar.gz

  • tar –x foo | gzip

  • tar –tzf foo.tar.gz

Explicación

Pregunta 20 de 20

1

Selecciona la opción correcta del menú desplegable para completar el texto.

The ( updatedb, search, locate, find ) command is normally executed daily to update the database of all files that are on the system.

Explicación