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,566
| Attempts: 400 | Quest�es: 100 | Updated: Mar 17, 2023
Please wait...

Question 1 / 101
🏆 Rank #--
Score 0/100

1. Sobre as opções do comando "quotacheck". Associe:

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

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

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

Explanation

The command used to create hardlinks is "ln".

Submit

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?

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

7. Sobre as opções do comando "quotaoff". Associe:

Submit

8. Sobre as opções do comando "df" Associe:

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

14. Quais os dois comandos vão encontrar o caminho para o binário 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.

Submit

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

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.

Submit

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

Explanation

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

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

27. Qual dos seguintes comandos permite a permissão setuid (suid) no executável chamado /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".

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

32. Sobre as opções do comando "quotaon". Associe:

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

40. Sobre as opções do comando "mke2fs". Associe:

Submit

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

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.

Submit

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

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.

Submit

43. Qual comando é usado para determinar um tipo de arquivo?

Explanation

The command "file" is used to determine the type of a file.

Submit

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

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.

Submit

45. O que o dispositivo /dev/hdb6 representa?

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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.

Submit

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

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

Submit

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

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.

Submit

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

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.

Submit

54. Um sistema tem um disco rígido e um gravador de CD que estão conectados aos controladores SATA. Qual dispositivo representa o gravador de CD ?

Explanation

The correct answer is /dev/sr0. In Linux, devices connected to SATA controllers are represented by /dev/sdX, where X is a letter indicating the device. The "sr" prefix is used for CD/DVD devices. Therefore, /dev/sr0 represents the CD recorder in this system.

Submit

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

Explanation

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

Submit

56. Sobre as opções do comando "edquota".

Submit

57. Qual dos seguintes comandos irá imprimir a quantidade de espaço em disco usado por arquivos especificados na linha de comando?

Explanation

The command "du" will print the amount of disk space used by the specified files in the command line.

Submit

58. Qual é o propósito do Filesystem Hierarchy Standard ?

Explanation

The purpose of the Filesystem Hierarchy Standard is to provide a neutral description of file and directory locations in Linux systems. It does not focus on security, tools for managing file systems, or defining a common internal structure for inodes. Instead, it aims to standardize the organization of files and directories in Linux systems, making it easier for users and developers to navigate and understand the file system structure.

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

63. Qual diretório deve ter seu próprio ponto de montagem e/ou disco rígido?

Explanation

The /home directory should have its own point of mount and/or hard disk because it is typically used to store user data and personal files. By having its own separate mount point or disk, it allows for easier management and organization of user data, as well as potential performance benefits by separating user files from system files.

Submit

64. O sticky bit é geralmente definido em:

Explanation

The sticky bit is typically set on the /tmp directory. This special permission ensures that only the owner of a file or directory can delete or rename it, even if other users have write access to the same directory. This is useful in preventing accidental or malicious deletion of important system files in the /tmp directory, which is commonly used for temporary storage by various processes and applications.

Submit

65. Quais são as opções para node.startup no arquivo iscsid.conf ? (Escolha duas respostas corretas).

Explanation

The correct options for node.startup in the iscsid.conf file are "manual" and "automatic". These options determine how the iSCSI initiator should handle the startup of the node. "Manual" means that the initiator will not automatically attempt to establish connections with targets during startup, while "automatic" means that the initiator will automatically attempt to establish connections with targets during startup.

Submit

66. Sobre as opções do comando "quota". Associe:

Submit

67. Onde pode um arquivo de swap estar localizado ?

Explanation

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

Submit

68. Como você pode desligar quotas de grupo em /pub ?

Explanation

The correct answer is "quotaoff -gv /pub". This command is used to turn off group quotas for the "/pub" directory. The "-g" option specifies that group quotas should be turned off, and the "-v" option displays a message indicating that the quotas have been turned off.

Submit

69. O comando mkfs -t ext3 /dev/hdb1 -T Largefile cria o tamanho do inode ?

Explanation

The correct answer is 1 megabyte. When the command "mkfs -t ext3 /dev/hdb1 -T Largefile" is executed, it creates a file system with the ext3 type on the /dev/hdb1 device. The "-T Largefile" option specifies that the file system will be optimized for large files. In this optimization, the size of the inode is set to 1 megabyte, which allows for efficient storage and management of large files.

Submit

70. Você tem permissão de leitura/gravação em um arquivo comum chamado foo. Você acabou de executar "ln foo bar". O que irá acontecer se o arquivo foo for removido?

Explanation

If the file "foo" is removed after executing the command "ln foo bar", the file "bar" would still remain accessible. This is because the "ln" command creates a hard link between the two files, making them essentially the same file with different names. Even if one of the names is removed, the file itself still exists and can be accessed through the remaining name.

Submit

71. George está planejando um esquema de partição para uma nova instalação Linux. Quais os três diretórios que ele deve considerar como partições separadas ? (Escolha três).

Explanation

George deve considerar os diretórios /home, /var e /tmp como partições separadas. Essa prática é comum em instalações Linux, pois permite que cada diretório seja montado em uma partição diferente, proporcionando maior segurança e flexibilidade. A partição /home é usada para armazenar os arquivos pessoais dos usuários, a partição /var é usada para armazenar dados variáveis, como logs e bancos de dados, e a partição /tmp é usada para armazenar arquivos temporários. Separar esses diretórios em partições distintas ajuda a evitar problemas de espaço e melhora o desempenho do sistema.

Submit

72. Você está usando quota no seu sistema. Como você pode ver detalhes de quotas de disco?

Explanation

The correct answer is "repquota". Repquota is a command that can be used to view detailed information about disk quotas in a system. It provides a comprehensive report of the disk usage and quota limits for each user or group. By running the "repquota" command, you can easily check the details of disk quotas in your system.

Submit

73. Qual das seguintes alternativas é verdadeira quando link's para arquivos são criados?

Explanation

When links to files are created, both the original file and the linked file will share the same inode. An inode is a data structure in a Unix-style file system that stores metadata about a file, such as its permissions, ownership, and location on the disk. By sharing the same inode, the linked file essentially becomes a reference to the original file, allowing multiple names to point to the same underlying data. This can be useful for creating shortcuts or aliases to files without duplicating the actual content.

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

77. Sobre as opções do comando "tune2fs". Associe:

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

81. Qual dos seguintes comandos é o último executado durante a inicialização em um sistema com quotas habilitadas ?

Explanation

During the initialization of a system with enabled quotas, the "quotaon" command is the last one executed. This command is used to enable disk quotas on a filesystem, allowing the system to start tracking and enforcing quotas for users and groups on that filesystem. By running "quotaon" as the last step of the initialization process, the system ensures that quotas are properly set up and enforced before any user or application starts accessing the filesystem.

Submit

82. Você fica sem espaço em disco em uma partição. Qual das seguintes alternativas seria uma maneira fácil para mover os dados desta partição para uma nova partição sem reconfigurar o caminho para os dados em aplicativos existentes?

Explanation

Using a symbolic link would be an easy way to move the data from the partition to a new partition without reconfiguring the path for the data in existing applications. A symbolic link is a special type of file that acts as a pointer to another file or directory. By creating a symbolic link, the applications can still access the data in the new partition using the same path as before, without any need for reconfiguration.

Submit

83. O arquivo /etc/ _______ contém uma lista dispositivos montados atualmente.

Explanation

The given correct answer is "mtab". The question is asking for the name of the file that contains a list of currently mounted devices. The file "/etc/mtab" is the correct answer as it is the standard location for this information in Linux systems.

Submit

84. O que o comando mount -a faz?

Explanation

The command "mount -a" ensures that all file systems listed with the "auto" option in the /etc/fstab file are mounted.

Submit

85. Qual dos seguintes é um exemplo de caminho para uma matriz de software RAID Linux?

Explanation

The correct answer is /dev/md1 because in Linux, the prefix "/dev/md" is used to represent software RAID devices. The number after the prefix represents the specific RAID device, so "/dev/md1" indicates the first software RAID device.

Submit

86. O que o Filesystem Hierarchy Standard permite ? (Escolha duas respostas).

Explanation

The Filesystem Hierarchy Standard allows software to predict the location of installed files and directories, as well as allows users to predict the location of installed files and directories.

Submit

87. Sobre os códigos de retorno do comando "fsck". Associe:

Submit

88. Qual opção de montagem deve ser usado em /etc/fstab quando montar um destino iSCSI ?

Explanation

The option "_netdev" should be used in /etc/fstab when mounting an iSCSI target. This option tells the system to wait until the network is up before attempting to mount the iSCSI target. This is important because the iSCSI target relies on network connectivity, so it is necessary to ensure that the network is fully functional before attempting to mount the target.

Submit

89. Qual é o principal arquivo de modelo usado pelo autofs ?

Explanation

The main configuration file used by autofs is "auto.master". This file contains the directives and settings that determine how autofs mounts and manages filesystems on demand. It specifies the mount points and the corresponding configuration files for each filesystem. By editing the "auto.master" file, users can customize the behavior of autofs and define the locations of other configuration files, such as "default.maps" or "auto.conf". However, the primary file that controls autofs is "auto.master".

Submit

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

Explanation

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

Submit

91. Você escreveu uma ferramenta personalizada em seu sistema local. Seguindo o Filesystem Hierarchy Standard (FHS), onde você deve instalar os binários para estar disponível para todos os usuários do seu sistema?

Explanation

not-available-via-ai

Submit

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

Explanation

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

Submit

93. Sobre as opções do comando gdisk. Associe:

Submit

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

Explanation

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

Submit

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

Explanation

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

Submit

96. Sobre as opções do comando "fsck". Associe:

Submit

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

Explanation

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

Submit

98. Sobre as opções do comando "du" Associe:

Submit

99. Sobre as opções do comando "repquota". Associe:

Submit

100. Sobre as opções do comando "whereis". Associe:

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (100)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Sobre as opções do comando "quotacheck"....
Qual é o comando usado para se criar hardlinks ? (Especifique...
Você está instalando um servidor que vai sofrer muitas...
Qual diretório contém um spool de e-mail, além de...
Qual é o binário cuja principal função é...
Onde fsck irá colocar qualquer arquivo ou fragmentos não...
Sobre as opções do comando "quotaoff". Associe:
Sobre as opções do comando "df" Associe:
Qual dos diretórios abaixo podem ser ponto de montagem em...
Você quer que seus usuários possam montar o CD-ROM em...
Qual das seguintes alternativas é o nome do arquivo do...
Qual o efeito que o sticky bit tem quando definido em um...
Você executou o fdisk no seu Linux para modificar o layout da...
Quais os dois comandos vão encontrar o caminho para o...
Qual dos seguintes comandos pode ser usado ​​para localizar...
Que tipo de sistema de arquivo é criado pelo mkfs quando...
Qual diretório utiliza o novo sysfs com suporte a hotswap de...
Qual utilitário seria usado para alterar a frequência de...
Quantos campos estão em uma linha sintaticamente correta de...
Qual das seguintes permissões de arquivo pertence a um link...
Ao tentar criar um hard link para um arquivo comum, foi retornado um...
Qual o programa que atualiza o banco de dados que é usado pelo...
Você irá instalar um Linux em uma estação de...
Você quer que as permissões padrão para seus...
Qual das seguintes configurações para umask garante que os...
Em vez de fornecer um dispositivo explícito no /etc/fstab para...
Qual dos seguintes comandos permite a permissão setuid (suid)...
Identifique o dispositivo adequado para a terceira partição na...
Qual comando permitirá um administrador ajustar o número...
Depois de executar o comando umount /mnt, a seguinte mensagem de erro...
Qual comando chown irá alterar a propriedade do...
Sobre as opções do comando "quotaon". Associe:
Qual dos comandos abaixo utiliza a variável de ambiente PATH...
Qual das seguintes é uma norma de sistema de arquivos para...
Você deseja exibir todos os sistemas de arquivos montados...
_________ /dev/sda3 irá criar uma área de swap no...
Qual das seguintes alternativas são tipos de sistemas de...
Você quer ter a certeza de que determinados diretórios...
Qual dos seguintes comandos cria um sistema de arquivos ext3 em...
Sobre as opções do comando "mke2fs". Associe:
Quais dos diretórios abaixo obrigatoriamente deve residir na...
Você está instalando Linux em uma estação de...
Qual comando é usado para determinar um tipo de arquivo?
Qual dos seguintes comandos irá alterar a cota de um...
O que o dispositivo /dev/hdb6 representa?
Qual diretório é o ponto de acesso para mídias...
Qual é o comando que devemos usar quando desejamos obter o...
Qual o nome do dispositivo para o segundo disco SCSI em seu sistema...
Para permitir que um usuário regular possa montar e desmontar...
O que o diretório /sbin contém? Selecione a melhor...
De acordo com o FHS, os diretórios last+found são usados...
Que valor umask resultará as permissões de acesso...
O que faz o seguinte comando; mkfs -V -t ext2 /dev/sda4 ?
Um sistema tem um disco rígido e um gravador de CD que...
Quando uma partição ext2 é formatada, uma percentagem...
Sobre as opções do comando "edquota".
Qual dos seguintes comandos irá imprimir a quantidade de...
Qual é o propósito do Filesystem Hierarchy Standard ?
Qual arquivo você deve editar para excluir diretórios...
O que está errado com a seguinte entrada...
Em um sistema típico IDE, indique partições e...
De acordo com FHS, qual dos seguintes diretórios é...
Qual diretório deve ter seu próprio ponto de montagem...
O sticky bit é geralmente definido em:
Quais são as opções para node.startup no arquivo...
Sobre as opções do comando "quota". Associe:
Onde pode um arquivo de swap estar localizado ?
Como você pode desligar quotas de grupo em /pub ?
O comando mkfs -t ext3 /dev/hdb1 -T Largefile cria o tamanho do inode...
Você tem permissão de leitura/gravação em um...
George está planejando um esquema de partição para uma...
Você está usando quota no seu sistema. Como você...
Qual das seguintes alternativas é verdadeira quando link's...
A fim de exibir todos os sistemas de arquivos montados atualmente,...
Qual o caminho completo para a segunda partição de um disco...
Qual dos seguintes comandos pode ser utilizado para procurar o...
Sobre as opções do comando "tune2fs". Associe:
Qual dos seguintes comandos altera o número de dias antes de o...
Em um sistema com partições separadas /, /usr, /var, /tmp,...
Dos seguintes diretórios, de qual deles é mais...
Qual dos seguintes comandos é o último executado durante...
Você fica sem espaço em disco em uma partição. Qual das...
O arquivo /etc/ _______ contém uma lista dispositivos montados...
O que o comando mount -a faz?
Qual dos seguintes é um exemplo de caminho para uma matriz de...
O que o Filesystem Hierarchy Standard permite ? (Escolha duas...
Sobre os códigos de retorno do comando "fsck"....
Qual opção de montagem deve ser usado em /etc/fstab quando...
Qual é o principal arquivo de modelo usado pelo autofs ?
Você deseja permitir aos usuários do Linux rodando...
Você escreveu uma ferramenta personalizada em seu sistema local....
Que comando é usado para criar e inicializar os arquivos usados...
Sobre as opções do comando gdisk. Associe:
Um sistema ext2 está sendo usado por um aplicativo que lê...
Qual o caminho completo da base de dados do...
Sobre as opções do comando "fsck". Associe:
De acordo com o FHS Padrão, quais árvores de...
Sobre as opções do comando "du" Associe:
Sobre as opções do comando "repquota". Associe:
Sobre as opções do comando "whereis". Associe:
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!