LPI 101 - Devices, Linux FileSystems, Fhs 2- Marcus Vinicius Braga Alcantara

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Viniciusalcantar
V
Viniciusalcantar
Community Contributor
Quizzes Created: 11 | Total Attempts: 7,455
| Attempts: 400
SettingsSettings
Please wait...
Please wait...
LPI 101 - Devices, Linux Filesystems, Fhs 2- Marcus Vinicius Braga Alcantara - Quiz


Quiz Preview

  • 2. 

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

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

    Rate this question:

  • 3. 

    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?

    • /root

    • /sbin

    • /home

    • /etc

    Correct Answer
    A. /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:

  • 4. 

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

    • /etc

    • /usr

    • /var

    • /proc

    Correct Answer
    A. /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:

  • 5. 

    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:

  • 6. 

    Onde fsck irá colocar qualquer arquivo ou fragmentos não referenciadas em um sistema de arquivos ext4 ?

    • recover

    • lost+found

    • back

    • lost

    Correct Answer
    A. lost+found
    Explanation
    O comando fsck irá colocar qualquer arquivo ou fragmentos não referenciados em um sistema de arquivos ext4 na pasta "lost+found". Esta pasta é usada para armazenar arquivos que foram recuperados durante a verificação do sistema de arquivos.

    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 ?

    • Mudar as permissõs de /dev/hdc

    • Habilitar o SUID-Bit no comando /bin/mount

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

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

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

    Correct Answer
    A. 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. 

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

    • /tmp

    • /var

    • /etc

    • /home

    Correct Answer(s)
    A. /tmp
    A. /var
    A. /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:

  • 9. 

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

    • /dev/hda1

    • /dev/sda2

    • /dev/sd0a2

    • /dev/sd1p2

    Correct Answer
    A. /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:

  • 10. 

    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?

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

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

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

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

    Correct Answer
    A. 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:

  • 11. 

    Qual o efeito que o sticky bit tem quando definido em um diretório?

    • Não há nenhum efeito , porque o sticky bit foi preterido no Linux.

    • Ele fornece uma dica para o kernel que arquivos neste diretório devem ser armazenados na memória, se possível.

    • Ele restringe a exclusão de arquivos neste diretório para somente o usuário root e o proprietário do arquivo, independentemente da gravação de permissões para outros usuários.

    • Ele instrui o kernel para manter os dados subjacentes para os arquivos no diretório intactas para permitir undeletion de arquivos importantes.

    Correct Answer
    A. Ele restringe a exclusão de arquivos neste diretório para somente o usuário root e o proprietário do arquivo, independentemente da gravação de permissões para outros usuários.
    Explanation
    The sticky bit, when set on a directory, restricts the deletion of files in that directory to only the root user and the owner of the file, regardless of the write permissions for other users. This means that even if other users have write permissions on the directory, they cannot delete files that they do not own.

    Rate this question:

  • 12. 

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

    • man vim

    • whereis vim

    • apropos vim

    • which vim

    Correct Answer(s)
    A. whereis vim
    A. 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:

  • 13. 

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

    • /proc

    • /dev

    • /opt

    • /sys

    Correct Answer
    A. /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:

  • 14. 

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

    • dirname

    • which

    • basename

    • query

    • whereis

    Correct Answer
    A. 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:

  • 15. 

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

    • ext2

    • ext3

    • ext4

    • XFS

    • 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:

  • 16. 

    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?

    • mod2fs

    • fsck

    • tune2fs

    • mke2fs

    • fixe2fs

    Correct Answer
    A. 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:

  • 17. 

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

    • 0017

    • 0640

    • 0038

    • 0026

    Correct Answer
    A. 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:

  • 18. 

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

    • 3

    • 4

    • 5

    • 6

    • 7

    Correct Answer
    A. 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:

  • 19. 

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

    • -rwxrwxrwx

    • +rwxrwxrwx

    • lrwxrwxrwx

    • srwxrwxrwx

    Correct Answer
    A. 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:

  • 20. 

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

    • O arquivo de origem está oculto.

    • O arquivo de origem é somente leitura.

    • O arquivo de origem é um shell script.

    • O arquivo de origem já é um hard link.

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

    Correct Answer
    A. 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:

  • 21. 

    Qual o programa que atualiza o banco de dados que é usado pelo comando locate ?

    Correct Answer
    updatedb
    /usr/bin/updatedb
    Explanation
    The correct answer is "updatedb,/usr/bin/updatedb." The program that updates the database used by the "locate" command is called "updatedb." It is located in the "/usr/bin" directory. This program is responsible for indexing the files on the system, allowing the "locate" command to quickly search for files based on their names or patterns.

    Rate this question:

  • 22. 

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

    • /

    • /boot

    • /lib

    • /usr

    Correct Answer
    A. /usr
    Explanation
    A partição /usr deve ser maior porque ela contém os diretórios e arquivos do sistema operacional, além de programas, bibliotecas e documentação adicionais. É provável que o novo funcionário precise de espaço para instalar e armazenar aplicativos e dados adicionais, portanto, é recomendado que a partição /usr seja dimensionada para acomodar essas necessidades.

    Rate this question:

  • 23. 

    Você quer que as permissões padrão para seus arquivos seja; -rw-r -----. Como você deve definir o umask ?

    • 037

    • 640

    • 038

    • 026

    Correct Answer
    A. 026
    Explanation
    The correct answer is 026. The umask is a three-digit code that is used to set the default permissions for newly created files. The first digit represents the permissions for the owner, the second digit represents the permissions for the group, and the third digit represents the permissions for others. In this case, the umask of 026 means that the default permissions for newly created files will be -rw-r--rw-. This means that the owner will have read and write permissions, the group will have read permissions, and others will have read and write permissions.

    Rate this question:

  • 24. 

    Qual dos seguintes comandos permite a permissão setuid (suid) no executável chamado /bin/foo ?

    • chmod 1755 /bin/foo

    • chmod 4755 /bin/foo

    • chown u-s /bin/foo

    • chmod 755+s /bin/foo

    Correct Answer
    A. chmod 4755 /bin/foo
    Explanation
    The correct answer is "chmod 4755 /bin/foo". The "chmod" command is used to change the permissions of a file or directory. The number "4755" is a specific permission setting that includes the setuid (suid) permission. The setuid permission allows a user to execute a file with the permissions of the file owner, rather than their own permissions. Therefore, by using "chmod 4755 /bin/foo", the setuid permission will be set on the executable file "/bin/foo".

    Rate this question:

  • 25. 

    Em vez de fornecer um dispositivo explícito no /etc/fstab para a montagem, que outras opções podem ser usadas para identificar a partição pretendida? (Escolha 2 respostas corretas).

    • FIND

    • ID

    • LABEL

    • NAME

    • UUID

    Correct Answer(s)
    A. LABEL
    A. UUID
    Explanation
    LABEL and UUID are two options that can be used to identify the intended partition instead of providing an explicit device in the /etc/fstab file. LABEL refers to the label assigned to the partition, while UUID stands for Universally Unique Identifier, which is a unique identifier assigned to the partition. Both LABEL and UUID provide alternative ways to identify the partition without relying on the device name.

    Rate this question:

  • 26. 

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

    • /dev/hda3

    • /dev/sd0a3

    • /dev/sda3

    • /dev/sd1p3

    Correct Answer
    A. /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:

  • 27. 

    Qual comando permitirá um administrador ajustar o número de montagens em um sistema de arquivos já existente para ser verificado pelo e2fsck ?

    • debugfs

    • dumpe2fs

    • mode2fs

    • tune2fs

    • mke2fs

    Correct Answer
    A. tune2fs
    Explanation
    The correct answer is "tune2fs". This command allows an administrator to adjust the number of mounts on an existing file system to be checked by e2fsck.

    Rate this question:

  • 28. 

    Depois de executar o comando umount /mnt, a seguinte mensagem de erro é exibida: "umount: /mnt: device is busy". Qual é um motivo comum para esta mensagem?

    • O kernel não terminou gravações de disco para o dispositivo montado.

    • Um usuário tem um arquivo aberto no diretório /mnt .

    • O comando anterior; rm não terminou .

    • Os arquivos em / mnt foram digitalizados e adicionados ao banco de dados locate.

    • O kernel acha que um processo está prestes a abrir um arquivo em /mnt para a leitura.

    Correct Answer
    A. Um usuário tem um arquivo aberto no diretório /mnt .
    Explanation
    A common reason for the error message "umount: /mnt: device is busy" is that a user has a file open in the /mnt directory. When a file is open, the system considers it in use and does not allow the device to be unmounted. To successfully unmount the device, the user needs to close any open files in the /mnt directory.

    Rate this question:

  • 29. 

    Qual comando chown irá alterar a propriedade do arquivo data.txt para o usuário dave e o grupo para staff ?

    • chown dave/staff data.txt

    • chown -u dave -g staff data.txt

    • chown --user dave --group staff data.txt

    • chown dave:staff data.txt

    Correct Answer
    A. chown dave:staff data.txt
    Explanation
    The correct answer is "chown dave:staff data.txt". This command will change the ownership of the file "data.txt" to the user "dave" and the group "staff". The colon ":" is used to separate the user and group names in the chown command.

    Rate this question:

  • 30. 

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

    • find

    • search

    • which

    • locale

    Correct Answer
    A. 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:

  • 31. 

    Você deseja exibir todos os sistemas de arquivos montados atualmente. Qual comando você usaria? (Por favor, digite apenas o comando sem argumentos ou opções).

    Correct Answer
    mount
    df
    /bin/mount
    /bin/df
    Explanation
    The correct answer is "mount, df, /bin/mount, /bin/df". Both the "mount" and "df" commands can be used to display currently mounted file systems. The "/bin/mount" and "/bin/df" are the full paths to the executables for the "mount" and "df" commands respectively.

    Rate this question:

  • 32. 

    _________ /dev/sda3 irá criar uma área de swap no dispositivo /dev/sda3.

    Correct Answer
    /sbin/mkswap
    mkswap
    Explanation
    The given correct answer states that "/sbin/mkswap, mkswap" will create a swap area on the device /dev/sda3. This implies that the command "mkswap" is being executed with the path "/sbin/mkswap" to create a swap area on the specified device.

    Rate this question:

  • 33. 

    Qual das seguintes alternativas são tipos de sistemas de arquivos Linux comuns utilizados para partições raiz ? (Escolha três respostas corretas).

    • ext4

    • VFAT

    • NTFS

    • XFS

    • Btrfs

    Correct Answer(s)
    A. ext4
    A. XFS
    A. Btrfs
    Explanation
    ext4, XFS, and Btrfs are common Linux file systems used for root partitions. Ext4 is the default file system for most Linux distributions and is known for its reliability and performance. XFS is a high-performance file system that supports large file systems and is commonly used for enterprise-level storage. Btrfs is a modern file system that offers advanced features such as snapshots, compression, and RAID. VFAT and NTFS are file systems commonly used in Windows operating systems and are not typically used for Linux root partitions.

    Rate this question:

  • 34. 

    Qual das seguintes é uma norma de sistema de arquivos para CD-ROM ?

    • OSI9660

    • ISO8859

    • ISO9660

    • SR0FS

    • ROM-EO

    Correct Answer
    A. ISO9660
    Explanation
    ISO9660 is the correct answer because it is a file system standard for CD-ROMs. It specifies how data is organized and stored on a CD-ROM, allowing it to be read and accessed by different operating systems. This standard ensures compatibility and consistency across different CD-ROM devices and platforms. OSI9660, ISO8859, SR0FS, and ROM-EO are not recognized file system standards for CD-ROMs.

    Rate this question:

  • 35. 

    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 ?

    • /etc/locatedb.conf

    • /etc/slocatedb.conf

    • /etc/searchdb.conf

    • /etc/updatedb.conf

    Correct Answer
    A. /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:

  • 36. 

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

    • /sbin/mke2fs -j /dev/sdb1

    • /sbin/mkfs -t ext3 /dev/sdb1

    • /sbin/mkfs -c ext3 /dev/sdb1

    • /sbin/mke3fs -j /dev/sdb1

    Correct Answer(s)
    A. /sbin/mke2fs -j /dev/sdb1
    A. /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:

  • 37. 

    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). 

    • /proc

    • /etc

    • /usr

    • /sbin

    Correct Answer(s)
    A. /proc
    A. /etc
    A. /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:

  • 38. 

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

    • /

    • /boot

    • /lib

    • /usr

    Correct Answer
    A. /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:

  • 39. 

    Qual comando é usado para determinar um tipo de arquivo?

    • type

    • find

    • file

    • ls

    Correct Answer
    A. file
    Explanation
    The command "file" is used to determine the type of a file.

    Rate this question:

  • 40. 

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

    • edquota

    • repquota

    • quota -e

    • 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:

  • 41. 

    O que o dispositivo /dev/hdb6 representa?

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

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

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

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

    • 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:

  • 42. 

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

    • /mnt

    • /bin

    • /usr

    • /media

    Correct Answer
    A. /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:

  • 43. 

    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:

  • 44. 

    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:

  • 45. 

    Para permitir que um usuário regular possa montar e desmontar um sistema de arquivos (por exemplo, um CD-ROM ou disquete), que opção terá de ser adicionada à linha correspondente em /etc/fstab ?

    • nouidchk

    • alluser

    • user

    • auto

    Correct Answer
    A. user
    Explanation
    To allow a regular user to mount and unmount a filesystem, the "user" option needs to be added to the corresponding line in the /etc/fstab file. This option grants permission to non-root users to perform these actions on the specified filesystem.

    Rate this question:

  • 46. 

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

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

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

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

    • Comandos de interesse principalmente para o administrador.

    • Bibliotecas necessárias em caso de emergência.

    Correct Answer
    A. 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:

  • 47. 

    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:

  • 48. 

    De acordo com o FHS, os diretórios last+found são usados para:

    • Arquivos com proprietários desconhecidos.

    • Arquivos de dispositivo encontrado por /proc.

    • Arquivos binários desconhecidos encontrados pelo find.

    • Arquivos não vinculados encontrados pelo fsck.

    Correct Answer
    A. Arquivos não vinculados encontrados pelo fsck.
    Explanation
    According to the FHS (Filesystem Hierarchy Standard), the "lost+found" directories are used to store files that are not linked to any directory entry. These files are typically found during the filesystem check (fsck) process, which scans the filesystem for errors and inconsistencies. Therefore, the correct answer is "arquivos não vinculados encontrados pelo fsck," which translates to "unlinked files found by fsck."

    Rate this question:

  • 49. 

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

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

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

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

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

    Correct Answer
    A. 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:

Quiz Review Timeline (Updated): Mar 17, 2023 +

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.