LPI 101 - Comandos GNU/Linux 4- 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,124
| Attempts: 419
SettingsSettings
Please wait...
  • 1/66 Questions

    Ao editar um arquivo com vi, você percebe que você está alterando o arquivo errado. Qual seqüência de comando vi lhe permitirá sair sem salvar as alterações?

    • :Q!
    • :q!
    • :w!
    • :wq!
Please wait...
LPI 101 - Comandos GNU/Linux 4- Marcus Vinicius Braga Alcantara - Quiz
About This Quiz

.


Quiz Preview

  • 2. 

    Como você pode ler os conteúdos da variável PATH no bash shell?

    • print PATH

    • print $PATH

    • echo PATH

    • echo $PATH

    • echo %PATH%

    Correct Answer
    A. echo $PATH
    Explanation
    To read the contents of the variable PATH in the bash shell, you can use the command "echo $PATH". The "echo" command is used to display the value of a variable, and the "$" symbol is used to access the value of a variable. Therefore, "echo $PATH" will display the contents of the PATH variable in the bash shell.

    Rate this question:

  • 3. 

    Qual comando vi irá alterar os modos para que o texto possa ser digitado, digitando no teclado?

    • e

    • i

    • t

    • w

    Correct Answer
    A. i
    Explanation
    The correct answer is "i". In vi, the "i" command is used to switch to insert mode, allowing the user to type and edit text using the keyboard.

    Rate this question:

  • 4. 

    A prioridade de qualquer processo pode variar de -20 a ________ . (Fornecer apenas o valor numérico).

    Correct Answer
    19
    +19
    Explanation
    The question asks for the range of priority values for a process, which can vary from -20 to 19. The "+19" in the answer suggests that the priority value can also be positive, in addition to being negative or zero.

    Rate this question:

  • 5. 

    Qual o programa que interpreta suas ações e comandos no sistema operacional?

    • Utility

    • Application

    • Shell

    • Command

    Correct Answer
    A. Shell
    Explanation
    A shell is a program that interprets user actions and commands in the operating system. It provides a command-line interface where users can interact with the system by typing commands. The shell takes these commands and executes them, allowing users to perform various tasks and control the system. Unlike utilities and applications, which are specific programs designed for particular functions, the shell acts as an intermediary between the user and the operating system, enabling them to access and manipulate system resources.

    Rate this question:

  • 6. 

    Qual comando embutido no shell bash é utilizado para visualizar o histórico de comandos?

    Correct Answer
    history
    Explanation
    The correct answer is "history." In the bash shell, the "history" command is used to view the command history. It displays a list of previously executed commands, along with their line numbers. This command is helpful for recalling and reusing past commands, saving time and effort.

    Rate this question:

  • 7. 

    Você deseja repetir o comando de número 3 em seu histórico de comandos. Como você faria isso?

    • show 3

    • #3

    • !3

    • repeat 3

    Correct Answer
    A. !3
    Explanation
    To repeat the command number 3 in the command history, you would use "!3". This is a shorthand notation that allows you to quickly rerun a specific command without having to retype it.

    Rate this question:

  • 8. 

    Qual o comando você usaria para determinar qual o shell você está usando?

    • echo $MYSHEL

    • echo SHELL

    • shell

    • echo $SHELL

    Correct Answer
    A. echo $SHELL
    Explanation
    The correct answer is "echo $SHELL". This command will print the value of the SHELL environment variable, which typically contains the path to the current shell being used.

    Rate this question:

  • 9. 

    Você tem dois scripts, foo e bar. Você deseja que o bar seja executado somente se foo retornar uma saída com status igual a 0. Selecione a alternativa correta.

    • foo ; bar

    • foo || bar

    • foo && bar

    • foo % bar

    Correct Answer
    A. foo && bar
    Explanation
    The correct answer is "foo && bar". This is because the "&&" operator in shell scripting means "AND". So, the command "foo && bar" will execute the command "foo" first, and only if it returns a status of 0 (indicating success), the command "bar" will be executed.

    Rate this question:

  • 10. 

    Qual é o resultado da saída do comando a seguir; echo "Hello World" | tr -d aieou

    • Hello World

    • eoo

    • HllWrld

    • eoo HllWrld

    Correct Answer
    A. HllWrld
    Explanation
    The command "echo "Hello World" | tr -d aieou" is using the "tr" command to delete all occurrences of the letters "a", "i", "e", "o", and "u" from the input string "Hello World". Therefore, the resulting output is "HllWrld".

    Rate this question:

  • 11. 

    Qual tecla você pressiona para mudar para o modo normal no vi ?

    • Alt

    • Esc

    • Ctrl

    • Shift

    Correct Answer
    A. Esc
    Explanation
    Pressing the Esc key in vi switches from any other mode (such as insert or command mode) back to the normal mode.

    Rate this question:

  • 12. 

    Em conformidade com o FHS, em qual diretório as páginas de manuais (man pages) são encontradas?

    • /usr/share/man

    • /opt/man

    • /usr/doc/

    • /var/pkg/man

    • /var/man

    Correct Answer
    A. /usr/share/man
    Explanation
    According to the FHS (Filesystem Hierarchy Standard), the man pages are typically found in the "/usr/share/man" directory. This directory is commonly used to store the system's documentation, including the manual pages. It is a standard location for man pages in most Linux distributions. Other directories mentioned in the options, such as "/opt/man", "/usr/doc/", "/var/pkg/man", and "/var/man", are not the standard locations for man pages as per the FHS.

    Rate this question:

  • 13. 

    Qual comando irá exibir todas as tarefas em segundo plano em execução no shell atual ?

    • history

    • jobs

    • kill -l

    • list

    Correct Answer
    A. jobs
    Explanation
    The correct answer is "jobs". The "jobs" command is used to display all the jobs or tasks that are running in the background in the current shell session. It provides information such as the job ID and status of each task.

    Rate this question:

  • 14. 

    Você quer executar uma série de comandos de uma só vez. Qual a maneira mais rápida de fazer isto?

    • Após digitar cada um dar um enter

    • Colocá-los em um script e executá-lo

    • Separar os comandos com ponto-e-vírgula (;) e pressionar enter

    • Separar o comando com barra (/) e pressionar enter

    Correct Answer
    A. Separar os comandos com ponto-e-vírgula (;) e pressionar enter
    Explanation
    Separating the commands with a semicolon (;) allows you to execute multiple commands in a single line, saving time and effort. By pressing enter after entering the commands, each command will be executed sequentially. This method is quicker than typing each command individually and pressing enter after each one or creating a script to execute the commands.

    Rate this question:

  • 15. 

    Qual das respostas seguintes cria uma variável de ambiente VAR1 que possa estar presente em um processo bash filho?

    • VAR1="fail" ; export VAR1

    • VAR1="fail" \ export VAR1

    • VAR1="fail"

    • et VAR1="fail" ; enable VAR1

    • export VAR1 \ VAR1="fail"

    Correct Answer
    A. VAR1="fail" ; export VAR1
    Explanation
    This answer correctly creates a variable VAR1 with the value "fail" and exports it so that it can be accessed by a child bash process.

    Rate this question:

  • 16. 

    A sua máquina Linux tem 2 monitores. Seu segundo monitor está configurado como a segunda tela da primeira apresentação. Se você quer que o programa "netscape" seja exibido em seu segundo monitor, Qual comando você deve usar antes de iniciar o Netscape?

    • export set display=:10; netscape

    • export set display=:10; netscape

    • export set DISPLAY=:0:0; netscape

    • export set DISPLAY=:0:1; netscape

    Correct Answer
    A. export set DISPLAY=:0:1; netscape
    Explanation
    The correct answer is "export set DISPLAY=:0:1; netscape". This command sets the display variable to ":0:1", which refers to the second monitor. By doing this, the program "netscape" will be displayed on the second monitor.

    Rate this question:

  • 17. 

    Qual comando history (Com parâmetro) irá limpar todo o histórico de comandos ?

    Correct Answer
    history -c
    Explanation
    The command "history -c" is used to clear the entire command history. By running this command, all previously executed commands will be removed from the history file, effectively erasing the entire command history.

    Rate this question:

  • 18. 

    Qual variável ambiental indica o caminho do seu diretório HOME?

    • BASH_ENV

    • HOME

    • BLENDERDIR

    • PWD

    Correct Answer
    A. HOME
    Explanation
    The variable "HOME" indicates the path to the user's home directory in the environment. This directory is typically the default location where the user's personal files and settings are stored.

    Rate this question:

  • 19. 

    Qual é o valor nice máximo que um usuário regular pode atribuir a um processo com o comando durante a execução de um novo processo ?

    • 9

    • 19

    • 49

    • 99

    Correct Answer
    A. 19
    Explanation
    A regular user can assign a maximum nice value of 19 to a process during the execution of a new process. The nice value is used in Unix-like operating systems to prioritize the execution of processes. A lower nice value indicates a higher priority for the process. Regular users typically have limited privileges and cannot assign extremely high priority to processes, hence the maximum value they can assign is 19.

    Rate this question:

  • 20. 

    Qual é a ação padrão do comando split em um arquivo de entrada ?

    • Ele vai quebrar o arquivo em novos arquivos de 1.024 bytes cada.

    • Ele vai quebrar o arquivo em novos arquivos de 1000 linhas.

    • Ele vai quebrar o arquivo em novos arquivos de 1.024 kilobytes.

    • Ele irá quebrar o ficheiro em novos ficheiros que não são mais do que 5 % da dimensão do ficheiro original.

    Correct Answer
    A. Ele vai quebrar o arquivo em novos arquivos de 1000 linhas.
    Explanation
    The correct answer is "Ele vai quebrar o arquivo em novos arquivos de 1000 linhas." This means that the split command will divide the file into new files, with each file containing 1000 lines.

    Rate this question:

  • 21. 

    Que sinal é enviado pelo comando kill por padrão?

    • HUP(1)

    • QUIT(3)

    • KILL(9)

    • TERM(15)

    Correct Answer
    A. TERM(15)
    Explanation
    The correct answer is TERM(15) because the command "kill" by default sends a termination signal (SIGTERM) to a process. This signal instructs the process to gracefully terminate and clean up its resources before exiting. The other signals mentioned (HUP, QUIT, KILL) have different purposes, but they are not the default signal sent by the "kill" command.

    Rate this question:

  • 22. 

    Que comando será executado, cmd1 seguido por cmd2, independentemente do status de saída cmd1?

    • cmd1 cmd2

    • cmd1 | cmd2

    • cmd1 ; cmd2

    • cmd1 || cmd2

    • cmd1 && cmd2

    Correct Answer
    A. cmd1 ; cmd2
    Explanation
    The correct answer is "cmd1 ; cmd2". The semicolon (;) is a command separator in the shell, which means that both cmd1 and cmd2 will be executed regardless of the exit status of cmd1. This allows for the sequential execution of multiple commands in the shell.

    Rate this question:

  • 23. 

    Qual é o propósito do comando interno do bash chamado export ?

    • Ele permite que os discos sejam montados remotamente.

    • Ele é executado como um processo em um subnível .

    • Isso torna o histórico de comandos disponíveis para subshells.

    • Ele define as variáveis ​​de ambiente para aplicações.

    • Ele compartilha partições NFS para uso por outros sistemas na rede.

    Correct Answer
    A. Ele define as variáveis ​​de ambiente para aplicações.
    Explanation
    O comando interno do bash chamado export é usado para definir variáveis de ambiente para aplicações. Isso significa que as variáveis definidas com o comando export estarão disponíveis para todos os processos que são executados a partir do shell atual. Isso é útil para configurar variáveis de ambiente que são necessárias para que um programa ou script funcione corretamente.

    Rate this question:

  • 24. 

    O que é descrito pelas variáveis PS1 e PS2?

    • Postscript Level 1 e Level 2 capabilities

    • Aliases para "ps" and "ps uax"

    • Power Save Mode

    • Prompt normal e prompt estendido.

    • Link simbólico para um mouse

    Correct Answer
    A. Prompt normal e prompt estendido.
    Explanation
    As per the given options, the variables PS1 and PS2 are described as the normal prompt and extended prompt. This means that these variables control the appearance and behavior of the command prompt in a Unix-like operating system. The PS1 variable defines the prompt displayed when waiting for a new command, while the PS2 variable defines the prompt displayed when a command is continued onto the next line.

    Rate this question:

  • 25. 

    Utilizando os conceitos de expressões regulares, descreva um metacharacter.

    • Eles são caracteres de texto padrão, usados na expressão regular.

    • Eles são caracteres de controle especiais usados na expressão regular.

    • Eles são usados para exibir resultados depois de usar uma expressão regular.

    • Eles são usados pela shell para exibir gráficos.

    • Metacharacters não são usados em expressões regulares.

    Correct Answer
    A. Eles são caracteres de controle especiais usados na expressão regular.
    Explanation
    Metacharacters are special control characters used in regular expressions. They have special meaning and are used to define patterns and match specific characters or groups of characters in a string.

    Rate this question:

  • 26. 

    Qual dos seguintes comandos podem ser usados ​​para criar uma mídia de armazenamento USB de uma imagem de disco?

    • gdisk

    • fdisk

    • mount

    • dd

    • cc

    Correct Answer
    A. dd
    Explanation
    The command "dd" can be used to create a USB storage media from a disk image. "dd" is a command-line utility in Unix-like operating systems that is used to convert and copy files. In this case, it can be used to create a bootable USB drive by copying the disk image onto the USB drive bit by bit.

    Rate this question:

  • 27. 

    Você fez telnet em vários servidores ao mesmo tempo. Durante o dia você se sente perdido em qual sessão está conectado. Qual o comando no seu .profile resolveria este problema deixando claro em qual o servidor você está conectado?

    • PS1="\h: \w>"

    • PS1="\s: \W>"

    • PS1="\!: \t>"

    • PS1="\a: \n>"

    Correct Answer
    A. PS1="\h: \w>"
    Explanation
    The correct answer is PS1="\h: \w>". This command sets the prompt in the .profile file to display the hostname (\h) and the current working directory (\w). This will help the user easily identify the server they are connected to.

    Rate this question:

  • 28. 

    Qual dos seguintes comandos mata o processo com o PID 123, mas permite "limpar" antes de sair?

    • kill -PIPE 123

    • kill -KILL 123

    • kill -STOP 123

    • kill -TERM 123

    Correct Answer
    A. kill -TERM 123
    Explanation
    The correct answer is "kill -TERM 123". The "-TERM" option sends a termination signal to the process with PID 123, allowing it to clean up any resources before exiting. The other options, "-PIPE", "-KILL", and "-STOP", send different signals that do not provide the process with the opportunity to clean up before termination.

    Rate this question:

  • 29. 

    No editor vi, qual dos seguintes comandos irá copiar a linha atual no buffer vi ?

    • c

    • cc

    • 1c

    • yy

    • 1y

    Correct Answer
    A. yy
    Explanation
    The command "yy" in vi will copy the current line into the vi buffer.

    Rate this question:

  • 30. 

    Em uma estrutura de diretório aninhada, qual opção de linha de comando seria usado para restringir o comando find para procurar por um determinado número de subdiretórios ?

    • -dirmax

    • -maxdepth

    • -maxlevels

    • -n

    • -s

    Correct Answer
    A. -maxdepth
    Explanation
    The correct answer is "-maxdepth". This option is used in the command "find" to restrict the search to a specific number of subdirectories. By specifying a number after "-maxdepth", the command will only search for files or directories within that number of levels deep from the starting directory.

    Rate this question:

  • 31. 

    Qual variável de ambiente guarda a lista de diretórios que o shell usa para encontrar arquivos executáveis?

    Correct Answer
    PATH
    Explanation
    The correct answer is "PATH". The PATH environment variable stores a list of directories that the shell uses to search for executable files. When a command is entered in the shell, it checks each directory in the PATH variable in order to find the corresponding executable file. This allows users to run commands without specifying the full file path.

    Rate this question:

  • 32. 

    Qual é o efeito sobre o comando grep quando a opção -v é usada ?

    • Ele permite a correspondência multi-linha na entrada.

    • É um atalho para o comando vgrep.

    • Ele define o sinalizador detalhado e aumenta a quantidade de informação que é fornecida.

    • Ele inverte a correspondência para selecionar linhas não correspondentes.

    Correct Answer
    A. Ele inverte a correspondência para selecionar linhas não correspondentes.
    Explanation
    When the -v option is used with the grep command, it inverts the matching to select non-matching lines. In other words, it will display all the lines that do not contain the specified pattern or expression. This can be useful when you want to exclude certain lines from the output.

    Rate this question:

  • 33. 

    Qual dos seguintes comandos irá substituir todas as ocorrências da palavra list por LIST no arquivo myfile.txt e imprimir os resultados na tela ?

    • sed --in-place -e "s/list/LIST/" myfile.txt

    • sed -e "s/list/LIST/" myfile.txt

    • sed --in-place -e "/list/LIST/" myfile.txt

    • sed -e "/list/LIST/" myfile.txt

    Correct Answer
    A. sed -e "s/list/LIST/" myfile.txt
    Explanation
    The correct answer is "sed -e "s/list/LIST/" myfile.txt". This command uses the sed utility to search for the word "list" in the file myfile.txt and replace all occurrences with "LIST". The -e option specifies the script to be executed, and "s/" is the substitute command in sed.

    Rate this question:

  • 34. 

    O que acontece após a emissão do comando vi sem quaisquer parâmetros adicionais ?

    • vi inicia e carrega o último arquivo usado e move o cursor para a posição onde atual de de quando o arquivo foi fechado.

    • vi inicia e exige que o usuário explicitamente crie um novo arquivo ou edite um existente.

    • vi sai com uma mensagem de erro, uma vez que não pode ser chamado sem um nome de arquivo para operar.

    • vi começa no modo de comando e abre um novo arquivo vazio.

    • vi inicia e abre um novo ficheiro, que é preenchido com o conteúdo da memória intermédia vi, se o buffer contém texto.

    Correct Answer
    A. vi começa no modo de comando e abre um novo arquivo vazio.
    Explanation
    After issuing the "vi" command without any additional parameters, it starts in command mode and opens a new empty file.

    Rate this question:

  • 35. 

    Você está digitando uma linha de comando grande e complexa e você alcançou o fim da tela. Você quer continuar digitando, mas na linha abaixo. Quais as teclas que permitem isso?

    • Esc, /, Enter

    • /, Enter

    • Ctrl-d, enter

    • Esc, /, ctrl-d

    Correct Answer
    A. /, Enter
    Explanation
    The combination of the "/" key and the "Enter" key allows the user to continue typing on a new line below the current line.

    Rate this question:

  • 36. 

    Qual dos seguintes comandos define uma variável chamada TEST com o conteúdo FOO ?

    • set TEST="FOO"

    • TEST = "FOO"

    • var TEST="FOO"

    • TEST="FOO"

    Correct Answer
    A. TEST="FOO"
    Explanation
    The correct answer is "TEST="FOO"". This is the correct command to define a variable called TEST with the content FOO. The other options either use incorrect syntax or do not follow the correct format for defining a variable.

    Rate this question:

  • 37. 

    Qual dos seguintes comandos irá encontrar a string foo no arquivo file1.txt, independentemente de foo estar em letras maiúsculas ou minúsculas ?

    • cat file1.txt | grep -i foo

    • cat file1.txt > grep -n foo

    • grep -i foo | file1.txt

    • grep -n file1.txt < foo

    • grep -n foo file1.txt

    Correct Answer
    A. cat file1.txt | grep -i foo
    Explanation
    The correct answer is "cat file1.txt | grep -i foo". This command will use the "cat" command to display the contents of "file1.txt" and then pipe it to the "grep" command with the "-i" flag, which will perform a case-insensitive search for the string "foo".

    Rate this question:

  • 38. 

    Quando no modo normal no vi, que comando pode ser usado para iniciar uma busca reversa do texto?

    • ?

    • /

    • F

    • r

    Correct Answer
    A. ?
    Explanation
    In the normal mode of the vi editor, the "?" command can be used to initiate a reverse search for text. This command allows the user to search for a specific text pattern in the backward direction from the current cursor position.

    Rate this question:

  • 39. 

    Imediatamente após a exclusão de 3 linhas de texto no vi e movendo o cursor para uma linha diferente, qual comando irá inserir o conteúdo excluído abaixo da linha atual?

    • i (lowercase)

    • P (uppercase)

    • p (lowercase)

    • U (uppercase)

    • u (lowercase)

    Correct Answer
    A. p (lowercase)
    Explanation
    After deleting 3 lines of text in vi and moving the cursor to a different line, the "p" command (lowercase) will insert the deleted content below the current line.

    Rate this question:

  • 40. 

    Qual dos seguintes comandos determina o tipo de um arquivo usando um arquivo de banco de dados de definição que contém informações sobre todos os tipos de arquivos comuns ?

    • magic

    • type

    • file

    • pmagic

    • hash

    Correct Answer
    A. file
    Explanation
    O comando "file" determina o tipo de um arquivo usando um arquivo de banco de dados de definição que contém informações sobre todos os tipos de arquivos comuns.

    Rate this question:

  • 41. 

    Quando devo usar grep -F ou o comando fgrep para pesquisar o conteúdo de arquivos de texto ?

    • Quando os arquivos que precisam ser pesquisados ​​contêm texto não-ASCII.

    • Quando apenas a presença do padrão de procura necessita de ser reportado e não cada linha que coincide com a pesquisa.

    • Quando o texto que está sendo procurado não contém quaisquer padrões de expressões regulares.

    • Quando os arquivos de texto serão procurados várias vezes. As chamadas subseqüentes para fgrep irá correr mais rápido.

    Correct Answer
    A. Quando o texto que está sendo procurado não contém quaisquer padrões de expressões regulares.
    Explanation
    The correct answer states that grep -F or fgrep should be used when the text being searched does not contain any regular expression patterns. This means that if the search does not require any complex pattern matching, using grep -F or fgrep can be more efficient and faster than using regular grep. These commands are specifically designed for simple string matching without the need for regular expressions.

    Rate this question:

  • 42. 

    Qual a variável de ambiente é usada para exibir remotamente em outra máquina uma sessão X sua?

    • DISPLAY

    • XSESSION

    • SCREEN

    • TTY

    Correct Answer
    A. DISPLAY
    Explanation
    The correct answer is DISPLAY. The DISPLAY variable is used to specify the remote machine and display number where X applications should be displayed. It is commonly used in Unix-like operating systems to enable X11 forwarding, allowing users to run graphical applications on a remote machine and have them displayed on their local machine.

    Rate this question:

  • 43. 

    Qual dos seguintes comandos irá enviar a saída do programa myapp tanto para a saída padrão (stdout) e para o arquivo file1.log ?

    • cat < myapp | cat > file1.log

    • myapp 0>&1 | cat > file1.log

    • myapp | cat > file1.log

    • myapp | tee file1.log

    • tee myapp file1.log

    Correct Answer
    A. myapp | tee file1.log
    Explanation
    The command "myapp | tee file1.log" will send the output of the program "myapp" to both the standard output (stdout) and the file "file1.log".

    Rate this question:

  • 44. 

    No bash shell, executar o comando !! tem o mesmo efeito de qual dos seguintes comandos?

    • Ctrl-N e Enter

    • Ctrl-P e Enter

    • Ctrl-U e Enter

    • !-2

    • !2

    Correct Answer
    A. Ctrl-P e Enter
    Explanation
    The command !! in the bash shell is used to execute the previous command. Similarly, Ctrl-P is a keyboard shortcut that is used to navigate to the previous command in the command history. Therefore, executing Ctrl-P and Enter will have the same effect as executing !!, which is to run the previous command.

    Rate this question:

  • 45. 

    Você digitou o seguinte comando "ls -al /home/hadden". Quais teclas podem ser utilizadas para retirar o espaço entre a barra -/- e a palavra -hadden- sem redigitar o comando?

    • Ctrl-B, Del

    • Esc-b, Del

    • Esc-Del, Del

    • Ctrl-b, Del

    Correct Answer
    A. Esc-b, Del
    Explanation
    The answer is "Esc-b, Del". Pressing the Esc key followed by the b key will move the cursor back one word. Then, pressing the Del key will delete the space between the slash and the word "hadden" without having to retype the whole command.

    Rate this question:

  • 46. 

    Qual dos seguintes sinais são enviados para um processo quando a combinação de teclas CTRL+C é pressionada no teclado?

    • SIGTERM

    • SIGINT

    • SIGSTOP

    • SIGKILL

    Correct Answer
    A. SIGINT
    Explanation
    When the combination of keys CTRL+C is pressed on the keyboard, the signal SIGINT is sent to a process. This signal is used to interrupt the process and request it to terminate gracefully. It allows the process to clean up resources and perform any necessary actions before exiting.

    Rate this question:

  • 47. 

    Depois de digitar um comando, você recebe uma mensagem de erro indicando sintaxe incorreta. Quem é o autor da mensagem?

    • Shell

    • Sistema Operacional

    • Comando ou Programa

    • Kernel

    Correct Answer
    A. Comando ou Programa
    Explanation
    The correct answer is "Comando ou Programa". When you type a command, it is the command or program itself that is responsible for checking the syntax and providing an error message if it is incorrect. The shell, operating system, and kernel are all components of the system that facilitate the execution of the command, but they are not directly responsible for generating the error message.

    Rate this question:

  • 48. 

    Qual dos seguintes comandos é usado para alterar as opções e os parâmetros posicionais para uma bash em execução?

    • bashconf

    • history

    • set

    • setsh

    • envsetup

    Correct Answer
    A. set
    Explanation
    The "set" command is used to alter the options and positional parameters for a running bash. It allows the user to change various settings and configurations within the bash environment.

    Rate this question:

  • 49. 

    Ao ler as páginas man, um monte de caracteres extras são mostrados na tela. Qual dos seguintes comandos podem ajudar a lidar com este problema?

    • col

    • grep

    • more

    • pg

    • row

    Correct Answer
    A. more
    Explanation
    The command "more" can help deal with the problem of extra characters being displayed on the screen when reading the man pages. The "more" command allows the user to view the output one page at a time, pausing after each page, which helps in managing the excessive characters and makes it easier to read the content.

    Rate this question:

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
  • Mar 14, 2017
    Quiz Created by
    Viniciusalcantar
Back to Top Back to top
Advertisement