LPI 101 - Devices, Linux Filesystems, Fhs 2- 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: 344

SettingsSettingsSettings
LPI 101 - Devices, Linux Filesystems, Fhs 2- Marcus Vinicius Braga Alcantara - Quiz

.


Questions and Answers
  • 1. 

    Você executou o fdisk no seu Linux para modificar o layout da partição, porém, antes de sair do programa você percebeu que estava trabalhando no disco errado. O que você pode fazer para corrigir este problema?

    • A.

      Nada, o dano está feito, então você vai ter que recuperar dados de um backup.

    • B.

      Digitar w para sair do fdisk sem salvar as alterações no disco .

    • C.

      Digitar q para sair do fdisk sem salvar as alterações no disco .

    • D.

      Digitar u repetidamente para desfazer as operações feitas em erro.

    Correct Answer
    C. Digitar q para sair do fdisk sem salvar as alterações no disco .
    Explanation
    To fix the problem of working on the wrong disk in fdisk, you can type "q" to exit fdisk without saving the changes to the disk. This will prevent any modifications from being applied and avoid any potential damage. This allows you to start over and work on the correct disk without causing any harm or data loss.

    Rate this question:

  • 2. 

    O que faz o seguinte comando; mkfs -V -t ext2 /dev/sda4 ?

    • A.

      Ele define o código do tipo de tabela de partição para o /dev/sda4 para ext2.

    • B.

      Ele converte uma partição FAT em ​​uma partição ext2fs sem danificar a partição de arquivos existentes.

    • C.

      Ele cria um novo sistema de arquivos ext2 em /dev/sda4, substituindo qualquer sistema de arquivos existente e dados.

    • D.

      Nada; a opção -V não é válida, fazendo com que o mkfs aborte o seu funcionamento.

    Correct Answer
    C. Ele cria um novo sistema de arquivos ext2 em /dev/sda4, substituindo qualquer sistema de arquivos existente e dados.
    Explanation
    O comando "mkfs -V -t ext2 /dev/sda4" cria um novo sistema de arquivos ext2 na partição /dev/sda4. Ele substitui qualquer sistema de arquivos existente e todos os dados armazenados nessa partição serão perdidos. A opção -V especifica a versão do sistema de arquivos a ser criado.

    Rate this question:

  • 3. 

    Você deseja permitir aos usuários do Linux rodando OpenOffice editar diretamente os arquivos armazenados em um servidor de arquivos Windows 2000 SMB/CIFS. Qual das seguintes alternativas você usaria para permitir isso?

    • A.

      Suporte NFS, compartilhamento de arquivos padrão do Linux.

    • B.

      Um servidor de FTP em execução no sistema Windows.

    • C.

      O programa smbclient Linux.

    • D.

      O programa smbmount Linux.

    Correct Answer
    D. O programa smbmount Linux.
    Explanation
    The correct answer is "O programa smbmount Linux." This is because smbmount is a command-line tool in Linux that allows users to mount and access files from a remote SMB/CIFS server, such as a Windows 2000 server. This means that Linux users running OpenOffice can directly edit files stored on a Windows 2000 SMB/CIFS file server by using the smbmount command to mount the remote server's file system onto their Linux system. This provides seamless integration between the Linux and Windows environments, allowing for easy file sharing and editing.

    Rate this question:

  • 4. 

    O que está errado com a seguinte entrada /etc/fstab; "/dev/hda8 nfs defaults 0 0" ? (Escolha todas que se aplicam).

    • A.

      A entrada está faltando uma especificação de ponto de montagem.

    • B.

      Todos os campos do /etc/fstab devem ser separados por vírgulas.

    • C.

      A opção padrão pode ser usada somente com sistemas de arquivos ext2 .

    • D.

      /dev/hda8 é uma partição de disco, mas NFS indica um sistema de arquivos de rede.

    Correct Answer(s)
    A. A entrada está faltando uma especificação de ponto de montagem.
    D. /dev/hda8 é uma partição de disco, mas NFS indica um sistema de arquivos de rede.
    Explanation
    A entrada está faltando uma especificação de ponto de montagem porque não é fornecido o diretório onde o sistema de arquivos deve ser montado. Além disso, /dev/hda8 é uma partição de disco, mas NFS indica um sistema de arquivos de rede, o que não é compatível com uma partição de disco.

    Rate this question:

  • 5. 

    Onde pode um arquivo de swap estar localizado ?

    • A.

      Só na raiz do sistema de arquivos (/) Linux

    • B.

      Em locais de leitura/escrita dos sistemas de arquivos Linux

    • C.

      Em NFS ou sistemas de arquivos ext2

    • D.

      Em qualquer partição com mais de 512 MB de espaço livre em disco

    Correct Answer
    B. Em locais de leitura/escrita dos sistemas de arquivos Linux
    Explanation
    A resposta correta é "Em locais de leitura/escrita dos sistemas de arquivos Linux". Um arquivo de swap é usado pelo sistema operacional para armazenar temporariamente dados que não cabem na memória RAM. Ele pode estar localizado em qualquer local de leitura/escrita dos sistemas de arquivos Linux, o que inclui diretórios e partições específicas. Não é restrito apenas à raiz do sistema de arquivos (/) Linux ou a sistemas de arquivos específicos, como NFS ou ext2. A única restrição é que a partição escolhida deve ter mais de 512 MB de espaço livre em disco.

    Rate this question:

  • 6. 

    Qual o caminho completo da base de dados do utilitário "locate"?

    Correct Answer
    /var/lib/mlocate/mlocate.db
    Explanation
    The complete path of the database for the "locate" utility is "/var/lib/mlocate/mlocate.db". This means that the "locate" utility accesses the database file located at this specific path in order to provide search results for files and directories on the system.

    Rate this question:

  • 7. 

    Você quer que seus usuários possam montar o CD-ROM em /dev/hdc. Qual o caminho correto para habilitar isso ?

    • A.

      Mudar as permissõs de /dev/hdc

    • B.

      Habilitar o SUID-Bit no comando /bin/mount

    • C.

      Adicionar os nomes dos usuários em /etc/mountusers

    • D.

      Alterar as opções para "users,noauto" em /etc/fstab

    • E.

      Adicionar a linha "may_mount(/dev/hdc)" em /etc/passwd

    Correct Answer
    D. Alterar as opções para "users,noauto" em /etc/fstab
    Explanation
    Changing the options to "users,noauto" in the /etc/fstab file is the correct way to enable users to mount the CD-ROM at /dev/hdc. This option allows any user to mount the device, and the "noauto" option ensures that the device is not automatically mounted at startup. By making this change in the /etc/fstab file, users will be able to manually mount the CD-ROM at /dev/hdc when needed.

    Rate this question:

  • 8. 

    Quando uma partição ext2 é formatada, uma percentagem fixa de blocos no disco é reservada para uso do usuário root. Qual o comando para alterar esta percentagem depois de formatada a partição?

    • A.

      tune2fs

    • B.

      mke2fs

    • C.

      e2fsck

    • D.

      hdparm

    • E.

      mount

    Correct Answer
    A. tune2fs
    Explanation
    The correct answer is "tune2fs". This command is used to adjust various parameters of the ext2, ext3, and ext4 file systems, including the reserved block percentage for the root user.

    Rate this question:

  • 9. 

    Um sistema ext2 está sendo usado por um aplicativo que lê com frequência um grande número de pequenos arquivos. Qual a opção de montagem poderá aumentar o desempenho do sistema?

    • A.

      noexec

    • B.

      nosuid

    • C.

      atime

    • D.

      noatime

    • E.

      sync

    Correct Answer
    C. atime
    Explanation
    A opção de montagem que poderá aumentar o desempenho do sistema é "noatime". Essa opção desativa a atualização do timestamp de acesso dos arquivos, o que reduz a quantidade de operações de escrita no sistema de arquivos. Como o aplicativo lê frequentemente um grande número de pequenos arquivos, desativar a atualização do timestamp de acesso pode melhorar o desempenho, pois evita operações de escrita desnecessárias.

    Rate this question:

  • 10. 

    Quais dos diretórios abaixo obrigatoriamente deve residir na partição raiz e não podem ser ponto-de-montagem de outras partições ? (Selecione 3 respostas). 

    • A.

      /proc

    • B.

      /etc

    • C.

      /usr

    • D.

      /sbin

    Correct Answer(s)
    A. /proc
    B. /etc
    D. /sbin
    Explanation
    The directories /proc, /etc, and /sbin must reside in the root partition and cannot be mount points for other partitions. These directories serve important functions in the Linux operating system.

    The /proc directory contains virtual files that provide information about the system and running processes. It is a virtual file system that allows access to kernel data structures.

    The /etc directory contains configuration files for the system and various applications. It is where system-wide configuration settings are stored.

    The /sbin directory contains essential system binaries and executables that are used for system administration tasks. These executables are typically only accessible by the root user.

    By keeping these directories in the root partition, it ensures that the system can access the necessary files and executables during the boot process and system operation.

    Rate this question:

  • 11. 

    Qual dos diretórios abaixo podem ser ponto de montagem em outras partições ? (Selecione 3 respostas). 

    • A.

      /tmp

    • B.

      /var

    • C.

      /etc

    • D.

      /home

    Correct Answer(s)
    A. /tmp
    B. /var
    D. /home
    Explanation
    The directories /tmp, /var, and /home can be used as mount points for other partitions. This means that additional partitions can be mounted onto these directories, allowing for the storage of files and data on separate partitions while still being accessible through these directories.

    Rate this question:

  • 12. 

    Qual o caminho completo para a segunda partição de um disco IDE conectado ao primeiro canal IDE?

    Correct Answer(s)
    /dev/hda2
    Explanation
    The answer is /dev/hda2 because in the context of a disk connected to the first IDE channel, the naming convention for partitions is typically /dev/hd[a-z][1-4]. In this case, "hda" represents the first IDE device, and "2" indicates the second partition on that device. Therefore, /dev/hda2 refers to the complete path for the second partition of a disk connected to the first IDE channel.

    Rate this question:

  • 13. 

    Em um sistema típico IDE, indique partições e dispositivos que são considerados válidos. (Selecione 3 respostas).

    • A.

      /dev/hda4

    • B.

      /dev/hde2

    • C.

      /dev/hdc

    • D.

      /dev/hdd6

    Correct Answer(s)
    A. /dev/hda4
    C. /dev/hdc
    D. /dev/hdd6
    Explanation
    In a typical IDE system, the valid partitions and devices are /dev/hda4, /dev/hdc, and /dev/hdd6. These are valid because they follow the naming convention for IDE devices. The "/dev/hda4" represents the fourth partition on the primary IDE master device, "/dev/hdc" represents the primary IDE slave device, and "/dev/hdd6" represents the sixth partition on the secondary IDE slave device. These devices and partitions are commonly used in IDE systems for storage and data access.

    Rate this question:

  • 14. 

    Você está instalando Linux em uma estação de trabalho para um novo funcionário. Qual partição deve ser maior ?

    • A.

      /

    • B.

      /boot

    • C.

      /lib

    • D.

      /usr

    Correct Answer
    D. /usr
    Explanation
    A partição /usr deve ser maior porque ela contém a maioria dos programas e arquivos do sistema operacional Linux. É onde estão armazenados os programas instalados pelos usuários, bibliotecas compartilhadas, arquivos de configuração e outros recursos essenciais para o funcionamento do sistema. Portanto, é importante que essa partição tenha espaço suficiente para acomodar todos esses arquivos e permitir o bom desempenho do sistema.

    Rate this question:

  • 15. 

    Você está instalando um servidor que vai sofrer muitas atualizações de hardware e sistema operacional. É um servidor de arquivos para todos os usuários em sua rede, 100 usuários. Qual diretório deve ter seu próprio ponto de montagem e/ou disco rígido?

    • A.

      /root

    • B.

      /sbin

    • C.

      /home

    • D.

      /etc

    Correct Answer
    C. /home
    Explanation
    The "/home" directory should have its own point of mount and/or hard disk because it is the directory that stores user home directories and their personal files. Since the server will have many hardware and operating system updates, separating the "/home" directory will ensure that user data is not affected during these updates. Additionally, having a dedicated point of mount or disk for "/home" allows for easier management and backup of user data.

    Rate this question:

  • 16. 

    Qual o nome do dispositivo para o segundo disco SCSI em seu sistema Linux?

    Correct Answer
    /dev/sdb
    Explanation
    The second SCSI disk in a Linux system is named "/dev/sdb". The "/dev" directory is where device files are located, and "sdb" refers to the second SCSI disk. This naming convention allows the system to identify and access the specific disk.

    Rate this question:

  • 17. 

    O que o dispositivo /dev/hdb6 representa?

    • A.

      Uma partição lógica em uma unidade de disco IDE

    • B.

      Uma partição estendida em uma unidade de disco SCSI

    • C.

      Uma partição lógica em uma unidade de disco SCSI

    • D.

      Uma partição estendida em uma unidade de disco IDE

    • E.

      Uma partição primária em uma unidade de disco IDE

    Correct Answer
    A. Uma partição lógica em uma unidade de disco IDE
    Explanation
    The correct answer is "Uma partição lógica em uma unidade de disco IDE." This is because the "/dev/hdb6" device represents a logical partition on an IDE (Integrated Drive Electronics) disk. IDE is a type of interface used for connecting storage devices like hard drives to a computer. A logical partition is a division of a physical disk into smaller, independent sections that can be used to store data separately.

    Rate this question:

  • 18. 

    Em um sistema com partições separadas /, /usr, /var, /tmp, quais delas podem seguramente ser montadas como somente leitura?

    • A.

      /var, /usr

    • B.

      /var

    • C.

      /usr, /, /tmp

    • D.

      /usr

    • E.

      /tmp

    Correct Answer
    D. /usr
    Explanation
    As the question states that the system has separate partitions for /, /usr, /var, and /tmp, the only partitions that can be safely mounted as read-only are /usr and /var. Mounting a partition as read-only means that no changes can be made to the files stored in that partition, providing an extra layer of security and preventing accidental modifications or deletions. Mounting /, /usr, or /tmp as read-only would likely cause issues as these partitions are typically used for storing and modifying system files and temporary data.

    Rate this question:

  • 19. 

    O que o diretório /sbin contém? Selecione a melhor resposta.

    • A.

      Comandos necessários em caso de uma emergência do sistema e de interesse para todos os usuários do sistema.

    • B.

      Comandos necessários em caso de uma emergência do sistema e de interesse do administrador principalmente.

    • C.

      Comandos de interesse para todos os usuários do sistema.

    • D.

      Comandos de interesse principalmente para o administrador.

    • E.

      Bibliotecas necessárias em caso de emergência.

    Correct Answer
    B. Comandos necessários em caso de uma emergência do sistema e de interesse do administrador principalmente.
    Explanation
    The directory /sbin contains commands that are necessary in case of a system emergency and are of interest mainly to the administrator. These commands are specifically designed to handle critical situations and troubleshoot system issues. They may require elevated privileges and are not typically used by regular users.

    Rate this question:

  • 20. 

    Dos seguintes diretórios, de qual deles é mais importante que se faça backup regularmente?

    • A.

      /usr

    • B.

      /root

    • C.

      /tmp

    • D.

      /etc

    • E.

      /var

    Correct Answer
    D. /etc
    Explanation
    The directory /etc contains important system configuration files that are essential for the proper functioning of the operating system. Regularly backing up this directory is crucial as it ensures that in the event of a system failure or data loss, these configuration files can be restored, allowing the system to be quickly brought back to a functional state.

    Rate this question:

  • 21. 

    De acordo com o FHS Padrão, quais árvores de diretórios são consideradas opcionais no sistema de arquivos raiz de um sistema? (Escolha todas que se aplicam).

    • A.

      /root

    • B.

      /usr

    • C.

      /opt

    • D.

      /mnt

    • E.

      /var

    Correct Answer(s)
    B. /usr
    C. /opt
    E. /var
    Explanation
    According to the FHS (Filesystem Hierarchy Standard), the directories /usr, /opt, and /var are considered optional in the root filesystem of a system. These directories are typically used for storing user data, optional software packages, and variable data respectively. However, their presence or absence does not affect the basic functionality of the system.

    Rate this question:

  • 22. 

    De acordo com FHS, qual dos seguintes diretórios é compartilhável para arquivos estáticos da aplicação ?

    • A.

      /var/log

    • B.

      /etc

    • C.

      /usr

    • D.

      /var

    • E.

      /opt

    Correct Answer
    C. /usr
    Explanation
    According to FHS (Filesystem Hierarchy Standard), the directory /usr is commonly used for storing shareable, read-only data, including static files of an application. This directory is typically used for system-wide, shareable data that is not modified during normal system operation. Therefore, /usr is the correct answer for the question.

    Rate this question:

  • 23. 

    Qual diretório contém um spool de e-mail, além de arquivos de log?

    • A.

      /etc

    • B.

      /usr

    • C.

      /var

    • D.

      /proc

    Correct Answer
    C. /var
    Explanation
    The correct answer is /var. The /var directory contains a spool for email as well as log files. This directory is used to store variable data files that may change frequently during system operation, such as logs, spool files, and temporary files. Therefore, it is the most appropriate directory for storing email spools and log files.

    Rate this question:

  • 24. 

    Qual diretório é o ponto de acesso para mídias removíveis?

    • A.

      /mnt

    • B.

      /bin

    • C.

      /usr

    • D.

      /media

    Correct Answer
    D. /media
    Explanation
    The correct answer is /media. The /media directory is the access point for removable media such as USB drives or external hard drives. It is where these devices are mounted and can be accessed by the system.

    Rate this question:

  • 25. 

    Qual diretório utiliza o novo sysfs com suporte a hotswap de hardware? 

    • A.

      /proc

    • B.

      /dev

    • C.

      /opt

    • D.

      /sys

    Correct Answer
    D. /sys
    Explanation
    The correct answer is /sys. The sysfs directory is a virtual file system that provides a view of the kernel's device model. It allows access to information about devices, drivers, and other kernel components. The sysfs directory supports hotswap of hardware, which means that devices can be added or removed from the system while it is running without requiring a reboot. The other directories mentioned (/proc, /dev, and /opt) do not specifically provide support for hotswap of hardware.

    Rate this question:

  • 26. 

    Qual é o comando que devemos usar quando desejamos obter o caminho do programa no sistema de arquivos, seu código-fonte e páginas de manual relacionadas ? (Especifique somente o comando).

    Correct Answer
    whereis
    Explanation
    The command "whereis" is used to obtain the path of a program in the file system, its source code, and related manual pages. It helps in locating the executable, source code, and documentation files associated with a particular program.

    Rate this question:

  • 27. 

    Qual dos comandos abaixo utiliza a variável de ambiente PATH para buscar um programa fornecido como argumento ? 

    • A.

      find

    • B.

      search

    • C.

      which

    • D.

      locale

    Correct Answer
    C. which
    Explanation
    The "which" command is used to locate the executable file associated with a given command by searching through the directories listed in the PATH environment variable. It helps to determine the full path of the command that will be executed when the command is run. Therefore, "which" is the correct answer as it utilizes the PATH variable to search for a program provided as an argument.

    Rate this question:

  • 28. 

    Qual é o binário cuja principal função é encontrar arquivos e para isto o mesmo utiliza um banco de dados próprio que é atualizado pelo comando updatedb ? (Especifique somente o comando). 

    Correct Answer
    locate
    Explanation
    The correct answer is "locate." The "locate" command is a binary that is used to find files on a system. It utilizes its own database, which is updated by the "updatedb" command, to quickly search for files based on their names or patterns.

    Rate this question:

  • 29. 

    Qual é o comando usado para se criar hardlinks ? (Especifique somente o comando) 

    Correct Answer
    ln
    Explanation
    The command used to create hardlinks is "ln".

    Rate this question:

  • 30. 

    Qual arquivo você deve editar para excluir diretórios indexados pelo comando locate ?

    • A.

      /etc/slocatedb.conf

    • B.

      /etc/default/slocate

    • C.

      /etc/slocated.conf

    • D.

      /etc/updatedb.conf

    • E.

      /etc/sysconfig/updatedb.conf

    Correct Answer
    D. /etc/updatedb.conf
    Explanation
    The correct answer is /etc/updatedb.conf. This file is the configuration file for the updatedb command, which is responsible for updating the database used by the locate command. By editing this file, you can exclude directories from being indexed by the locate command.

    Rate this question:

  • 31. 

    Você quer ter a certeza de que determinados diretórios são excluídos quando você atualizar seu banco de dados locate. Onde você normalmente irá realizar esta configuração ?

    • A.

      /etc/locatedb.conf

    • B.

      /etc/slocatedb.conf

    • C.

      /etc/searchdb.conf

    • D.

      /etc/updatedb.conf

    Correct Answer
    D. /etc/updatedb.conf
    Explanation
    The correct answer is /etc/updatedb.conf. This file is typically used to configure the update process for the locate database. By specifying certain directories in this file, you can ensure that they are excluded from the database when it is updated.

    Rate this question:

  • 32. 

    Quais os dois comandos vão encontrar o caminho para o binário vim?

    • A.

      man vim

    • B.

      whereis vim

    • C.

      apropos vim

    • D.

      which vim

    Correct Answer(s)
    B. whereis vim
    D. which vim
    Explanation
    The two commands "whereis vim" and "which vim" can be used to find the path to the binary file for the program vim. "whereis vim" will provide the location of the binary file, while "which vim" will show the full path to the binary file.

    Rate this question:

  • 33. 

    Qual dos seguintes comandos pode ser utilizado para procurar o ficheiro executável chamado; foo quando tiver sido colocado em um diretório e não incluído na variável $PATH ?

    • A.

      apropos

    • B.

      which

    • C.

      find

    • D.

      query

    • E.

      whereis

    Correct Answer
    C. find
    Explanation
    The correct answer is "find" because the "find" command is used to search for files and directories in a given directory hierarchy. In this case, if the executable file "foo" has been placed in a directory that is not included in the $PATH variable, using the "find" command can help locate the file. The "find" command allows for specifying the search criteria, such as the file name, and it will recursively search through the specified directory and its subdirectories to find the file.

    Rate this question:

  • 34. 

    O que o comando mount -a faz?

    • A.

      Ele garante que todos os sistemas de arquivos listados com a opção noauto no /etc/fstab sejam montados.

    • B.

      Ele mostra todos os sistemas de arquivos montados que foram montados automaticamente.

    • C.

      Ele abre um editor com privilégios de root e carrega /etc/fstab para edição.

    • D.

      Ele garante que todos os sistemas de arquivos listados com a opção auto no /etc/fstab sejam montados .

    • E.

      Ele garante que todos os sistemas de arquivos listados no /etc/fstab são montados independentemente das suas opções.

    Correct Answer
    D. Ele garante que todos os sistemas de arquivos listados com a opção auto no /etc/fstab sejam montados .
    Explanation
    The command "mount -a" ensures that all file systems listed with the "auto" option in the /etc/fstab file are mounted.

    Rate this question:

  • 35. 

    Qual das seguintes configurações para umask garante que os novos arquivos tenha as permissões padrão -rw-r----- ?

    • A.

      0017

    • B.

      0640

    • C.

      0038

    • D.

      0026

    Correct Answer
    D. 0026
    Explanation
    A umask é uma configuração que define as permissões padrão dos novos arquivos criados por um usuário. Ela funciona subtraindo as permissões definidas na umask do valor máximo (777) para obter as permissões reais do arquivo.

    No caso da resposta correta (0026), a umask está definida como 0026. Isso significa que as permissões padrão dos novos arquivos serão calculadas subtraindo 0026 do valor máximo (777). Portanto, as permissões reais serão 0751 (ou seja, 777 - 0026 = 0751). Essas permissões correspondem a -rw-r-----, onde o dono do arquivo tem permissão de leitura e escrita, o grupo tem permissão de leitura e os outros não têm permissão.

    Rate this question:

  • 36. 

    Qual das seguintes alternativas é o nome do arquivo do dispositivo para a segunda partição na única unidade SCSI ?

    • A.

      /dev/hda1

    • B.

      /dev/sda2

    • C.

      /dev/sd0a2

    • D.

      /dev/sd1p2

    Correct Answer
    B. /dev/sda2
    Explanation
    The correct answer is /dev/sda2. In the context of SCSI devices, /dev/sda2 represents the second partition on the first SCSI drive. The naming convention for SCSI devices starts with "sd" followed by a letter indicating the drive, and a number indicating the partition. In this case, "a" represents the first drive and "2" represents the second partition on that drive.

    Rate this question:

  • 37. 

    A fim de exibir todos os sistemas de arquivos montados atualmente, qual dos seguintes comandos podem ser usados? (Escolha duas respostas corretas).

    • A.

      cat /proc/self/mounts

    • B.

      free

    • C.

      mount

    • D.

      lsmounts

    • E.

      cat /proc/filesystems

    Correct Answer(s)
    A. cat /proc/self/mounts
    C. mount
    Explanation
    The correct answers for displaying all currently mounted file systems are "cat /proc/self/mounts" and "mount". The command "cat /proc/self/mounts" displays the information about the mounted file systems by reading the /proc/self/mounts file. The "mount" command lists all mounted file systems in a more comprehensive way, providing additional details such as the type of file system and mount options.

    Rate this question:

  • 38. 

    Qual dos seguintes comandos pode ser usado ​​para localizar programas e suas correspondentes páginas man e arquivos de configuração ?

    • A.

      dirname

    • B.

      which

    • C.

      basename

    • D.

      query

    • E.

      whereis

    Correct Answer
    E. whereis
    Explanation
    The correct answer is "whereis". The "whereis" command can be used to locate programs and their corresponding man pages and configuration files. It provides the path to the binary, source, and manual page files for a given command or program. This command is useful for finding the location of specific programs on a system.

    Rate this question:

  • 39. 

    Qual dos seguintes comandos altera o número de dias antes de o sistema de arquivos ext3 em /dev/sda1 iniciar uma verificação de sistema de ficheiros completo durante a inicialização ?

    • A.

      tune2fs -d 200 /dev/sda1

    • B.

      tune2fs -c 200 /dev/sda1

    • C.

      tune2fs -i 200 /dev/sda1

    • D.

      tune2fs -n 200 /dev/sda1

    • E.

      tune2fs --days 200 /dev/sda1

    Correct Answer
    C. tune2fs -i 200 /dev/sda1
    Explanation
    The correct answer is "tune2fs -i 200 /dev/sda1". This command changes the interval between two filesystem checks on the ext3 filesystem. The "-i" option is used to specify the interval in days, and the "200" value indicates the number of days before the filesystem should be checked for errors during startup.

    Rate this question:

  • 40. 

    Que tipo de sistema de arquivo é criado pelo mkfs quando executado com o nome de dispositivo de bloco sem quaisquer parâmetros adicionais ?

    • A.

      ext2

    • B.

      ext3

    • C.

      ext4

    • D.

      XFS

    • E.

      VFAT

    Correct Answer
    A. ext2
    Explanation
    When the mkfs command is executed with the name of a block device without any additional parameters, it creates an ext2 file system.

    Rate this question:

  • 41. 

    Quantos campos estão em uma linha sintaticamente correta de /etc/fstab ?

    • A.

      3

    • B.

      4

    • C.

      5

    • D.

      6

    • E.

      7

    Correct Answer
    D. 6
    Explanation
    A line in the /etc/fstab file is used to specify the file systems that are to be automatically mounted at boot time. Each line in the /etc/fstab file consists of six fields separated by spaces or tabs. These fields include the file system, mount point, file system type, options, dump frequency, and file system check order. Therefore, a correct line in the /etc/fstab file should have six fields.

    Rate this question:

  • 42. 

    Que comando é usado para criar e inicializar os arquivos usados ​​para armazenar informações de quotas?

    Correct Answer
    quotacheck
    Explanation
    The command "quotacheck" is used to create and initialize the files that are used to store quota information. It is commonly used in systems to set and manage disk quotas for users and groups. The quotacheck command scans the file system and creates the necessary quota files, which are then used by other commands to enforce and monitor the disk usage limits for users and groups.

    Rate this question:

  • 43. 

    Qual das seguintes permissões de arquivo pertence a um link simbólico ?

    • A.

      -rwxrwxrwx

    • B.

      +rwxrwxrwx

    • C.

      lrwxrwxrwx

    • D.

      srwxrwxrwx

    Correct Answer
    C. lrwxrwxrwx
    Explanation
    A permissão de arquivo "lrwxrwxrwx" pertence a um link simbólico. Isso pode ser identificado pelo "l" no início da string de permissões. Os links simbólicos são arquivos especiais que apontam para outros arquivos ou diretórios.

    Rate this question:

  • 44. 

    Ao tentar criar um hard link para um arquivo comum, foi retornado um erro. O que poderia ser a razão para isso ?

    • A.

      O arquivo de origem está oculto.

    • B.

      O arquivo de origem é somente leitura.

    • C.

      O arquivo de origem é um shell script.

    • D.

      O arquivo de origem já é um hard link.

    • E.

      A origem e o destino estão em sistemas de arquivos diferentes.

    Correct Answer
    E. A origem e o destino estão em sistemas de arquivos diferentes.
    Explanation
    The reason for the error could be that the source and destination are in different file systems. When creating a hard link, both the source and destination files should reside in the same file system. If they are in different file systems, it is not possible to create a hard link between them.

    Rate this question:

  • 45. 

    Qual dos seguintes comandos cria um sistema de arquivos ext3 em /dev/sdb1 ? (Escolha duas correta respostas).

    • A.

      /sbin/mke2fs -j /dev/sdb1

    • B.

      /sbin/mkfs -t ext3 /dev/sdb1

    • C.

      /sbin/mkfs -c ext3 /dev/sdb1

    • D.

      /sbin/mke3fs -j /dev/sdb1

    Correct Answer(s)
    A. /sbin/mke2fs -j /dev/sdb1
    B. /sbin/mkfs -t ext3 /dev/sdb1
    Explanation
    The correct answers are "/sbin/mke2fs -j /dev/sdb1" and "/sbin/mkfs -t ext3 /dev/sdb1" because both commands are used to create a filesystem, specifically an ext3 filesystem, on the device /dev/sdb1. The "-j" option in "/sbin/mke2fs -j /dev/sdb1" specifies that the filesystem should have a journal, while the "-t ext3" option in "/sbin/mkfs -t ext3 /dev/sdb1" specifies the filesystem type as ext3.

    Rate this question:

  • 46. 

    Qual dos seguintes comandos irá alterar a cota de um usuário específico ?

    • A.

      edquota

    • B.

      repquota

    • C.

      quota -e

    • D.

      quota

    Correct Answer
    A. edquota
    Explanation
    The correct answer is "edquota". This command is used to modify the quota of a specific user. It allows administrators to set limits on disk usage for individual users on a Linux system. By using the "edquota" command, the administrator can specify the soft and hard limits for the user's disk usage, as well as the grace period for exceeding the limits.

    Rate this question:

  • 47. 

    Qual utilitário seria usado para alterar a frequência de uma verificação do sistema de arquivos que é realizada em um sistema de arquivos ext2 sem perder quaisquer dados armazenados no sistema de arquivos?

    • A.

      mod2fs

    • B.

      fsck

    • C.

      tune2fs

    • D.

      mke2fs

    • E.

      fixe2fs

    Correct Answer
    C. tune2fs
    Explanation
    Tune2fs is the correct answer because it is a utility specifically designed for modifying the parameters of an ext2 file system without losing any stored data. It allows users to change various settings, including the frequency of file system checks, without causing data loss. Mod2fs, fsck, mke2fs, and fixe2fs are not the appropriate utilities for this task.

    Rate this question:

  • 48. 

    Qual é o propósito do Filesystem Hierarchy Standard ?

    • A.

      É um modelo de segurança usado para garantir que os arquivos são organizados de acordo com as suas permissões e acessibilidade.

    • B.

      Ele fornece ferramentas unificadas para criar, manter e gerir vários sistemas de arquivos de uma forma comum.

    • C.

      Ele define uma estrutura interna comum de inodes para todos os sistemas de arquivos compatíveis.

    • D.

      É uma descrição neutra de localizações de arquivos e diretórios em sistemas Linux.

    Correct Answer
    D. É uma descrição neutra de localizações de arquivos e diretórios em sistemas Linux.
    Explanation
    The purpose of the Filesystem Hierarchy Standard is to provide a neutral description of file and directory locations in Linux systems. It does not focus on security, tools for managing file systems, or defining a common internal structure for inodes. Instead, it aims to standardize the organization of files and directories in Linux systems, making it easier for users and developers to navigate and understand the file system structure.

    Rate this question:

  • 49. 

    Que valor umask resultará as permissões de acesso padrão de 600 (rw-------) para arquivos e 700 (rwx------) para diretórios ?

    Correct Answer
    0077
    077
    Explanation
    The umask value determines the default permissions that are subtracted from newly created files and directories. In this case, the default permissions for files are 600 (rw-------) and for directories are 700 (rwx------). To calculate the umask value, we subtract the given permissions from the maximum permissions of 777. Therefore, the umask value would be 0077 for files and 077 for directories.

    Rate this question:

  • 50. 

    Identifique o dispositivo adequado para a terceira partição na única unidade SCSI no sistema.

    • A.

      /dev/hda3

    • B.

      /dev/sd0a3

    • C.

      /dev/sda3

    • D.

      /dev/sd1p3

    Correct Answer
    C. /dev/sda3
    Explanation
    The correct answer is /dev/sda3. In SCSI systems, devices are typically represented as /dev/sdX, where X is a letter representing the device and a number representing the partition. In this case, /dev/sda3 indicates the third partition on the first SCSI device.

    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 17, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 16, 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.