LPI 101 - Comandos GNU/Linux 3- Marcus Vinicius Braga Alcantara

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Viniciusalcantar
V
Viniciusalcantar
Community Contributor
Quizzes Created: 11 | Total Attempts: 6,093
Questions: 100 | Attempts: 228

SettingsSettingsSettings
LPI 101 - Comandos GNU/Linux 3- Marcus Vinicius Braga Alcantara - Quiz

.


Questions and Answers
  • 1. 

    Qual comando completo "tar" apagaria o arquivo "arq3.pdf" a partir do arquivo "arquivos-pdf.tar" ?

    Explanation
    The given command "tar -f arquivos-pdf.tar --delete arq3.pdf" uses the "tar" command to delete the file "arq3.pdf" from the archive file "arquivos-pdf.tar". The "-f" flag specifies the archive file to be operated on, and the "--delete" option deletes the specified file from the archive.

    Rate this question:

  • 2. 

    Qual comando "tar" deve ser utilizado para desempacotar o arquivo "arquivos-pdf.tar" ?

    Explanation
    All of the given options are correct commands to unpack the file "arquivos-pdf.tar" using the "tar" command. The "x" flag is used to extract the contents of the archive, the "f" flag is used to specify the archive file, and the "v" flag is used to display the progress of the extraction. Therefore, any of the provided commands can be used to successfully unpack the file.

    Rate this question:

  • 3. 

    Supondo que em um diretório corrente "ao qual você se localiza" contenha 10 arquivos no formato "txt", como você faria para comprimir tais arquivos utilizando o formato gzip para um arquivo chamado my-txt.tar.gz ? 

    • A.

      tar -cjvf my-txt.tar.gz *.txt

    • B.

      tar -czvf *.txt my-txt.tar.gz

    • C.

      tar -czvf my-txt.tar.gz *.txt

    • D.

      tar -tzvf my-txt.tar.gz *.txt

    Correct Answer
    C. tar -czvf my-txt.tar.gz *.txt
    Explanation
    The correct answer is "tar -czvf my-txt.tar.gz *.txt". This command uses the tar utility to create a tar archive named "my-txt.tar.gz" and compresses the files with the "*.txt" extension in the current directory using gzip compression. The "-c" flag is used to create a new archive, the "-z" flag is used to compress the files using gzip, the "-v" flag is used to display the progress and details of the compression process, and the "my-txt.tar.gz" specifies the name of the output archive file. Finally, "*.txt" specifies the files to be included in the archive.

    Rate this question:

  • 4. 

    Qual dos comandos abaixo poderia ser utilizado para visualizar os arquivos comprimidos no "my-txt.tar.gz" ?

    • A.

      tar -tzf my-txt.tar.gz

    • B.

      tar -tjvf my-txt.tar.gz

    • C.

      tar -txvf my-txt.tar.gz

    • D.

      N.D.A

    Correct Answer
    A. tar -tzf my-txt.tar.gz
    Explanation
    The command "tar -tzf my-txt.tar.gz" can be used to view the files compressed in the "my-txt.tar.gz" archive.

    Rate this question:

  • 5. 

    Qual comando "tar" deve ser utilizado para descompactar o arquivo "my-txt.tar.gz" ?

    Correct Answer
    tar -xzf my-txt.tar.gz
    tar xzf my-txt.tar.gz
    tar -xzvf my-txt.tar.gz
    tar xzvf my-txt.tar.gz
    Explanation
    The correct answer is "tar -xzf my-txt.tar.gz" because the "x" flag is used to extract files from the archive, the "z" flag is used to filter the archive through gzip, and the "f" flag is used to specify the file name of the archive. Therefore, "tar -xzf my-txt.tar.gz" is the correct command to extract the contents of the "my-txt.tar.gz" file. Similarly, "tar xzf my-txt.tar.gz", "tar -xzvf my-txt.tar.gz", and "tar xzvf my-txt.tar.gz" are also correct commands with the same functionality.

    Rate this question:

  • 6. 

    Supondo que em um diretório corrente "ao qual você se localiza" contenha 10 arquivos no formato "txt", como você faria para comprimir tais arquivos utilizando o formato bzip2 para um arquivo chamado my-txt.tar.bz2 ? (Selecione 2 respostas).

    • A.

      tar -czf my-txt.tar.bz2 *.txt

    • B.

      tar czf my-txt.tar.bz2 *.txt

    • C.

      tar -cjf my-txt.tar.bz2 *.txt

    • D.

      tar cjvf my-txt.tar.bz2 *.txt

    Correct Answer(s)
    C. tar -cjf my-txt.tar.bz2 *.txt
    D. tar cjvf my-txt.tar.bz2 *.txt
    Explanation
    The correct answer is "tar -cjf my-txt.tar.bz2 *.txt" and "tar cjvf my-txt.tar.bz2 *.txt". These options use the "tar" command to create a compressed archive file named "my-txt.tar.bz2" from all the files in the current directory with the ".txt" extension. The "-c" flag is used to create a new archive, the "-j" flag is used to compress the archive using bzip2, and the "-f" flag is used to specify the filename for the archive. The "v" flag is optional and is used to display the progress of the compression process.

    Rate this question:

  • 7. 

    Qual dos comandos abaixo poderia ser utilizado para visualizar os arquivos compactados no "my-txt.tar.bz2" ?

    • A.

      tar -czvf my-txt.tar.bz2

    • B.

      tar -tzf my-txt.tar.bz2

    • C.

      tar -tf my-txt.tar.bz2

    • D.

      tar -tjf my-txt.tar.bz2

    Correct Answer
    D. tar -tjf my-txt.tar.bz2
    Explanation
    The correct answer is "tar -tjf my-txt.tar.bz2". This command uses the "t" option to list the contents of the compressed file, the "j" option to specify that the file is compressed with bzip2, and the "f" option to specify the file name.

    Rate this question:

  • 8. 

    Qual comando "tar" deve ser utilizado para descompactar o arquivo "my-txt.tar.bz2" ? 

    Correct Answer
    tar -xjf my-txt.tar.bz2
    tar xjf my-txt.tar.bz2
    tar -xjvf my-txt.tar.bz2
    tar xjvf my-txt.tar.bz2
    Explanation
    The correct command to use for unpacking the file "my-txt.tar.bz2" is "tar -xjf my-txt.tar.bz2". This command uses the options "-xjf" to extract ("-x") the file, interpret it as a bzip2 compressed archive ("-j"), and display the file names and extraction progress ("-v") while unpacking.

    Rate this question:

  • 9. 

    Supondo que você queira descompactar o arquivo "my-pdf.tar.gz" localizado em seu diretório corrente para o diretório "/home/user/myfiles", qual das alternativas abaixo realizaria tal tarefa ?

    • A.

      tar -xzvf my-pdf.tar.gz -C /home/user/myfiles

    • B.

      tar -xzvf my-pdf.tar.gz -c /home/user/myfiles

    • C.

      tar -xzvf my-pdf.tar.gz -Z /home/user/myfiles

    • D.

      N.D.A

    Correct Answer
    A. tar -xzvf my-pdf.tar.gz -C /home/user/myfiles
    Explanation
    The correct answer is "tar -xzvf my-pdf.tar.gz -C /home/user/myfiles". This command uses the "tar" utility to extract the contents of the "my-pdf.tar.gz" file. The options "-x" and "-z" specify that the file should be extracted and decompressed, while the option "-v" enables verbose output. The option "-f" is used to specify the input file, and "-C" is used to specify the directory where the extracted files should be placed, in this case, "/home/user/myfiles".

    Rate this question:

  • 10. 

    Supondo que você queira adicionar o arquivo "LPI.pdf" ao arquivo "Estudo-LPI.tar", qual das alternativas seria aplicável ?

    • A.

      tar -tf LPI.pdf Estudo-LPI.tar

    • B.

      tar -rf LPI.pdf Estudo-LPI.tar

    • C.

      tar -rf Estudo-LPI.tar LPI.pdf

    • D.

      N.D.A

    Correct Answer
    C. tar -rf Estudo-LPI.tar LPI.pdf
    Explanation
    The correct answer is "tar -rf Estudo-LPI.tar LPI.pdf". This is because the "-r" flag is used to append files to an existing tar archive, and the "f" flag specifies the name of the tar archive file. Therefore, the command "tar -rf Estudo-LPI.tar LPI.pdf" would add the file "LPI.pdf" to the existing tar archive "Estudo-LPI.tar".

    Rate this question:

  • 11. 

    Como você faria para compactar o arquivo "arquivo.pdf" com a ferramenta gzip ? (Selecione 2 respostas).

    • A.

      gzip -c arquivo.pdf

    • B.

      gzip arquivo.pdf

    • C.

      gzip -9 arquivo.pdf

    • D.

      gunzip arquivo.pdf

    Correct Answer(s)
    B. gzip arquivo.pdf
    C. gzip -9 arquivo.pdf
    Explanation
    To compress the file "arquivo.pdf" using the gzip tool, you can use the command "gzip arquivo.pdf" or "gzip -9 arquivo.pdf". The first command will compress the file and replace it with a compressed version, while the second command will compress the file with maximum compression level.

    Rate this question:

  • 12. 

    Qual das opções da ferramenta gzip pode ser utilizada para otimizar (compress better) a compactação de arquivos ?

    • A.

      -c

    • B.

      -f

    • C.

      -l

    • D.

      -9

    Correct Answer
    D. -9
    Explanation
    The option "-9" can be used to optimize the compression of files with the gzip tool. This option sets the compression level to the highest level, resulting in better compression but also taking more time to process.

    Rate this question:

  • 13. 

    Quais das alternativas abaixo pode ser utilizada para descompactar o arquivo "arquivo.gz" ?

    • A.

      gzip -d arquivo.gz

    • B.

      gzip -l arquivo.gz

    • C.

      gzip -t arqivo.gz

    • D.

      gunzip arquivo.gz

    Correct Answer(s)
    A. gzip -d arquivo.gz
    D. gunzip arquivo.gz
    Explanation
    Both "gzip -d arquivo.gz" and "gunzip arquivo.gz" can be used to decompress the file "arquivo.gz".

    Rate this question:

  • 14. 

    Quais das alternativas abaixo pode ser utilizada para listar o arquivo "arquivo.pdf" dentro do arquivo "arquivo.pdf.gz"?

    • A.

      gzip -t arquivo.pdf.gz

    • B.

      gzip -l arquivo.pdf.gz

    • C.

      gzip -c arquivo.pdf.gz

    • D.

      N.D.A

    Correct Answer
    B. gzip -l arquivo.pdf.gz
    Explanation
    The option "gzip -l arquivo.pdf.gz" can be used to list the contents of the file "arquivo.pdf.gz".

    Rate this question:

  • 15. 

    Qual comando pode ser utilizado para testar a integridade do arquivo "arquivo.pdf.gz" ?

    Correct Answer
    gzip -t arquivo.pdf.gz
    Explanation
    O comando "gzip -t arquivo.pdf.gz" pode ser utilizado para testar a integridade do arquivo "arquivo.pdf.gz". O parâmetro "-t" é usado para testar se o arquivo está corrompido ou não.

    Rate this question:

  • 16. 

     Quais das alternativas abaixo pode ser utilizada para extrair o arquivo "arquivo.pdf.gz" para a saída padrão ?

    • A.

      gzip -c arquivo.pdf.gz

    • B.

      gzip -d arquivo.pdf.gz

    • C.

      gzip -t arquivo.pdf.gz

    • D.

      gzip -l arqivo.pdf.gz

    Correct Answer
    A. gzip -c arquivo.pdf.gz
    Explanation
    The correct answer is "gzip -c arquivo.pdf.gz". This command will extract the file "arquivo.pdf.gz" and send the output to the standard output.

    Rate this question:

  • 17. 

    Qual das alternativas abaixo pode ser utilizada para otimizar (compress better) a compactação dos arquivos no diretório /home/MYFILES?

    • A.

      gzip -f /home/MYFILES

    • B.

      gzip -r /home/MYFILES

    • C.

      gzip -9rv /home/MYFILES

    • D.

      N.D.A

    Correct Answer
    C. gzip -9rv /home/MYFILES
    Explanation
    The correct answer is "gzip -9rv /home/MYFILES". This command will use the gzip utility with the highest compression level (-9) and recursively (-r) compress all files and directories in the /home/MYFILES directory. The "v" option will display the progress and details of the compression process. This combination of options will optimize the compression of the files in the specified directory.

    Rate this question:

  • 18. 

    Como você faria para compactar o arquivo "arquivo.pdf" com a ferramenta bzip2 ?

    • A.

      bzip2 -d arquivo.pdf

    • B.

      bzip2 -c arquivo.pdf

    • C.

      bzip2 arquivo.pdf

    • D.

      bzip2 -l arquivo.pdf

    Correct Answer
    C. bzip2 arquivo.pdf
    Explanation
    The correct answer is "bzip2 arquivo.pdf". This command uses the bzip2 tool to compress the file "arquivo.pdf".

    Rate this question:

  • 19. 

    Como você faria para forçar a compactação do arquivo "arquivo.pdf" com a ferramenta bzip2 ?

    • A.

      bzip2 -9 arquivo.pdf

    • B.

      bzip2 -z arquivo.pdf

    • C.

      bzip2 -c arquivo.pdf

    • D.

      bzip2 -t arqivo.pdf

    Correct Answer
    B. bzip2 -z arquivo.pdf
    Explanation
    The correct answer is "bzip2 -z arquivo.pdf". The "-z" option is used to compress the file with bzip2.

    Rate this question:

  • 20. 

    Qual das alternativas abaixo pode ser utilizada para extrair o arquivo "arquivo.pdf.bz2" ? 

    • A.

      bzip2 -d arquivo.pdf.bz2

    • B.

      bzip2 -t arquivo.pdf.bz2

    • C.

      bzip2 -z arquivo.pdf.bz2

    • D.

      N.D.A

    Correct Answer
    A. bzip2 -d arquivo.pdf.bz2
    Explanation
    The correct answer is "bzip2 -d arquivo.pdf.bz2". This command is used to extract or decompress a file that has been compressed using the bzip2 algorithm. In this case, it is specifically used to extract the file "arquivo.pdf.bz2" and restore it to its original form. The "-d" flag stands for "decompress" and tells the bzip2 program to decompress the specified file.

    Rate this question:

  • 21. 

    Supondo que você queira empacotar todos arquivos pdf localizados em seu diretório corrente utilizando a ferramenta cpio. Qual das alternativas abaixo você utilizaria?

    • A.

      cpio -o *.pdf > empacotados.psd.cpio

    • B.

      ls | cpio -ov > empacotados.pdf.cpio

    • C.

      ls | cpio -idv < empacotados.pdf.cpio

    • D.

      ls | cpio -p *.pdf > empacotados.pdf.cpio

    Correct Answer
    B. ls | cpio -ov > empacotados.pdf.cpio
    Explanation
    The correct answer is "ls | cpio -ov > empacotados.pdf.cpio". This command uses the "ls" command to list all the files in the current directory, and then pipes the output to the "cpio" command. The "-o" option in the "cpio" command specifies that it should create an archive, and the "-v" option enables verbose output. The ">" symbol is used to redirect the output to a file named "empacotados.pdf.cpio". Therefore, this command will create an archive file named "empacotados.pdf.cpio" containing all the PDF files in the current directory.

    Rate this question:

  • 22. 

    Qual das alternativas abaixo você utilizaria para desempacotar o arquivo "empacotados.pdf.cpio" ?

    • A.

      cpio -iv < empacotados.pdf.cpio

    • B.

      cpio -idv empacotados.pdf.cpio

    • C.

      cpio -i > empacotados.pdf.cpio

    • D.

      N.D.A

    Correct Answer
    A. cpio -iv < empacotados.pdf.cpio
    Explanation
    The correct answer is "cpio -iv < empacotados.pdf.cpio" because the "-i" flag is used to extract files from an archive, the "-v" flag is used to display verbose output, and the "

    Rate this question:

  • 23. 

    Supondo que você está localizado em seu diretório home "/home/user" e deseja realizar um backup de todos os seus documentos para um HD exeterno localizado em "/media/user/FLASH_HD". Qual comando abaixo "cpio" você poderia utilizar para realizar uma cópia de toda a estrutura de diretórios e arquivos do seu usuário para o HD externo ?

    • A.

      ls -R | cpio -pdv /media/user/FLASH_HD

    • B.

      ls -Rdv | cpio -pdv /media/user/FLASH_HD

    • C.

      find . -depth | cpio -pmv /media/user/FLASH_HD

    • D.

      find . -depth | cpio -pdv /media/user/FLASH_HD

    Correct Answer
    D. find . -depth | cpio -pdv /media/user/FLASH_HD
    Explanation
    The correct answer is "find . -depth | cpio -pdv /media/user/FLASH_HD". This command uses the "find" command to locate all files and directories in the current directory and its subdirectories. The "-depth" option ensures that the directories are processed before their contents. The output of the "find" command is then piped to the "cpio" command, which copies the files and directories to the specified destination "/media/user/FLASH_HD" while preserving their structure and permissions. The "-p" option of "cpio" ensures that the directories are created if they don't exist, and the "-d" option preserves the directories' structure. The "-v" option provides verbose output, displaying the files as they are copied.

    Rate this question:

  • 24. 

    Qual das alternativas abaixo pode ser utilizada para listar o conteúdo do arquivo "empacotados.cpio" ?

    • A.

      cpio -t < empacotados.cpio

    • B.

      cpio -t empacotados.cpio

    • C.

      cpio -i < empacotados.cpio

    • D.

      cpio -idv < empacotados.cpio

    Correct Answer
    A. cpio -t < empacotados.cpio
    Explanation
    The correct answer is "cpio -t < empacotados.cpio" because the "-t" option is used to list the contents of a cpio archive, and the "

    Rate this question:

  • 25. 

    Qual das alternativas abaixo irá criar um empacotamento dos arquivos em seu diretório corrente utilizando o formato tar ?

    • A.

      ls | cpio -i --format tar > empacotados.tar

    • B.

      ls | cpio -i -x tar > empacotados.tar

    • C.

      ls | cpio -o -H tar > empacotados.tar

    • D.

      ls | cpio -ov -h tar > empacotados.tar

    Correct Answer
    C. ls | cpio -o -H tar > empacotados.tar
    Explanation
    The correct answer is "ls | cpio -o -H tar > empacotados.tar". This command uses the "ls" command to list the files in the current directory, pipes the output to the "cpio" command, which creates an archive in the tar format using the "-o" option, and specifies the "-H tar" option to indicate that the archive format should be tar. Finally, the output of the "cpio" command is redirected to a file named "empacotados.tar" using the ">" operator.

    Rate this question:

  • 26. 

    Para lê e escrever o mesmo número de bytes com o comando dd, podemos ao invés de especificar o ibs e obs, especificar somente a opção bs.

    • A.

      Verdadeiro

    • B.

      Falso

    Correct Answer
    A. Verdadeiro
    Explanation
    By specifying only the option "bs" instead of "ibs" and "obs" in the dd command, we can read and write the same number of bytes. This means that the input and output block sizes will be the same, resulting in a more efficient and streamlined process.

    Rate this question:

  • 27. 

    Qual das alternativas abaixo iria criar uma imagem ISO a partir de um CD/DVD-ROM para um HD externo montado em /mnt/HD utilizando o comando dd, sendo especificado uma taxa de leitura e gravação de 4096 bytes, evitando a parada do processamento em caso de erros e habilitando o padding em blocos parciais de entrada com nulos ?

    • A.

      dd if=/dev/cdrom of=/mnt/HD/ bs=4096 conv=noerror

    • B.

      dd if=/dev/cdrom of=/mnt/HD/imagem.iso bs=4096b conv=sync

    • C.

      dd if=/dev/cdrom of=/mnt/HD/imagem.iso bs=4096 conv=noerror,sync

    • D.

      N.D.A

    Correct Answer
    C. dd if=/dev/cdrom of=/mnt/HD/imagem.iso bs=4096 conv=noerror,sync
    Explanation
    The correct answer is "dd if=/dev/cdrom of=/mnt/HD/imagem.iso bs=4096 conv=noerror,sync". This command uses the "dd" command to create an ISO image from a CD/DVD-ROM. The "if=/dev/cdrom" specifies the input file as the CD/DVD-ROM, and the "of=/mnt/HD/imagem.iso" specifies the output file as the image file to be created in the /mnt/HD directory. The "bs=4096" sets the block size to 4096 bytes, and the "conv=noerror,sync" options ensure that the command continues processing even in case of errors and enables padding with nulls in partial input blocks.

    Rate this question:

  • 28. 

    Qual comando dd irá clonar a partição /dev/sdb1 para /dev/sdc1 especificando uma taxa de leitura e gravação de 1M e evitando a parada do processamento caso ocorra erros ?

    Correct Answer
    dd if=/dev/sdb1 of=/dev/sdc1 bs=1M conv=noerror
    dd if=/dev/sdb1 of=/dev/sdc1 ibs=1M obs=1M conv=noerror
    Explanation
    The correct answer is "dd if=/dev/sdb1 of=/dev/sdc1 bs=1M conv=noerror" and "dd if=/dev/sdb1 of=/dev/sdc1 ibs=1M obs=1M conv=noerror". Both of these commands will clone the partition /dev/sdb1 to /dev/sdc1 with a read and write rate of 1M and will continue processing even if errors occur.

    Rate this question:

  • 29. 

    Qual comando dd irá criar uma imagem do setor de inicialização do sistema (MBR)?

    • A.

      dd if=/dev/sda of=/mnt/HD/MBR.img bs=512 count=1

    • B.

      dd if=/dev/sda of=/mnt/HD/MBR.img bs=512

    • C.

      dd if=/dev/sda of=/mnt/HD/MBR.img bs=1024

    • D.

      N.D.A

    Correct Answer
    A. dd if=/dev/sda of=/mnt/HD/MBR.img bs=512 count=1
    Explanation
    The correct answer is "dd if=/dev/sda of=/mnt/HD/MBR.img bs=512 count=1". This command will create an image of the system's boot sector (MBR) by using the dd command. The "if=/dev/sda" specifies the input file as the /dev/sda device, which represents the entire disk. The "of=/mnt/HD/MBR.img" specifies the output file as MBR.img in the /mnt/HD directory. The "bs=512" sets the block size to 512 bytes, and the "count=1" specifies to copy only one block, which is the size of the MBR.

    Rate this question:

  • 30. 

    Como você faria para compactar o arquivo "arquivo.pdf" com a ferramenta xz ? (Selecione 2 respostas).

    • A.

      xz arquivo.pdf

    • B.

      xz -cv arqivo.pdf

    • C.

      xz -dv arquivo.pdf

    • D.

      xz -zv arquivo.pdf

    Correct Answer(s)
    A. xz arquivo.pdf
    D. xz -zv arquivo.pdf
    Explanation
    The correct answers are "xz arquivo.pdf" and "xz -zv arquivo.pdf". The xz command is used to compress files with the xz compression algorithm. The "-z" option is used to specify that the file should be compressed, and the "-v" option is used to display the progress and details of the compression process. Therefore, the correct commands to compress the file "arquivo.pdf" with the xz tool would be "xz arquivo.pdf" and "xz -zv arquivo.pdf".

    Rate this question:

  • 31. 

    Qual dos comandos abaixo irá compactar o arquivo "arquivo.pdf" para arquivo.pdf.xz, porém mantendo o arquivo de entrada (Arquivo original) ?

    • A.

      xz -zfv arquivo.pdf

    • B.

      xz -k arquivo.pdf

    • C.

      xz -cv arqivo.pdf

    • D.

      xz -l arqivo.pdf

    Correct Answer
    B. xz -k arquivo.pdf
    Explanation
    The command "xz -k arquivo.pdf" will compress the file "arquivo.pdf" into "arquivo.pdf.xz" while keeping the original file intact. The "-k" option in the command specifies that the original file should be kept.

    Rate this question:

  • 32. 

    Especifique o comando "xz" completo que irá listar informações sobre o arquivo "arquivo.pdf.xz" ?

    Correct Answer
    xz -l arquivo.pdf.xz
    Explanation
    The command "xz -l arquivo.pdf.xz" is used to list information about the file "arquivo.pdf.xz".

    Rate this question:

  • 33. 

    Qual comando "xz" completo irá descompactar o arquivo "arquivo.pdf.xz" ?

    Correct Answer
    xz -d arquivo.pdf.xz
    Explanation
    The correct command to decompress the file "arquivo.pdf.xz" is "xz -d arquivo.pdf.xz". The "-d" option specifies that the file should be decompressed.

    Rate this question:

  • 34. 

    Qual comando "xz" completo irá testar a integridade do arquivo "arquivo.pdf.xz" ?

    Correct Answer
    xz -t arquivo.pdf.xz
    Explanation
    The command "xz -t arquivo.pdf.xz" is used to test the integrity of the file "arquivo.pdf.xz" using the xz compression algorithm. This command checks if the compressed file is intact and can be successfully decompressed without any errors.

    Rate this question:

  • 35. 

    Qual dos comandos abaixo irá retornar uma lista dos processos que estão em execução no terminal atual ?

    • A.

      top

    • B.

      ps

    • C.

      htop

    • D.

      kill

    Correct Answer
    B. ps
    Explanation
    The correct answer is "ps". The "ps" command is used to display information about the processes that are currently running on the system. It provides a snapshot of the current processes, including their process IDs (PIDs), CPU usage, memory usage, and other details. By running the "ps" command in the terminal, a list of the processes running in the current terminal session will be displayed.

    Rate this question:

  • 36. 

    Qual comando "ps" (Com opção) irá listar os processos que estão em execução em todos os terminais?

    Correct Answer
    ps -a
    ps a
    Explanation
    The "ps -a" and "ps a" commands both list the processes that are currently running in all terminals. The "-a" option in both commands stands for "all" and includes processes from all users. The "ps a" command is an alternative syntax for the same functionality.

    Rate this question:

  • 37. 

    Qual comando "ps" (Com opção) irá listar todos processos que estão sendo executados no SO?

    Correct Answer
    ps -A
    Explanation
    The command "ps -A" is used to list all processes that are currently running on the operating system. This command displays information such as the process ID (PID), the terminal associated with the process, the CPU usage, and the command that initiated the process. By using the "-A" option, the command includes all processes, regardless of their ownership or terminal association.

    Rate this question:

  • 38. 

    Qual comando irá listar todos os processos, exibindo o nome dos usuários que os iniciaram ?

    • A.

      ps a

    • B.

      ps ag

    • C.

      ps aux

    • D.

      ps ac

    Correct Answer
    C. ps aux
    Explanation
    The correct answer is "ps aux". This command will list all processes and display the usernames of the users who started them.

    Rate this question:

  • 39. 

    Quais comandos exibem detalhes sobre os processos que estão sendo executados em tempo real no servidor ? (Selecione 2 respostas).

    • A.

      ps

    • B.

      top

    • C.

      jobs

    • D.

      htop

    Correct Answer(s)
    B. top
    D. htop
    Explanation
    The commands "top" and "htop" display details about the processes that are currently being executed in real-time on the server. These commands provide information such as the CPU and memory usage, process IDs, and the amount of time the processes have been running. By using these commands, users can monitor and manage the processes running on the server efficiently.

    Rate this question:

  • 40. 

    Sobre os comando kill e killall. Assinale as afirmativas corretas. (Selecione 2 respostas).

    • A.

      Killall envia sinais para os aplicativos pelo PID do processo

    • B.

      Killall envia sinais para os aplicativos pelo seu nome

    • C.

      Kill envia sinais para os aplicativos pelo nome do processo

    • D.

      Kill envia sinais para os aplicativos pelo número do processo

    Correct Answer(s)
    B. Killall envia sinais para os aplicativos pelo seu nome
    D. Kill envia sinais para os aplicativos pelo número do processo
    Explanation
    The correct answer is that "Killall envia sinais para os aplicativos pelo seu nome" (Killall sends signals to applications by their name) and "Kill envia sinais para os aplicativos pelo número do processo" (Kill sends signals to applications by the process number).

    Rate this question:

  • 41. 

    Sobre os comando nice e renice. Assinale as afirmativas corretas. (Selecione 2 respostas).

    • A.

      nice – Inicia um aplicativo com a prioridade desejada

    • B.

      nice – Muda a prioridade de um aplicativo já em execução

    • C.

      renice – Inicia um aplicativo com a prioridade desejada

    • D.

      renice – Muda a prioridade de um aplicativo já em execução

    Correct Answer(s)
    A. nice – Inicia um aplicativo com a prioridade desejada
    D. renice – Muda a prioridade de um aplicativo já em execução
    Explanation
    The correct answer states that the "nice" command can be used to start an application with the desired priority, and the "renice" command can be used to change the priority of an already running application. This means that "nice" can be used to set the priority of a new application, while "renice" can be used to adjust the priority of an application that is already running.

    Rate this question:

  • 42. 

    Como mudar a prioridade do updatedb (que já está em execução com o PID 1111) para a prioridade 15 positivo ?

    Correct Answer(s)
    renice -n +15 1111
    renice -n 15 1111
    Explanation
    Both "renice -n +15 1111" and "renice -n 15 1111" are correct answers for changing the priority of the "updatedb" process that is already running with PID 1111 to a positive priority of 15.

    Rate this question:

  • 43. 

    Qual o tempo de atualização padrão em segundos na saída do comando top?

    • A.

      1

    • B.

      3

    • C.

      5

    • D.

      10

    Correct Answer
    C. 5
    Explanation
    The correct answer is 5 because the question is asking for the default update time in seconds for the output of the "top" command. The "top" command is a system monitoring tool in Unix-like operating systems, and it displays real-time information about processes and system performance. By default, the "top" command updates every 5 seconds, providing users with the most up-to-date information about the system's status.

    Rate this question:

  • 44. 

    Qual das opções ("Opção interna do comando top") abaixo pode ser utilizada para alterar a prioridade de um processo já em execução ?

    • A.

      -t

    • B.

      -d

    • C.

      -b

    • D.

      -r

    Correct Answer
    D. -r
    Explanation
    The option "-r" can be used to change the priority of a process that is already running.

    Rate this question:

  • 45. 

    Qual comando "top" irá ignorar processos ociosos ?

    • A.

      top -b

    • B.

      top -i

    • C.

      top -d

    • D.

      N.D.A

    Correct Answer
    B. top -i
    Explanation
    The correct answer is "top -i". The "-i" option in the "top" command stands for "ignore idle processes". By using this option, the "top" command will exclude any idle or inactive processes from its output, providing a more focused view of the active processes running on the system.

    Rate this question:

  • 46. 

    Qual das alternativas abaixo irá definir o tempo de atualização para 2 segundos na saída padrão utilizando o comando top?

    • A.

      top -d 2

    • B.

      top -n 2

    • C.

      top -i 2

    • D.

      N.D.A

    Correct Answer
    A. top -d 2
    Explanation
    The correct answer is "top -d 2". The "-d" option in the "top" command is used to specify the delay between screen updates in seconds. By using "top -d 2", the time of update for the standard output will be set to 2 seconds.

    Rate this question:

  • 47. 

    Qual comando irá atualizar a saída padrão do comando top 4 vezes e depois sair do programa?

    • A.

      top -d 4

    • B.

      top -i 4

    • C.

      top -n 4

    • D.

      N.D.A

    Correct Answer
    C. top -n 4
    Explanation
    The correct answer is "top -n 4". The "-n" option in the "top" command is used to specify the number of iterations the command should run before exiting. In this case, "-n 4" means that the command will run 4 times before exiting.

    Rate this question:

  • 48. 

    Qual comando top irá listar apenas os processos do usuário vinicius?

    • A.

      top -L vinicius

    • B.

      top -u vinicius

    • C.

      top -l vinicius

    • D.

      N.D.A

    Correct Answer
    B. top -u vinicius
    Explanation
    The correct answer is "top -u vinicius". The "-u" option in the "top" command is used to specify a specific user whose processes should be displayed. In this case, "top -u vinicius" will list only the processes belonging to the user "vinicius".

    Rate this question:

  • 49. 

    Qual opção do comando top irá obter o resultado na saída padrão de forma não interativa? (Especifique o comando completo).

    Correct Answer
    top -b
    Explanation
    The option "-b" in the "top" command stands for "batch mode". When this option is used, the "top" command will run in non-interactive mode and will send the output directly to the standard output instead of displaying it on the terminal. This is useful when the output of the "top" command needs to be processed or redirected to a file.

    Rate this question:

  • 50. 

    Qual comando jobs irá listar além do número do trabalho de uma tarefa o PID do seu processo?

    Correct Answer
    jobs -l
    Explanation
    The command "jobs -l" is used to list all the active jobs along with their respective process IDs (PIDs). This command provides additional information about the jobs, including the job number and the PID of each job's process.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 14, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 14, 2017
    Quiz Created by
    Viniciusalcantar
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.