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

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

.


Questions and Answers
  • 1. 

    Qual comando abaixo altera de forma recursiva o dono e grupo (para root) dos arquivos e diretórios abaixo de /home/diretoria ?

    • A.

      chgrp -R root.root /home/diretoria

    • B.

      chgrp -r root:root /home/diretoria

    • C.

      chown -R root:root /home/diretoria

    • D.

      chown -r root.root /home/diretoria

    Correct Answer
    C. chown -R root:root /home/diretoria
    Explanation
    The correct answer is "chown -R root:root /home/diretoria". This command will recursively change the owner and group of all files and directories under /home/diretoria to root:root. The "-R" option ensures that the change is applied to all subdirectories and files within /home/diretoria. The "root:root" argument specifies that both the owner and group should be changed to root.

    Rate this question:

  • 2. 

    Qual é o comando usado para editar novas quotas de disco para um determinado usuário ou grupo do sistema ? (Especifique somente o comando).

    Correct Answer
    edquota
    Explanation
    The command "edquota" is used to edit new disk quotas for a specific user or group in the system.

    Rate this question:

  • 3. 

    Qual é o arquivo de configuração que é consultado após a montagem da partição raiz que possui informações sobre os demais sistemas de arquivos a serem montados ? (Especifique o caminho completo).

    Correct Answer
    /etc/fstab
    Explanation
    The correct answer is /etc/fstab. After the root partition is mounted, the system consults the /etc/fstab file for information about the other file systems to be mounted. This file contains entries that define the file systems, their mount points, and their options. By reading this file, the system knows which file systems to mount and how to mount them, ensuring that all necessary file systems are available and properly configured during the boot process.

    Rate this question:

  • 4. 

    Quais comandos abaixo podem ser usados para checar possíveis problemas em um sistema de arquivos do tipo Ext2 ? (Selecione 3 respostas).

    • A.

      e2fsck

    • B.

      fsck.ext2

    • C.

      ext2.fsck

    • D.

      fsck

    Correct Answer(s)
    A. e2fsck
    B. fsck.ext2
    D. fsck
    Explanation
    The commands "e2fsck", "fsck.ext2", and "fsck" can be used to check for possible problems in an Ext2 file system. These commands are specifically designed to scan and repair any errors or inconsistencies in the Ext2 file system, ensuring its integrity and optimal performance.

    Rate this question:

  • 5. 

    Quais comandos abaixo são válidos quando o intuito é realizar uma remontagem com a opção somente-leitura definida ? (Selecione 3 respostas).

    • A.

      mount -o remount,ro /dev/sda3 /mnt/sdap

    • B.

      mount -o remount -r /dev/sda3 /mnt/sdap

    • C.

      mount -o -r /dev/sda3 /mnt/sdap

    • D.

      mount /dev/sda3 -r /mnt/sdap -o remount

    Correct Answer(s)
    A. mount -o remount,ro /dev/sda3 /mnt/sdap
    B. mount -o remount -r /dev/sda3 /mnt/sdap
    D. mount /dev/sda3 -r /mnt/sdap -o remount
    Explanation
    The correct answers are mount -o remount,ro /dev/sda3 /mnt/sdap, mount -o remount -r /dev/sda3 /mnt/sdap, and mount /dev/sda3 -r /mnt/sdap -o remount. These commands are valid when the intention is to remount a device with the read-only option set. The "-o remount,ro" option specifies that the device should be remounted as read-only. The "-o remount -r" option is another way to specify a read-only remount. The last command uses the "-r" option before the mount point and the "-o remount" option to achieve the same result.

    Rate this question:

  • 6. 

    Qual deve ser o valor de umask quando desejamos criar novos diretórios com a permissão inicial 0700 ? (Especifique somente o valor de quatro posições).

    Correct Answer(s)
    0077
    Explanation
    The umask is a command that sets the default permissions for newly created files and directories. In this case, the desired permission for the new directories is 0700, which means that the owner should have read, write, and execute permissions, and no other users should have any permissions. The umask value is the inverse of the desired permission, so the correct umask value would be 0077. This means that the owner will have all permissions (7), and all other users will have no permissions (0).

    Rate this question:

  • 7. 

    Quais dos comandos abaixo podem ser usados para criar um sistema de arquivos do tipo Ext3 ? (Selecione 3 respostas).

    • A.

      mke2fs -j /dev/hdd2

    • B.

      mkfs.ext3 /dev/sda1

    • C.

      mkfs -t ext3 /dev/hdb2

    • D.

      mkfs /dev/hda3

    Correct Answer(s)
    A. mke2fs -j /dev/hdd2
    B. mkfs.ext3 /dev/sda1
    C. mkfs -t ext3 /dev/hdb2
    Explanation
    The given answer is correct because mke2fs -j /dev/hdd2, mkfs.ext3 /dev/sda1, and mkfs -t ext3 /dev/hdb2 are all valid commands that can be used to create an Ext3 file system.

    Rate this question:

  • 8. 

    Desejo obter informações do superbloco da partição /dev/sda1. Qual comando pode ser utilizado para realizar tal tarefa ?

    • A.

      tune2fs -L /dev/sda1

    • B.

      dumpe2fs -h /dev/sda1

    • C.

      debugfs -R /dev/sda1

    • D.

      mke2fs -l /dev/sda1

    Correct Answer
    B. dumpe2fs -h /dev/sda1
    Explanation
    The command "dumpe2fs -h /dev/sda1" can be used to obtain information about the superblock of the partition /dev/sda1.

    Rate this question:

  • 9. 

    Qual comando formata uma partição como sendo do tipo Swap ?

    • A.

      mkswap /dev/sda3

    • B.

      mkfs.swap /dev/sda3

    • C.

      swapon /dev/sda3

    • D.

      mkfs -t swap /dev/sda3

    Correct Answer
    A. mkswap /dev/sda3
    Explanation
    The command "mkswap /dev/sda3" is used to format a partition as a swap type.

    Rate this question:

  • 10. 

    Qual comando devemos usar quando nosso objetivo é alterar o grupo de um arquivo ? (Especifique somente o comando).

    Correct Answer
    chgrp
    Explanation
    The command "chgrp" is used to change the group of a file.

    Rate this question:

  • 11. 

    Qual o correto uso do comando mount quando o objetivo é montar todos os sistemas de arquivos listados em /etc/fstab ?

    • A.

      mount -a

    • B.

      mount -l

    • C.

      mount -r

    • D.

      mount

    Correct Answer
    A. mount -a
    Explanation
    The correct usage of the mount command when the objective is to mount all the file systems listed in /etc/fstab is "mount -a". This command will mount all the file systems specified in the /etc/fstab file, allowing them to be accessed and used.

    Rate this question:

  • 12. 

    Qual o comando usado para se criar um sistema de arquivos do tipo ReiserFS ? (Especifique somente o comando).

    Correct Answer
    mkreiserfs
    Explanation
    The command used to create a ReiserFS file system is "mkreiserfs".

    Rate this question:

  • 13. 

    Qual comando que deve ser executado após a criação de uma área de Swap ?

    Correct Answer
    swapon
    Explanation
    After creating a swap area, the "swapon" command should be executed. This command is used to activate the swap space and make it available for use by the system. It enables the system to use the swap area as virtual memory, allowing for efficient memory management and improved performance.

    Rate this question:

  • 14. 

    Qual comando desabilita a área de paginação swap?

    Correct Answer
    swapoff
    Explanation
    Swapoff é o comando que desabilita a área de paginação swap em um sistema operacional. A área de paginação swap é uma parte do disco rígido usada para armazenar dados temporários quando a memória RAM está cheia. Desabilitar a área de paginação swap pode ser útil em algumas situações, como quando se deseja liberar espaço em disco ou quando se precisa desativar a troca de dados entre a memória RAM e a área de swap por motivos de segurança. O comando swapoff desativa essa funcionalidade, permitindo que o sistema opere apenas com a memória RAM disponível.

    Rate this question:

  • 15. 

    Qual comando é usado para listar a tabela de partição do dispositivo /dev/sda ? (Especifique o comando e seus argumentos).

    Correct Answer
    fdisk -l /dev/sda
    Explanation
    The command "fdisk -l /dev/sda" is used to list the partition table of the device /dev/sda. The "fdisk" command is a utility used for disk partitioning, and the "-l" option is used to list the partition table information. By specifying "/dev/sda" as the device, the command specifically lists the partition table for that device.

    Rate this question:

  • 16. 

    Qual a opção que deve ser adicionada ao arquivo /etc/fstab quando desejamos ativar quotas de disco para usuários em um determinado ponto de montagem ?

    Correct Answer
    usrquota
    Explanation
    The option "usrquota" should be added to the /etc/fstab file when we want to enable disk quotas for users at a specific mount point. This option enables user-level disk quotas, allowing administrators to limit the amount of disk space that each user can utilize on the filesystem. By adding this option to the /etc/fstab file, the system will enable and enforce disk quotas for users at the specified mount point.

    Rate this question:

  • 17. 

    Qual o comando inicia o controle e monitoração das quotas de disco após estarem corretamente configuradas ? (Especifique somente o comando)

    Correct Answer
    quotaon
    Explanation
    The correct answer is "quotaon." This command is used to initiate the control and monitoring of disk quotas after they have been properly configured. It enables the enforcement of disk quotas on a file system, allowing administrators to keep track of and limit the amount of disk space used by individual users or groups.

    Rate this question:

  • 18. 

    Qual comando é usado para desmontar um dispositivo do sistema ? (Especifique somente o comando).

    Correct Answer
    umount
    Explanation
    O comando "umount" é usado para desmontar um dispositivo do sistema.

    Rate this question:

  • 19. 

    Especifique somente o comando que pode ser usado para converter um sistema de arquivo do tipo Ext2 para Ext3 sem causar perda de dados.

    Correct Answer
    tune2fs
    Explanation
    The correct answer is "tune2fs." This command is used to adjust various parameters of the ext2, ext3, and ext4 file systems. In this case, it can be used to convert a file system from ext2 to ext3 without causing any data loss.

    Rate this question:

  • 20. 

    Qual deve ser o valor de umask quando desejamos criar novos arquivos com a permissão 0440 ? (Especifique somente o valor de quatro posições).

    Correct Answer
    0226
    Explanation
    The correct answer is 0226. This value for umask indicates that when creating new files, the default permissions should be 0440. The umask is a mask that is used to determine the default permissions for newly created files and directories. It works by subtracting the umask value from the maximum permissions (usually 777 for directories and 666 for files) to determine the default permissions. In this case, the umask value of 0226 means that the default permissions for new files will be 0440, where the owner has read and write permissions, and the group and others have only read permissions.

    Rate this question:

  • 21. 

    Qual das abaixo é uma entrada /etc/fstab válida ?

    • A.

      /mnt/delta /dev/sda3 ext3 defaults,owner 0 2

    • B.

      /mnt/delta ext3 /dev/sda3 defaults,owner 0 2

    • C.

      /dev/sda3 /mnt/delta ext3 defaults,owner 0 2

    • D.

      /dev/sda3 ext3 /mnt/delta defaults,owner 0 2

    Correct Answer
    C. /dev/sda3 /mnt/delta ext3 defaults,owner 0 2
    Explanation
    The correct answer is "/dev/sda3 /mnt/delta ext3 defaults,owner 0 2". This is a valid entry in the /etc/fstab file because it follows the correct format. The first field specifies the device or partition to be mounted, the second field specifies the mount point directory, the third field specifies the filesystem type, and the remaining fields specify the mount options, dump frequency, and filesystem check order respectively.

    Rate this question:

  • 22. 

    Qual é a correta permissão em valor octal que ativa o chamado SGID em um determinado diretório ? 

    • A.

      1775

    • B.

      2775

    • C.

      6775

    • D.

      0775

    Correct Answer
    B. 2775
    Explanation
    The correct answer is 2775. In Unix-like systems, the SGID (Set Group ID) permission is represented by the number 2 in the leftmost digit of the octal value. The number 2 in the leftmost digit of 2775 indicates that the SGID permission is activated for the directory. The other options, 1775, 6775, and 0775, do not have the number 2 in the leftmost digit, so they do not activate the SGID permission.

    Rate this question:

  • 23. 

    Qual comando interno do programa fdisk é usado para criar uma nova partição ?

    • A.

      a

    • B.

      w

    • C.

      p

    • D.

      n

    Correct Answer
    D. n
    Explanation
    The correct answer is "n". The command "n" is used in the fdisk program to create a new partition.

    Rate this question:

  • 24. 

    Qual comando interno do programa fdisk é usado para alterar o código de identificação de uma partição ?

    • A.

      a

    • B.

      t

    • C.

      n

    • D.

      p

    Correct Answer
    B. t
    Explanation
    The correct answer is "t". The "t" command is used to change the partition type code in the fdisk program. This command allows the user to modify the identification code of a partition, which can be useful for various purposes such as changing the file system type or specifying the partition as active.

    Rate this question:

  • 25. 

    Qual comando exibe o número de inodes utilizados de um determinado Sistema de Arquivo ?

    • A.

      df -i

    • B.

      fdisk -l

    • C.

      tune2fs

    • D.

      du -a

    Correct Answer
    A. df -i
    Explanation
    The command "df -i" is used to display the number of inodes used in a specific File System.

    Rate this question:

  • 26. 

    Qual é o correto valor octal do permissionamento do seguinte diretório ? drwxrwxrwt 4 root root 4096 Dec 22 13:08 /tmp

    • A.

      2777

    • B.

      1777

    • C.

      0777

    • D.

      7772

    Correct Answer
    B. 1777
    Explanation
    The correct octal value for the permission of the given directory "drwxrwxrwt" is 1777. In the permission string, "d" indicates that it is a directory. The first "rwx" represents the owner's permissions, which are read, write, and execute. The second "rwx" represents the group's permissions, also read, write, and execute. The third "rwt" represents the permissions for others, which are read, write, and execute, with the sticky bit set. The sticky bit is represented by "t" and is used to restrict deletion of files within the directory to only the owner of the file. The octal value 1777 represents these permissions.

    Rate this question:

  • 27. 

    Qual comando nos permite visualizar o percentual de utilização de disco de uma determinada partição do Sistema ?

    • A.

      fdisk

    • B.

      du

    • C.

      free

    • D.

      df

    Correct Answer
    D. df
    Explanation
    O comando "df" nos permite visualizar o percentual de utilização de disco de uma determinada partição do sistema. Este comando exibe informações sobre o espaço em disco utilizado e disponível em todas as partições montadas no sistema. Ele também mostra o tamanho total do disco, o uso atual e o espaço livre em cada partição. Portanto, o comando "df" é a opção correta para verificar o percentual de utilização de disco de uma partição específica.

    Rate this question:

  • 28. 

    Qual dos comandos abaixo realiza a correta montagem da partição /dev/sda3 ?

    • A.

      mount /mnt/sdap /dev/sda3 -t ext3

    • B.

      mount /mnt/sdap -t ext3 /dev/sda3

    • C.

      mount -t ext3 -o rw /dev/sda3 /mnt/sdap

    • D.

      mount /dev/sda3 -o rw,ext3 /mnt/sdap

    Correct Answer
    C. mount -t ext3 -o rw /dev/sda3 /mnt/sdap
    Explanation
    The correct answer is "mount -t ext3 -o rw /dev/sda3 /mnt/sdap". This command correctly mounts the partition /dev/sda3 with the ext3 file system type and allows read and write access to it. The mount point is specified as /mnt/sdap.

    Rate this question:

  • 29. 

    Qual dos comandos abaixo exibe informações de quotas de disco para o grupo diretoria ?

    • A.

      quota -q diretoria

    • B.

      quota -gv diretoria

    • C.

      quota -l diretoria

    • D.

      quota -i diretoria

    Correct Answer
    B. quota -gv diretoria
    Explanation
    The correct answer is "quota -gv diretoria". This command displays the disk quota information for the group "diretoria". The "-g" option is used to specify that the quota information should be displayed for a group, and the "-v" option is used to display the information in a more detailed format.

    Rate this question:

  • 30. 

    Qual dos comandos abaixo é usado para exibir informações de uma partição do tipo xfs ?

    • A.

      xfs_info

    • B.

      xfs.info

    • C.

      xfs_metadump

    • D.

      xfs_details

    Correct Answer
    A. xfs_info
    Explanation
    The correct answer is xfs_info. This command is used to display information about an XFS file system. It provides details such as the size, block size, inode size, mount options, and other information related to the XFS file system.

    Rate this question:

  • 31. 

    Qual utilitário você usaria para alterar a forma como muitas vezes uma verificação do sistema de arquivos é realizada ao longo de um sistema de arquivos ext2 (Sem perder os dados armazenados no sistema de arquivos) ?

    • A.

      mke2fs

    • B.

      fixe2fs

    • C.

      tune2fs

    • D.

      fsck

    • E.

      mod2fs

    Correct Answer
    C. tune2fs
    Explanation
    Tune2fs is the utility that is used to alter the frequency of file system checks on an ext2 file system without losing any data stored on the file system. It allows the user to change various parameters and settings of the file system, including the interval at which file system checks are performed. This utility is specifically designed for ext2 file systems and provides a way to customize and optimize the file system's performance without compromising data integrity.

    Rate this question:

  • 32. 

    Qual o valor de umask deve ser definido para que as permissões de um novo arquivo criado seja; -rw-r–r– (644)?

    • A.

      0022

    • B.

      0002

    • C.

      0224

    • D.

      0246

    Correct Answer
    A. 0022
    Explanation
    The correct answer is 0022. The umask value determines the default permissions for newly created files. It is subtracted from the maximum permissions (666 for files) to determine the actual permissions. In this case, 0022 is subtracted from 666, resulting in 644, which matches the desired permissions -rw-r--r--.

    Rate this question:

  • 33. 

    Você usa um binário em /tmp/foo.d que tem seu arquivo de configuração em /etc/foo.conf , você não quer salva-lo neste local, e sim criar um link simbólico para /etc/foo.d/foo.conf. Qual comando poderá realizar esta tarefa?

    • A.

      ln -s /tmp/foo.d/foo.conf /etc/foo.conf

    • B.

      ln /tmp/foo.d/foo.conf /etc/foo.conf

    • C.

      ln -s /etc/foo.conf /tmp/foo.d/foo.conf

    • D.

      ln /etc/foo.conf /tmp/foo.d/foo.conf

    Correct Answer
    C. ln -s /etc/foo.conf /tmp/foo.d/foo.conf
    Explanation
    The correct answer is "ln -s /etc/foo.conf /tmp/foo.d/foo.conf". This command creates a symbolic link named "foo.conf" in the directory "/tmp/foo.d" that points to the file "/etc/foo.conf". This allows you to access the configuration file from the original location ("/etc/foo.conf") through the symbolic link ("/tmp/foo.d/foo.conf") without physically moving or duplicating the file.

    Rate this question:

  • 34. 

    Qual o mais simples comando para checar a integridade de um sistema de arquivos ext2?

    • A.

      fsck.ext2

    • B.

      fsck -t ext2

    • C.

      e2fsck

    • D.

      ext2fsck

    • E.

      N.D.A

    Correct Answer
    C. e2fsck
    Explanation
    The correct answer is "e2fsck." The command "e2fsck" is the simplest command to check the integrity of an ext2 file system. It is specifically designed for the ext2 file system and is used to repair any inconsistencies or errors found in the file system.

    Rate this question:

  • 35. 

    Qual das alternativas abaixo é uma entrada válida no arquivo fstab?

    • A.

      fs1:/proc /mnt/fs1 nfs defaults 9 9

    • B.

      /mnt/fs1 fs1:/proc nfs defaults 0 0

    • C.

      fs1:/home /mnt/fs1 nfs defaults 0 0

    • D.

      /mnt/home fs1:/home nfs defaults 0 0

    • E.

      /home/fs1 /mnt/fs1 nfs defaults 0 0

    Correct Answer
    C. fs1:/home /mnt/fs1 nfs defaults 0 0
  • 36. 

    Quais são os passos necessários para disponibilizar um novo disco para usuários? (Selecione 3 respostas).

    • A.

      fdisk

    • B.

      mkfs

    • C.

      mount

    • D.

      stat

    • E.

      quotaon

    Correct Answer(s)
    A. fdisk
    B. mkfs
    C. mount
    Explanation
    To make a new disk available to users, three steps need to be followed. First, the disk needs to be partitioned using the "fdisk" command. Then, the partition needs to be formatted using the "mkfs" command. Finally, the formatted partition can be mounted using the "mount" command, making it accessible for users to use.

    Rate this question:

  • 37. 

    Em um sistema Linux padrão, o umask para um usuário não root deveria está configurado por default como:

    • A.

      066

    • B.

      022

    • C.

      077

    • D.

      211

    • E.

      002

    Correct Answer
    B. 022
    Explanation
    In a standard Linux system, the umask for a non-root user is typically configured by default as 022. The umask is a permission mask that determines the default permissions for newly created files and directories. In this case, a umask of 022 means that the write permission is not allowed for group and others, while read and execute permissions are allowed for all. This ensures that files and directories created by the user are not writable by others, but can still be read and executed.

    Rate this question:

  • 38. 

    Voce está preparando-se para um novo sistema de arquivos ext3, que é a segunda partição no primeiro disco IDE. Como você pode checar a integridade do sistema de arquivos sem ter que responder "y" para qualquer questão?

    • A.

      e3fsck -y /dev/hda2

    • B.

      e2fsck -y /dev/hda2

    • C.

      e3fsck -r /dev/hda2

    • D.

      e2fscl -r /dev/hda2

    Correct Answer
    B. e2fsck -y /dev/hda2
    Explanation
    The correct answer is "e2fsck -y /dev/hda2". This command is used to check the integrity of the ext3 file system on the second partition of the first IDE disk. The "-y" option is used to automatically answer "yes" to all questions, allowing the check to proceed without any user interaction.

    Rate this question:

  • 39. 

    O que precisa ser adicionado na seguinte linha; " /dev/sda2 /usr ext3 defaults 0 0 " do arquivo fstab para habilitar quotas de grupos para a partição montada em /usr ?

    Correct Answer
    grpquota
    Explanation
    Para habilitar quotas de grupos para a partição montada em /usr, é necessário adicionar "grpquota" na linha mencionada do arquivo fstab. Isso permitirá que o sistema operacional controle e limite o uso de espaço em disco para os grupos de usuários que têm acesso à partição /usr.

    Rate this question:

  • 40. 

    Qual entrada no /etc/fstab irá permitir qualquer usuário montar e desmontar /dev/cdrom ?

    • A.

      /dev/cdrom /cd ro,noauto,unhide,all iso9660 0 0

    • B.

      /dev/cdrom /cd iso9660 ro,noauto,nonroot 0 0

    • C.

      /dev/cdrom /cd iso9660 ro,users,noauto 0 0

    • D.

      /dev/cdrom /cd iso9660 ro,noauto,defaults 0 0

    Correct Answer
    C. /dev/cdrom /cd iso9660 ro,users,noauto 0 0
    Explanation
    The correct answer is "/dev/cdrom /cd iso9660 ro,users,noauto 0 0". This entry in the /etc/fstab file allows any user to mount and unmount the /dev/cdrom device. It specifies the file system type as iso9660, the mount options as read-only (ro), allowing users to mount it (users), and not automatically mounting it at boot (noauto). The last two fields are for dump and file system check options, which are not relevant in this context.

    Rate this question:

  • 41. 

    Sua máscara está configurada com o valor 002. Se você criar um novo arquivo, quais serão as permissões deste arquivo?

    • A.

      -rw-rw-r--

    • B.

      rwxrwx-w-

    • C.

      ------w-

    • D.

      rwxrwxr-x

    Correct Answer
    A. -rw-rw-r--
    Explanation
    The permissions of the new file will be -rw-rw-r--. In the given mask value 002, the first digit represents the owner's permissions, the second digit represents the group's permissions, and the third digit represents the permissions for others. In this case, the owner and group have read and write permissions (rw-), while others have only read permission (r--).

    Rate this question:

  • 42. 

    Em uma partição ext2, qual porção é reservada para o usuário root?

    • A.

      100 cilindros

    • B.

      Não mais que 500 bloclos

    • C.

      Nada

    • D.

      5%

    • E.

      1/32 do espaço disponível

    Correct Answer
    D. 5%
    Explanation
    In an ext2 partition, 5% of the space is reserved for the user root.

    Rate this question:

  • 43. 

    Você quer que as permissões para seus arquivos sejam "-rw-r-----", como deverá ser configurado o umask?

    • A.

      026

    • B.

      640

    • C.

      038

    • D.

      027

    Correct Answer
    A. 026
    Explanation
    The correct answer is 026. The umask is a value that determines the default permissions for newly created files. In this case, the desired permissions are "-rw-r-----", which means the owner has read and write permissions, the group has read permissions, and others have no permissions. To achieve this, the umask should be set to 026, as it will remove the write and execute permissions for the group and others.

    Rate this question:

  • 44. 

    Qual opção do comando fdisk irá listar o menu de opções desta ferramenta?

    • A.

      p

    • B.

      t

    • C.

      m

    • D.

      d

    Correct Answer
    C. m
    Explanation
    The command "m" in fdisk will list the menu of options for this tool.

    Rate this question:

  • 45. 

    Qual o tipo de sistema de arquivo é utilizado pelo mkfs quando não é especificado nenhum durante a formatação de uma partição? Ex: mkfs /dev/sdb1

    • A.

      ext2

    • B.

      ext3

    • C.

      vfat

    • D.

      N.D.A

    Correct Answer
    A. ext2
    Explanation
    When no file system type is specified during the formatting of a partition using mkfs, the default file system type used is ext2.

    Rate this question:

  • 46. 

    Digite o comando que irá exibir as partições em um drive slave secundário em seu sistema.

    Correct Answer
    fdisk -l /dev/hdd
    Explanation
    The given command "fdisk -l /dev/hdd" is used to display the partitions on a secondary slave drive in the system. The "fdisk" command is used for disk partitioning, and the "-l" option is used to list the partitions. "/dev/hdd" specifies the device file for the secondary slave drive. By running this command, the user will be able to see the partitions on the specified drive.

    Rate this question:

  • 47. 

    Digite a linha de comando (Completa) para iniciar o particionamento do segundo disco SCSI em seu sistema usando a ferramenta de particionamento de disco mais comum.

    Correct Answer
    fdisk /dev/sdb
    Explanation
    The correct answer is "fdisk /dev/sdb". This command is used to initiate the partitioning of the second SCSI disk in the system using the most common disk partitioning tool, fdisk. By specifying "/dev/sdb", it indicates that the partitioning should be performed on the second SCSI disk.

    Rate this question:

  • 48. 

    De acordo com a versão 2.2 do Fliesystem Hierarchy Standard, qual das opções abaixo é um diretório opcional na estrutura de diretórios a partir da raiz (/) em um sistema Linux?

    • A.

      /home

    • B.

      /var

    • C.

      /boot

    • D.

      /mnt

    • E.

      /tmp

    Correct Answer
    D. /mnt
    Explanation
    According to the Filesystem Hierarchy Standard version 2.2, the "/mnt" directory is an optional directory in the directory structure starting from the root ("/") in a Linux system. This directory is typically used for temporarily mounting filesystems or devices. The other options listed (/home, /var, /boot, /tmp) are all standard directories in the Linux filesystem hierarchy and are not considered optional.

    Rate this question:

  • 49. 

    Você escreveu uma ferramenta personalizada em seu sistema local. Seguindo o FHS, em qual diretório você deve instalar os binários para que tal ferramenta fique disponível para todos os usuários em seu sistema?

    Correct Answer
    /bin
    Explanation
    According to the FHS (Filesystem Hierarchy Standard), the /bin directory is where essential command binaries are stored. These binaries are required for the system to boot, run, and perform basic operations. Therefore, installing the custom tool in the /bin directory ensures that it is available to all users on the system, as it can be accessed directly from the command line without specifying a specific path.

    Rate this question:

  • 50. 

    De acordo com o FHS, qual das seguintes opções corresponde a um diretório compartilhável para arquivos estáticos da aplicação ?

    • A.

      /opt

    • B.

      /usr

    • C.

      /var

    • D.

      /var/log

    • E.

      /etc

    Correct Answer
    B. /usr
    Explanation
    The correct answer is /usr. According to the FHS (Filesystem Hierarchy Standard), the /usr directory is used for shareable, read-only data, including static files for applications. This directory is typically used for files that are not modified during normal system operation.

    Rate this question:

Quiz Review Timeline +

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

  • Current Version
  • Mar 14, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 10, 2016
    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.