2.
Qual é o arquivo da distribuição Debian GNU/Linux onde contém informações de repositórios para arquivos .deb ?
Correct Answer
A. /etc/apt/sources.list
Explanation
The correct answer is /etc/apt/sources.list. This file in the Debian GNU/Linux distribution contains information about repositories for .deb files. It is used by the Advanced Package Tool (APT) to determine where to download packages from and which versions are available. The sources.list file lists the URLs or file paths of the repositories, allowing users to easily add or remove software sources for package installation and updates.
3.
Qual dos comandos "yum" abaixo pode ser utilizado para pesquisar por pacotes?
Correct Answer
A. yum search
Explanation
The command "yum search" can be used to search for packages.
4.
Qual comando abaixo pode ser usado para instalar o pacote sudo_1.7.4p4-5_i386.deb ?
Correct Answer
A. dpkg -i sudo_1.7.4p4-5_i386.deb
Explanation
The correct answer is "dpkg -i sudo_1.7.4p4-5_i386.deb". This command is used to install a package in Debian-based systems using the dpkg package management tool. The "-i" option specifies that the package should be installed, and "sudo_1.7.4p4-5_i386.deb" is the name of the package file that needs to be installed.
5.
Qual o comando que atualiza as informações dos repositórios de uma distribuição Debian GNU/Linux ?
Correct Answer
A. aptitude update
Explanation
The correct answer is "aptitude update". This command is used to update the information about the available packages in the repositories of a Debian GNU/Linux distribution. It downloads the latest package lists from the repositories and updates the cache on the local machine, allowing the user to install or upgrade packages using the most recent information.
6.
Você deseja instalar um novo pacote de software, mas é apenas disponível no formato RPM, sendo que você está utilizando o Debian Linux. Qual dos seguintes iria ajudá-lo para instalação de um pacote RPM em seu sistema Debian?
Explanation
Alien é a resposta correta porque é uma ferramenta que permite a conversão de pacotes entre diferentes formatos, incluindo RPM para DEB. Portanto, ao utilizar o Alien, você poderá converter o pacote RPM para um formato compatível com o Debian Linux e assim conseguir instalá-lo em seu sistema.
7.
Qual comando pode ser usado para remover um pacote e seus arquivos de configuração ?
Correct Answer
A. apt-get remove --purge
Explanation
The correct answer is "apt-get remove --purge" because this command is used to remove a package and its configuration files completely from the system. The "--purge" option ensures that all associated files and configurations are removed along with the package.
8.
Qual dos comandos abaixo pode ser usado para instalar o pacote xsudoky-1.0.5-1.x86_64.rpm ?
Correct Answer
A. rpm --install xsudoky-1.0.5-1.x86_64.rpm
Explanation
The correct answer is "rpm --install xsudoky-1.0.5-1.x86_64.rpm". This command is used to install the package xsudoky-1.0.5-1.x86_64.rpm.
9.
Com qual comando é possível visualizar todos os pacotes RPM instalados ?
Correct Answer
A. rpm -qa
Explanation
The correct answer is "rpm -qa". This command is used to query all installed RPM packages on a system. It provides a list of all the packages along with their versions that are currently installed on the system.
10.
Você vê a seguinte saída ao tentar instalar um pacote de atualização ao executar o seguinte comando: rpm -i gthumb-2.2.0.i386.rpm1.0.1.i386.rpm :--->> "gthumb-1.0.1.i386.rpm já está instalado". Qual comando permitirá que você instale a versão atualizada ?
Correct Answer
A. rpm -U gthumb-2.2.0.i3S6.rpm
Explanation
The correct answer is "rpm -U gthumb-2.2.0.i3S6.rpm". The -U option in the rpm command stands for "upgrade", which allows you to upgrade an already installed package to a newer version. By using the -U option and specifying the name of the updated package, you can install the updated version of gthumb.
11.
Qual comando do "apt" é utilizado para atualizar todos os pacotes instalados no sistema?
Correct Answer
A. apt-get upgrade
Explanation
The correct answer is "apt-get upgrade." This command is used to update all the installed packages on the system. It upgrades the packages to their latest versions, ensuring that the system has the most up-to-date software.
12.
Qual comando do gerenciador de pacotes YUM é usado quando desejamos atualizar a lista de pacotes a partir do arquivo de repositório do Sistema ?
Correct Answer
A. yum update
Explanation
The correct answer is "yum update". This command is used in the YUM package manager to update the package list from the repository file of the system. It allows the user to download and install the latest versions of packages available in the repository.
13.
Qual comando rpm com parâmetro irá instalar um pacote sem verificar suas dependências ?
Correct Answer
A. rpm -i --nodeps
Explanation
The correct answer is "rpm -i --nodeps". This command will install a package without checking its dependencies. The "-i" flag is used to install the package, and the "--nodeps" flag is used to skip dependency checks.
14.
O que irá acontecer quando o seguinte comando for executado "rpm -Uvh file" ?
Correct Answer
A. O pacote instalado ou atualizado com o pacote file, dando sinais de saída e hash detalhado para mostrar o progresso de instalação do pacote.
Explanation
When the command "rpm -Uvh file" is executed, the installed package will be updated or upgraded with the package file. The command will give output signals and a detailed hash to show the progress of the package installation.
15.
Por padrão, em qual diretório ficam armazenados os pacotes que foram baixados pelo yum ?
Correct Answer
A. /var/cache/yum
Explanation
The correct answer is /var/cache/yum. This directory is the default location where yum stores downloaded packages.
16.
Especifique o caminho completo do arquivo de configuração do gerenciador de pacotes YUM.
Correct Answer
/etc/yum.conf
Explanation
The correct answer is /etc/yum.conf. This file is located in the /etc directory and is the configuration file for the YUM package manager. YUM is used in many Linux distributions to manage software packages, and the yum.conf file contains various settings and options for the package manager. By specifying the complete path of this file, users can access and modify the YUM configuration as needed.
17.
Quais comandos abaixo permite gerenciar pacotes .deb ? (Selecione 2 respostas).
Correct Answer(s)
A. dpkg
A. dselect
Explanation
The correct answers for managing .deb packages are dpkg and dselect. dpkg is a package manager used for installing, removing, and managing individual .deb packages. dselect is a higher-level package manager that provides a more user-friendly interface for managing packages, including the ability to select and install multiple packages at once.
18.
Qual o comando que pode ser utilizado para converter pacotes ".deb" ".rpm" e "tgz" ? (Especifique somente o comando) ?
Correct Answer(s)
alien
Explanation
The correct answer is "alien." The "alien" command can be used to convert packages between different formats such as ".deb," ".rpm," and "tgz." It is a powerful tool that allows for easy package conversion and installation on different Linux distributions.
19.
Qual comando aptitude irá procurar pelo pacote chamado nmap?
Correct Answer(s)
aptitude search nmap
Explanation
The command "aptitude search nmap" will search for the package called "nmap" using the aptitude package manager.
20.
Qual das opções abaixo do apt-cache irá mostrar a informação de dependências inversas de um pacote?
Correct Answer
A. rdepends
Explanation
The option "rdepends" in apt-cache will display the reverse dependencies of a package. This means it will show which other packages depend on the specified package.
21.
Qual o comando aptitude (Completo) irá baixar, mas não instalar o arquivo.deb do pacote/programa nmap?
Correct Answer
aptitude download nmap
aptitude install -d nmap
Explanation
The correct answer is "aptitude download nmap" and "aptitude install -d nmap". These commands will download the .deb file of the nmap package/program but will not install it. The "aptitude download nmap" command specifically downloads the .deb file, while the "aptitude install -d nmap" command downloads the .deb file and keeps it in the cache without installing it.
22.
Qual dos comandos "apt" abaixo pode ser utilizado para atualizar o programa nmap ?
Correct Answer
A. apt-get upgrade nmap
Explanation
The correct answer is "apt-get upgrade nmap". This command is used to upgrade the specified program, in this case, nmap. The "apt-get" command is a package management tool in Linux-based systems that allows users to install, upgrade, or remove software packages. The "upgrade" option ensures that the latest version of the package is installed.
23.
O que é verdade, sobre usar ambos os sistemas de gerenciamento de pacotes Debian e RPM em um mesmo SO ?
Correct Answer
A. Em geral, é desaconselhável porque os dois sistemas não compartilham o arquivo de banco de dados instalado em formação.
Explanation
Using both Debian and RPM package management systems on the same operating system is generally discouraged because these two systems do not share the installed database file. This can lead to conflicts and inconsistencies in managing packages and dependencies. It is recommended to stick to one package management system to avoid potential issues.
24.
Qual o utilitário derivado do "rpm" pode ser utilizado para converter um pacote rpm em cpio ? (Especifique somente o comando).
Correct Answer
rpm2cpio
Explanation
The utility "rpm2cpio" is used to convert an rpm package into cpio format. This utility allows users to extract the contents of an rpm package and convert them into a cpio archive, which can then be further manipulated or extracted using other tools.
25.
Você está prestes a instalar um novo programa em um sistema Linux baseado em RPM. Qual das seguintes alternativas seria a melhor maneira de conseguir isso ?
Correct Answer
A. Utilizar o rpm para instalar os binários do programa a partir de um pacote RPM.
Explanation
The best way to install a new program on a Linux system based on RPM would be to use the rpm command to install the program binaries from an RPM package. This is the most straightforward and efficient method for installing programs on RPM-based systems. Obtaining the source code and installing from source or using cpio to extract binaries from an RPM source are not the recommended methods for installing a program in this scenario.
26.
Qual parâmetro do comando rpm irá imprimir a string "#" como barra de progresso durante a instalação de um pacote rpm?
Correct Answer
A. rpm -ih
Explanation
The parameter "-ih" in the rpm command will print the string "#" as a progress bar during the installation of an rpm package.
27.
Qual comando do "apt" é utilizado para realizar uma atualização de distribuição do sistema operacional? Ex: Do Debian 7 (Wheezy) para o Debian 8 (Jessie).
Correct Answer
apt-get dist-upgrade
Explanation
The "apt-get dist-upgrade" command is used to perform a distribution upgrade of the operating system. It is specifically used to upgrade from one version of the operating system to another, such as upgrading from Debian 7 (Wheezy) to Debian 8 (Jessie). This command not only upgrades the existing packages to their latest versions but also handles dependencies and resolves conflicts between packages during the upgrade process.
28.
Quais comandos "yum" abaixo podem ser utilizados para remover o programa nmap?
Correct Answer(s)
A. yum remove nmap
A. yum erase nmap
Explanation
The correct answer is "yum remove nmap" and "yum erase nmap". These commands are used in the yum package manager to remove or erase the program "nmap" from the system. The commands "yum clean nmap" and "yum delete nmap" are not valid commands to remove a specific program using yum.
29.
Qual comando apt-cache irá mostrar as dependências não satisfeitas para o pacote/programa python?
Correct Answer(s)
apt-cache unmet python
Explanation
The command "apt-cache unmet python" will display the unsatisfied dependencies for the python package/program.
30.
Você instalou uma nova aplicação, mas ao digitar o comando do programa você recebe a mensagem "Command not found". O que fazer para resolver isto?
Correct Answer
A. Adicionar o diretório da aplicação na variável path.
Explanation
To resolve the issue of receiving the "Command not found" message when typing the program command, you need to add the application directory to the path variable. This allows the system to locate and execute the program when its command is entered.
31.
Qual comando "apt" apaga todos os pacotes que não possam mais ser baixados ?
Correct Answer
A. apt-get autoclean
Explanation
The correct answer is "apt-get autoclean". The "autoclean" command in the "apt-get" package manager removes all the packages that can no longer be downloaded. This helps to free up disk space by removing unnecessary files that are no longer needed.
32.
Supondo que você teria instalado o pacote nmap, agora por algum motivo deseja remove-lo, qual seria a linha de comando adequada para remover este programa utilizando o apt.
Correct Answer
apt-get remove nmap
Explanation
The correct answer is "apt-get remove nmap". This command uses the apt package manager to remove the nmap package from the system. The "remove" option is used to uninstall a package, and "nmap" is the name of the package that should be removed. This command will remove all files and configurations associated with the nmap package from the system.
33.
Quais gerenciadores de pacotes fornecem menus interativos para com o usuário? (Selecione 2 respostas).
Correct Answer(s)
A. dselect
A. aptitude
Explanation
Dselect and aptitude are two package managers that provide interactive menus for the user. These menus allow the user to easily navigate and select packages to install or remove from their system. Yum, apt-get, rpm, and dpkg are also package managers, but they do not provide interactive menus.
34.
Qual das opções a seguir é o arquivo de texto que contém diretórios onde o dynamic linker deverá procurar por bibliotecas?
Correct Answer
A. ld.so.conf
Explanation
The correct answer is "ld.so.conf". This file contains directories where the dynamic linker should look for libraries.
35.
O que acontece quando o comando ldconfig é executado?
Correct Answer
A. O arquivo de índice binário das bibliotecas locais é reconstruído.
Explanation
When the ldconfig command is executed, the binary index file of the local libraries is rebuilt.
36.
Escolha qual dos comandos é usado para remover o pacote 'simulado' e seus arquivos de configuração.
Correct Answer
A. dpkg -P simulado
Explanation
The correct answer is dpkg -P simulado. This command is used to remove the package 'simulado' and its configuration files from the system.
37.
Qual comando aptitude (completo) irá mostrar o log de mudanças do pacote/programa chamado nmap?
Correct Answer
aptitude changelog nmap
Explanation
The correct answer is "aptitude changelog nmap". This command is used to display the log of changes for the package or program called nmap. The "changelog" option is used to specifically retrieve the changelog information for the specified package. By running this command, the user can view the history of changes made to the nmap package, including any updates, bug fixes, or new features that have been implemented.
38.
Qual dos comandos "yum" abaixo irá listar todos os pacotes instalados e disponíveis?
Correct Answer
A. yum list
Explanation
The correct answer is "yum list" because this command is used to list all the packages that are installed and available in the system. The "yum repolist" command lists the repositories, "yum check-list" and "yum check" commands are not valid commands in the yum package manager.
39.
Depois de um incidente de segurança, o administrador deve verificar determinado RPM instalado. Qual comando irá criar um relatório completo, que você pode analisar as mudanças relacionados com a segurança?
Correct Answer
A. rpm -Va > report
Explanation
The command "rpm -Va > report" will create a complete report that allows the administrator to analyze the security-related changes. The "-Va" option verifies all installed packages and checks for any modifications in files, permissions, ownership, and checksums. The output will be redirected to a file named "report" for further analysis.
40.
Qual o correto comando do gerenciador de pacotes RPM que atualiza um pacote somente se o mesmo já estiver instalado no Sistema ?
Correct Answer
A. rpm -F nome_do_pacote
Explanation
The correct command of the RPM package manager that updates a package only if it is already installed on the system is "rpm -F nome_do_pacote". This command is used to upgrade a package to a newer version, but only if the package is already installed on the system. If the package is not installed, this command will not perform any update.
41.
Qual a linha de comando completa para visualizar as dependências do pacote stella através do comando apt-cache ?
Correct Answer
apt-cache depends stella
Explanation
The given command "apt-cache depends stella" is the complete command to view the dependencies of the package "stella" using the "apt-cache" command. The "apt-cache depends" command is used to display a listing of each dependency a package has and all the packages that depend on it. In this case, it will show the dependencies of the "stella" package.
42.
Qual o comando e a opção que são usados para listar todos os arquivos no sistema associados a um pacote .deb instalado?
Correct Answer
A. dpkg -L
Explanation
The correct answer is dpkg -L. This command is used to list all the files in the system associated with a installed .deb package.
43.
Qual dos comandos rpm abaixo indica que a investigação é realizada em arquivo.rpm ?
Correct Answer
A. rpm -qp
Explanation
The correct answer is "rpm -qp" because the "-qp" option is used to query a specific package file, in this case "arquivo.rpm". This command allows the user to investigate the contents and information of the specified RPM file.
44.
Qual comando apt-get "completo" pode ser utilizado para obter o changelog do programa/pacote tree?
Correct Answer
apt-get changelog tree
Explanation
The command "apt-get changelog tree" can be used to obtain the changelog of the program/package called "tree".
45.
Você instalou há pouco um novo programa manualmente. Este programa usa bibliotecas compartilhadas que foram instaladas em /usr/local/prog/lib. O que é necessário fazer depois da instalação, de forma que as bibliotecas possam ser usadas?
Correct Answer
A. Editar /etc/ld.so.conf para adicionar o diretório e executar ldconfig
Explanation
After manually installing a new program that uses shared libraries installed in /usr/local/prog/lib, it is necessary to edit the /etc/ld.so.conf file to add the directory where the libraries are located. After making this edit, the ldconfig command needs to be executed. This will update the system's cache of shared library locations, allowing the newly installed libraries to be used by other programs.
46.
Qual comando do "apt" é utilizado para remover pacotes órfãos (Sem utilidade, Dependências de softwares já removidos)?
Correct Answer
apt-get autoremove
Explanation
The command "apt-get autoremove" is used to remove orphaned packages, which are packages that are no longer needed or have become obsolete due to the removal of other software dependencies. This command helps to free up disk space by removing unnecessary packages and dependencies that are no longer required by any other installed software.
47.
Qual comando do "apt" verifica uma lista de dependências quebradas e tenta corrigi-las instalando pacotes nescessários?
Correct Answer
A. apt-get -f install
Explanation
The correct answer is "apt-get -f install". This command is used to check for broken dependencies and attempt to fix them by installing the necessary packages. The "-f" flag stands for "fix" and is specifically used for resolving dependency issues. By running this command, the apt package manager will analyze the system's package dependencies and automatically install any missing packages or remove unnecessary ones to ensure that all dependencies are met.
48.
Qual dos comandos "yum" abaixo verifica por atualizações de pacotes disponíveis ?
Correct Answer
A. yum check-update
Explanation
The correct answer is "yum check-update". This command is used to check for updates of available packages in the system. It will display a list of packages that have available updates, allowing the user to see which packages can be updated.
49.
Qual dos comandos rpm abaixo pode ser utilizado para mostrar todos os arquivos e diretórios do pacote tree ?
Correct Answer
A. rpm -ql tree
Explanation
The command "rpm -ql tree" can be used to show all the files and directories included in the package "tree". The "-q" option stands for "query" and is used to display information about a package, while the "-l" option stands for "list" and is used to list all the files and directories in a package. Therefore, the command "rpm -ql tree" will provide a list of all the files and directories included in the "tree" package.