LPI 101 - Devices, Linux FileSystems, Fhs 1- 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,534
| Attempts: 542 | Questions: 100
Please wait...
Question 1 / 100
0 %
0/100
Score 0/100
1. Qual comando desabilita a área de paginação swap?

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.

Submit
Please wait...
About This Quiz
LPI 101 - Devices, Linux Filesystems, Fhs 1- Marcus Vinicius Braga Alcantara - Quiz

.

Personalize your quiz and earn a certificate with your name on it!
2. Qual comando exibe o número de inodes utilizados de um determinado Sistema de Arquivo ?

Explanation

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

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

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.

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

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.

Submit
5. Como você pode definir o SGID em um arquivo chamado testkingexaminator ?

Explanation

The correct answer is "chmod g+s testkingexaminator". The "g+s" option sets the setgid permission on the file. When the setgid permission is set on a directory, any new files or directories created within that directory inherit the group ownership of the parent directory. In this case, setting the setgid permission on the "testkingexaminator" file would ensure that any new files or directories created within it would have the same group ownership as the "testkingexaminator" file.

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

Explanation

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

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

Explanation

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

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

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

Submit
9. Quando o sistema é inicializado, todos os sistemas de arquivos no /etc/fstab são montados, excepto aqueles que na coluna de opções contém _____?

Explanation

When the system is initialized, all file systems in the /etc/fstab are mounted except for those that have "noauto" specified in the options column.

Submit
10. Se você definir o umask para 022, por padrão, as permissões de seus arquivos serão?

Explanation

If you set the umask to 022, the default permissions for your files will be 0644. Umask is a permission mask that is subtracted from the default permissions to determine the final permissions of newly created files. In this case, the umask of 022 means that the write permissions for group and others are removed from the default permissions of 0666, resulting in 0644. This means that the owner has read and write permissions, while the group and others have only read permissions.

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

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.

Submit
12. Você precisa criar um link simbólico no diretório home do usuário atual com o nome testking para o arquivo /data/foobar. Escolha o comando que vai realizar tal tarefa.

Explanation

The correct answer is "ln -s /data/foobar ~/testking". This command will create a symbolic link named "testking" in the home directory of the current user, pointing to the file "/data/foobar". The "-s" option is used to create a symbolic link instead of a hard link. The "~" represents the home directory of the current user.

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

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.

Submit
14. Qual comando chown irá alterar a propriedade para foo e o grupo para bar em um arquivo chamado biglist ?

Explanation

The command "chown foo:bar biglist" will change the ownership of the file "biglist" to the user "foo" and the group "bar". The format "user:group" is used to specify both the user and group at the same time.

Submit
15. Quando você cria um novo arquivo, as permissões são mostradas com 664. O valor umask provavelmente fixado é ?

Explanation

The given answer, 002, suggests that the umask value is set to 002. In Unix-like operating systems, umask is a command that determines the default permissions for newly created files and directories. The umask value is subtracted from the default permissions of 666 for files and 777 for directories. In this case, a umask value of 002 would result in the default permissions being reduced by 2 for the group and others, resulting in the permissions of 664 for newly created files.

Submit
16. Qual dos sistemas de arquivo abaixo não possui journaling?

Explanation

Ext2 is the correct answer because it is the only file system listed that does not have journaling. Journaling is a feature in file systems that helps to ensure data consistency and integrity by keeping a log of changes before they are actually written to the file system. Ext3, Ext4, ReiserFS, and XFS all have journaling capabilities, making them more reliable and less prone to data corruption in the event of system crashes or power failures.

Submit
17. 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?

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.

Submit
18. Ao executar o comando; chmod 4750 em um arquivo, estamos atribuindo:

Explanation

The correct answer is "Permissão especial SUID, rwx para dono, r-x para grupo e nada para os outros." This is because the command "chmod 4750" sets the file permissions to give the owner read, write, and execute permissions (rwx), the group read and execute permissions (r-x), and no permissions for others. Additionally, the "SUID" permission is set, which allows the file to be executed with the permissions of the file owner.

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

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.

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

Explanation

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

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

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.

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

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.

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

Explanation

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

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

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

Submit
25. O terceiro campo do arquivo /etc/fstab determina:

Explanation

The third field in the /etc/fstab file determines the filesystem type of the partition. This field specifies the type of filesystem that is being used on the partition, such as ext4, NTFS, or FAT32. It is important to specify the correct filesystem type in order for the operating system to properly mount and access the partition.

Submit
26. Links simbólicos deixarão de funcionar quando:

Explanation

When the destination of a symbolic link is moved, the symbolic link will no longer function correctly. This is because the symbolic link points to a specific location in the file system, and if that location is changed, the link will no longer be able to find the intended destination.

Submit
27. Como você pode gerar um relatório sobre o uso dos discos e quotas para todos os sistemas de arquivos que possuem quotas configuradas definidos em /etc/mtabto ?

Explanation

The correct answer is "repquota -a". The command "repquota -a" is used to generate a report on the usage of disks and quotas for all file systems that have quotas configured. It provides detailed information about the disk usage and quota limits for each file system, allowing for easy monitoring and management of quotas.

Submit
28. Você trabalha como administrador de rede da TestKing.com. Supondo que um usuário foi movido para outro departamento dentro de TestKing.com. Qual comando você usaria para alterar o grupo na propriedade de seus arquivos e diretórios ?

Explanation

The correct answer for this question is "chown" and "chgrp". These are both commands that can be used to change the ownership and group of files and directories in a Linux system. The "chown" command is used to change the ownership of a file or directory, while the "chgrp" command is used to change the group ownership. By using these commands, the administrator can easily update the ownership and group of the user's files and directories after they have been moved to another department within TestKing.com.

Submit
29. 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) ?

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.

Submit
30. Qual comando irá criar um sistema de arquivos ext3 em /dev/hda2 ?

Explanation

The correct answer is /sbin/mke2fs -j /dev/hda2. This command will create an ext3 file system on the /dev/hda2 device. The -j option is used to create a journaling file system, which is a feature of ext3.

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

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.

Submit
32. Qual das seguintes informações o comando "df" não irá retornar?

Explanation

The "df" command does not provide information about how long the file system has been mounted. It primarily displays information about disk space usage, such as the amount of space used and available on each partition, the file system type, and the number of inodes used in a partition.

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

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.

Submit
34. Qual dos seguintes comandos é equivalente ao seguinte comando "chmod 754 ~/file1" para o usuário, cujo diretório inicial é /home/jdoe?

Explanation

The correct answer is "chmod u=rwx,g=rx,o=r /home/jdoe/file1". This command sets the permissions for the file "file1" in the directory "/home/jdoe" to rwx (read, write, execute) for the user, rx (read, execute) for the group, and r (read) for others.

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

Explanation

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

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

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.

Submit
37. Qual dos seguintes resultados é gerado pelo seguinte comando "chmod g+s /home/software" ?

Explanation

The command "chmod g+s /home/software" sets the SGID (Set Group ID) bit for the directory /home/software. This means that any new files or directories created within /home/software will inherit the group ownership of the parent directory, ensuring consistent group ownership for all files created. This allows for easier collaboration and management within a group environment.

Submit
38. Qual comando abaixo altera de forma recursiva o dono e grupo (para root) dos arquivos e diretórios abaixo de /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.

Submit
39. Quantos inodes são atribuídos a um arquivo quando ele é criado ?

Explanation

When a file is created, it is initially assigned 1 inode. An inode is a data structure in a Unix-style file system that stores metadata about a file, such as its size, permissions, and location. Each file in the file system has a unique inode number associated with it. Therefore, when a file is created, it is assigned a single inode to track and manage its properties.

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

Explanation

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

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

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

Submit
42. O que o "sticky bit" faz?

Explanation

O "sticky bit" impede que arquivos sejam apagados por não-proprietários, exceto o root. Isso significa que apenas o proprietário do arquivo ou o root têm permissão para excluí-lo, mesmo que outros usuários tenham permissões de escrita no diretório onde o arquivo está localizado. Isso é útil em diretórios compartilhados, como /tmp, onde vários usuários podem ter permissão para gravar arquivos, mas apenas o proprietário deve ter permissão para excluir ou modificar os arquivos.

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

Explanation

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

Submit
44. Depois de criar um novo arquivo, você percebe que as permissões do novo arquivo é; "-rw-rw-rw-". A partir disso, você sabe que o valor do umask é _____? 

Explanation

Based on the given permissions of the new file ("-rw-rw-rw-"), which indicates that the file has read and write permissions for all users, it can be concluded that the umask value is 000. Umask is a value that is used to determine the default permissions for newly created files and directories. A umask value of 000 means that no permissions are masked or removed, resulting in the maximum permissions being granted to the new file.

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

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.

Submit
46. Você é o usuário root de um sistema, e precisa recolher informações de quotas sobre todos os usuários do sistema. Digite o comando, juntamente com quaisquer opções e argumentos para alcançar este objetivo.

Explanation

The correct answer is "repquota -a" because the command "repquota" is used to display quotas for a specified file system. The "-a" option is used to display quotas for all users on the system. By using this command with the "-a" option, the root user will be able to gather information about the quotas of all users on the system.

Submit
47. 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

Explanation

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

Submit
48. O sistema de arquivos FAT32 é reconhecido pelo linux como _______.

Explanation

The FAT32 file system is recognized by Linux as "vfat".

Submit
49. O que o comando "ln test king" irá fazer ?

Explanation

The command "ln test king" will create a physical link from the file king to test.

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

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.

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

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.

Submit
52. Qual comando você deve usar para criar um sistema de arquivos ext2 ?

Explanation

The correct answer is mke2fs, mkfs.ext2, mkfs -t ext2, mkfs. These are all valid commands that can be used to create an ext2 file system. The command "mke2fs" is specifically designed for creating ext2 file systems. "mkfs.ext2" is another command that can be used to create an ext2 file system. The "-t ext2" flag is used with the "mkfs" command to specify the file system type as ext2. Therefore, all of these commands can be used to create an ext2 file system.

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

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.

Submit
54. Você tem o seguinte arquivo; "-rwxrwxr-x 1 foo root 0 Feb 23 07:48 /bin/foo". Qual dos seguintes comandos irá mudar o dono do arquivo "/bin/foo", tornando o usuário bar proprietário do mesmo sem afetar a propriedade do grupo ?

Explanation

The correct answer is "chown bar /bin/foo". This command will change the owner of the file "/bin/foo" to the user "bar" without affecting the group ownership. The "chown" command is used to change the owner of a file, and in this case, "bar" is specified as the new owner.

Submit
55. A seguinte linha "/dev/fd0 /mnt/fd0 vfat noauto,users 0 0" vem de /etc/fstab. Quais das afirmativas estão corretas, dado o conteúdo desta linha? (Marque duas respostas corretas).

Explanation

The correct answer is "Os usuários têm permissão para montar e desmontar o sistema de arquivos" and "O sistema de arquivos se encontra em um disquete." This is because the options "/dev/fd0" and "vfat" in the line "/dev/fd0 /mnt/fd0 vfat noauto,users 0 0" indicate that the filesystem is located on a floppy disk. Additionally, the "users" option allows users to mount and unmount the filesystem.

Submit
56. Qual dos seguintes comandos faz /bin/foo executável por todos mas apenas gravável pelo seu proprietário ?

Explanation

The correct answer is "chmod 655 /bin/foo". In this command, "chmod" is used to change the permissions of the file "/bin/foo". The number "655" represents the permissions for the file, where the first digit "6" represents the permissions for the owner (read and write), the second digit "5" represents the permissions for the group (read and execute), and the third digit "5" represents the permissions for others (read and execute). Therefore, this command makes the file executable by all, but only writable by its owner.

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

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.

Submit
58. 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?

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.

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

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.

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

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.

Submit
61. Qual comando com opções mostrará o uso dos sistemas de arquivos atualmente montados em seu SO, listando a unidade de armazenamento em kilobytes?

Explanation

The command "df -k" is used to display the usage of currently mounted file systems in the operating system, listing the storage units in kilobytes.

Submit
62. Quais dos seguintes comandos podem ser usados para se verificar um sistema de arquivos ext2? (Selecione 3 respostas).

Explanation

The commands "fsck /dev/hda5", "e2fsck /dev/hda5", and "fsck.ext2 /dev/hda5" can be used to verify a ext2 file system. The "fsck" command is a general file system check command, "e2fsck" is specifically used for ext2 file systems, and "fsck.ext2" is another command specifically for ext2 file systems. These commands are used to check and repair any errors or inconsistencies in the file system.

Submit
63. O parâmetro _____ junto ao comando mkfs indica que o sistema de arquivos atribuído terá journaling.

Explanation

The parameter "-j" is used with the mkfs command to indicate that the assigned file system will have journaling.

Submit
64. Você instalou um novo kernel experimental e descobriu que uma de suas partições ext2 não funciona mais. Você tentou, sem sucesso, repará-lo. Que programa você pode usar para depurar interativamente o sistema de arquivos?

Explanation

You can use the "debugfs" program to interactively debug the file system. It allows you to examine and modify the internal structure of the file system, which can be helpful in troubleshooting and repairing issues with the ext2 partition that is not functioning properly after installing the experimental kernel.

Submit
65. 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 ?

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.

Submit
66. Você está tendo erros e ocorrências estranhas em um sistema de arquivos ext2, e quer depurá-lo. Digite apenas o comando que irá mais diretamente alcançar este objetivo .

Explanation

The correct answer is "debugfs". Debugfs is a command-line utility used for debugging and repairing file systems. It provides an interactive interface to examine and modify the internal structure of the ext2 file system. By using debugfs, you can analyze the errors and strange occurrences in the ext2 file system and troubleshoot them effectively.

Submit
67. O comando __________ permite reestruturar informações relacionadas aos parâmetros do journal, label e uuid das partições.

Explanation

The correct answer is "tune2fs". The command "tune2fs" allows for the restructuring of information related to the parameters of the journal, label, and uuid of partitions.

Submit
68. 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.

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.

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

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.

Submit
70. 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 ?

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.

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

Explanation

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

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

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.

Submit
73. Para verificar informações detalhadas dos discos podemos utilizar o comando:

Explanation

The correct answer is "dumpe2fs". Dumpe2fs is a command used to display detailed information about a filesystem, including its size, block count, inode count, and other relevant information. It is commonly used to verify the integrity of a filesystem and check for any errors or inconsistencies.

Submit
74. 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?

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.

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

Explanation

not-available-via-ai

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

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.

Submit
77. Qual dos comandos abaixo exibe informações de quotas de disco para o grupo 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.

Submit
78. Onde está a informação de quota para usuários do volume /home ?

Explanation

The correct answer is /home/quota.user. This is because the question is asking for the location of the quota information for users of the volume /home. The file /home/quota.user is the most logical location for this information to be stored.

Submit
79. Você precisa alterar as permissões no diretório /home/mrking e tudo o que é conteúdo para coincidir com as seguintes permissões; "drwxr--r--". Qual dos comandos abaixo com opções e argumentos vai conseguir isso ? (Selecione 2 respostas).

Explanation

The correct answers are "chmod 0744 /home/mrking -R" and "chmod -R u=rwx,g=r,o=r /home/mrking". The first command changes the permissions of the directory /home/mrking and all its contents to "drwxr--r--" recursively. The second command also achieves the same result by explicitly setting the permissions for the user, group, and others to "rwxr--r--" recursively for the directory /home/mrking.

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

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.

Submit
81. Quando você cria um novo diretório, você verá que as permissões são definidas para 600. Qual valor umask foi definido?

Explanation

The answer is 177 because when a new directory is created, the default permissions are set to 600. The umask is used to determine the permissions that are not allowed when creating new files or directories. In this case, the umask value would be 177, which means that the permissions for the owner would be 600 (no permissions for group or others) and the permissions for group and others would be denied (no permissions).

Submit
82. 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?

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.

Submit
83. Você está se preparando para montar uma nova partição ext3. Que comando você usaria para verificar erros no sistema de arquivos antes de montá-lo ? (Incluir apenas o comando sem caminho, opções ou argumentos).

Explanation

The correct answer is e2fsck or fsck.ext3. Both of these commands are used to check for errors in the ext3 file system before mounting it.

Submit
84. Qual arquivo deve ser colocado na raiz do sistema de arquivos para que as quotas sejam habilitadas para os usuários?

Explanation

The correct answer is "quota.user" or "aquota.user". These files need to be placed in the root of the file system in order to enable quotas for users. These files contain the information and settings necessary for managing and enforcing quotas on user accounts.

Submit
85. Digitando fdisk -l /dev/hda em um computador x86 Linux é produzida uma lista de quatro partições : /dev/hda1, /dev/hda2, /dev/hda5 e /dev/hda6. Qual das seguintes alternativas é verdadeira?

Explanation

Partições lógicas são numeradas a partir de 5 e para cima, e elas residem dentro de um partição estendida com um número entre 1 e 4. Por isso , uma das duas primeiras divisórias deve ser um partição estendida que abriga partições 5 e 6. Como as partições lógicas são numeradas a partir de 5, seus números não vai mudar se /dev/hda3 é posteriormente adicionado . O disco detém uma partição primária , uma estendida, e duas partições lógicas .

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

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.

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

Explanation

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

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

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.

Submit
89. Qual atributo do sistema de arquivos ext2 permite que um processo tome a propriedade de um arquivo executável?

Explanation

The SUID (Set User ID) attribute in the ext2 file system allows a process to inherit the privileges of the file owner when executing an executable file. This means that when a user executes a file with the SUID attribute set, the process will run with the same permissions as the owner of the file, rather than the permissions of the user executing it. This attribute is commonly used for executable files that require elevated privileges to perform certain tasks.

Submit
90. Você está usando quotas no seu sistema. Como você pode ver as quotas de disco detalhadamente ?

Explanation

The correct answer is "repquota". Repquota is a command used to view detailed disk quotas in a system. It provides information about the quota limits, usage, and status of each user or group on the system. By using repquota, you can easily monitor and manage disk quotas to ensure efficient disk space allocation.

Submit
91. Qual comando converte o sistema de arquivo ext2 em /dev/sda3 para ext3 sem perda de dados (comando completo)?

Explanation

The correct answer is "tune2fs -j /dev/sda3". This command is used to convert the ext2 file system on /dev/sda3 to ext3 without any data loss. The "-j" option enables the creation of an ext3 journal on the specified device. By using this command, the file system is upgraded to ext3, which provides journaling functionality for improved data integrity and recovery.

Submit
92. Um sistema de arquivos ext2 está configurado com quotas de usuários habilitadas. O limite soft está definido como 100 MB por usuário, o limite hard está definido como 110 MB por usuário e o período de tolerância é de sete dias. O usuário bsmith já detém 90 MB dos dados armazenados no sistema de arquivos. O que acontece quando bsmith escreve um novo arquivo com o tamanho de 30 MB?

Explanation

When the user bsmith writes a new file with a size of 30 MB, the write operation will be successful. However, due to the quota limits set in the ext2 file system, the user will only be able to keep the file for seven days. After this period, the file will be automatically truncated or deleted from the system.

Submit
93. O comando _________ é utilizado para recuperar dados apagados recentemente.

Explanation

The command "debugfs" is used to recover recently deleted data.

Submit
94. Em qual arquivo é provável que você encontre a configuração global para a umask e ulimit ?

Explanation

The correct answer is /etc/bashrc. This file is a script that gets executed whenever a Bash shell is launched for an interactive login session. It contains system-wide configurations and settings for the Bash shell, including the umask and ulimit settings. Therefore, it is likely to contain the global configuration for these settings.

Submit
95. Se você quiser que o seu sistema seja FHS compatível, você deve garantir que o diretório /usr/local contenha quais dos subdiretórios abaixo? (Escolha todas que se aplicam).

Explanation

To ensure FHS compatibility, the /usr/local directory should contain the following subdirectories: bin, lib, man, and sbin. These subdirectories are commonly used for storing executable files (bin), library files (lib), manual pages (man), and system binaries (sbin). Including these subdirectories in the /usr/local directory ensures that the system follows the Filesystem Hierarchy Standard (FHS) guidelines for organizing files and directories.

Submit
96. O ponto de montagem que você deve associar à partições de troca ?

Explanation

not-available-via-ai

Submit
97. Qual dos seguintes comandos irá listar a quota do usuário foobar?

Explanation

The correct answer is "quota foobar". This command will display the quota of the user "foobar".

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

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.

Submit
99. Se o umask de um sistema linux for 012, quais serão, respectivamente, as permissões padrão para diretórios e arquivos?

Explanation

If the umask of a Linux system is set to 012, the default permissions for directories will be 765 and for files will be 664.

Submit
100. Sobre as opções internas (do menu) do comando fdisk. Associe:
Submit
View My Results

Quiz Review Timeline (Updated): Jul 22, 2024 +

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

  • Current Version
  • Jul 22, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • May 10, 2016
    Quiz Created by
    Viniciusalcantar
Cancel
  • All
    All (100)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Qual comando desabilita a área de paginação swap?
Qual comando exibe o número de inodes utilizados de um...
Qual o correto uso do comando mount quando o objetivo é montar...
Quais são os passos necessários para disponibilizar um...
Como você pode definir o SGID em um arquivo chamado...
Qual comando é usado para desmontar um dispositivo do sistema ?...
Qual comando interno do programa fdisk é usado para criar uma...
Qual o valor de umask deve ser definido para que as permissões...
Quando o sistema é inicializado, todos os sistemas de arquivos...
Se você definir o umask para 022, por padrão, as...
Qual das abaixo é uma entrada /etc/fstab válida ?
Você precisa criar um link simbólico no diretório...
Qual é o arquivo de configuração que é...
Qual comando chown irá alterar a propriedade para foo e o grupo...
Quando você cria um novo arquivo, as permissões...
Qual dos sistemas de arquivo abaixo não possui journaling?
Voce está preparando-se para um novo sistema de arquivos ext3,...
Ao executar o comando; chmod 4750 em um arquivo, estamos atribuindo:
Qual entrada no /etc/fstab irá permitir qualquer usuário...
Qual comando formata uma partição como sendo do tipo Swap ?
Qual comando interno do programa fdisk é usado para alterar o...
Especifique somente o comando que pode ser usado para converter um...
Qual opção do comando fdisk irá listar o menu de...
Sua máscara está configurada com o valor 002. Se...
O terceiro campo do arquivo /etc/fstab determina:
Links simbólicos deixarão de funcionar quando:
Como você pode gerar um relatório sobre o uso dos discos...
Você trabalha como administrador de rede da TestKing.com....
Qual utilitário você usaria para alterar a forma como...
Qual comando irá criar um sistema de arquivos ext3 em /dev/hda2...
Quais dos comandos abaixo podem ser usados para criar um sistema de...
Qual das seguintes informações o comando "df"...
Quais comandos abaixo podem ser usados para checar possíveis...
Qual dos seguintes comandos é equivalente ao seguinte comando...
Em uma partição ext2, qual porção é reservada...
Qual comando que deve ser executado após a criação de...
Qual dos seguintes resultados é gerado pelo seguinte comando...
Qual comando abaixo altera de forma recursiva o dono e grupo (para...
Quantos inodes são atribuídos a um arquivo quando ele...
Qual é o comando usado para editar novas quotas de disco para...
Qual deve ser o valor de umask quando desejamos criar novos...
O que o "sticky bit" faz?
Qual comando devemos usar quando nosso objetivo é alterar o...
Depois de criar um novo arquivo, você percebe que as...
Qual comando nos permite visualizar o percentual de utilização...
Você é o usuário root de um sistema, e precisa...
Qual o tipo de sistema de arquivo é utilizado pelo mkfs quando...
O sistema de arquivos FAT32 é reconhecido pelo linux como...
O que o comando "ln test king" irá fazer ?
Qual deve ser o valor de umask quando desejamos criar novos arquivos...
Em um sistema Linux padrão, o umask para um usuário...
Qual comando você deve usar para criar um sistema de arquivos...
Qual dos comandos abaixo é usado para exibir...
Você tem o seguinte arquivo; "-rwxrwxr-x 1 foo root 0 Feb...
A seguinte linha "/dev/fd0 /mnt/fd0 vfat noauto,users 0 0"...
Qual dos seguintes comandos faz /bin/foo executável por todos...
Qual é a correta permissão em valor octal que ativa o...
Você usa um binário em /tmp/foo.d que tem seu arquivo de...
Qual o mais simples comando para checar a integridade de um sistema de...
Qual é o correto valor octal do permissionamento do seguinte...
Qual comando com opções mostrará o uso dos sistemas de...
Quais dos seguintes comandos podem ser usados para se verificar um...
O parâmetro _____ junto ao comando mkfs indica que o sistema de...
Você instalou um novo kernel experimental e descobriu que uma de...
O que precisa ser adicionado na seguinte linha; " /dev/sda2 /usr...
Você está tendo erros e ocorrências estranhas em um...
O comando __________ permite reestruturar informações...
Digite a linha de comando (Completa) para iniciar o particionamento do...
Você quer que as permissões para seus arquivos sejam...
Qual a opção que deve ser adicionada ao arquivo /etc/fstab...
Desejo obter informações do superbloco da partição...
Qual dos comandos abaixo realiza a correta montagem da...
Para verificar informações detalhadas dos discos podemos...
De acordo com a versão 2.2 do Fliesystem Hierarchy Standard,...
Qual das alternativas abaixo é uma entrada válida no...
Qual comando é usado para listar a tabela de partição...
Qual dos comandos abaixo exibe informações de quotas de disco...
Onde está a informação de quota para usuários do...
Você precisa alterar as permissões no diretório...
De acordo com o FHS, qual das seguintes opções corresponde a...
Quando você cria um novo diretório, você...
Você escreveu uma ferramenta personalizada em seu sistema local....
Você está se preparando para montar uma nova...
Qual arquivo deve ser colocado na raiz do sistema de arquivos para que...
Digitando fdisk -l /dev/hda em um computador x86 Linux é...
Quais comandos abaixo são válidos quando o intuito...
Qual o comando usado para se criar um sistema de arquivos do tipo...
Qual o comando inicia o controle e monitoração das quotas de...
Qual atributo do sistema de arquivos ext2 permite que um processo tome...
Você está usando quotas no seu sistema. Como você...
Qual comando converte o sistema de arquivo ext2 em /dev/sda3 para ext3...
Um sistema de arquivos ext2 está configurado com quotas de...
O comando _________ é utilizado para recuperar dados apagados...
Em qual arquivo é provável que você encontre a...
Se você quiser que o seu sistema seja FHS compatível,...
O ponto de montagem que você deve associar à...
Qual dos seguintes comandos irá listar a quota do...
Digite o comando que irá exibir as partições em um...
Se o umask de um sistema linux for 012, quais serão,...
Sobre as opções internas (do menu) do comando fdisk. Associe:
Alert!

Advertisement