Diego Souza
Quiz by , created more than 1 year ago

Shells, Scripts, e administração de dados

32
0
0
Diego Souza
Created by Diego Souza over 5 years ago
Close

LPI Prova 102 - Questões Tópico 105

Question 1 of 21

1

O principal arquivo de definição de variáveis globais do Bash é:

Select one of the following:

  • /etc/fstab

  • /etc/bash

  • /etc/global

  • /etc/profile

Explanation

Question 2 of 21

1

O arquivo de definições do Bash para cada usuário é o:

Select one of the following:

  • ~/.init

  • ~/.bash

  • ~/.shell

  • ~/.bash_profile

Explanation

Question 3 of 21

1

O comando alias delete="rm -i" tem a finalidade de :

Select one of the following:

  • substituir o comando rm -i pelo comando delete.

  • criar o comando delete que invoca o comando rm -i

  • evitar que arquivos essenciais sejam apagados

  • o comando rm sempre exigirá confirmação de exclusão

Explanation

Question 4 of 21

1

Qual entrada no início de um script identifica o programa /bin/bash como interpretador padrão?

Select one of the following:

  • export shell=/bin/bash

  • env shell=/bin/bash

  • #shell=/bin/bash

  • #!/bin/bash

Explanation

Question 5 of 21

1

A variável $! representa

Select one of the following:

  • o interpretador padrão do script

  • o primeiro argumento do script

  • o número PID do script

  • o número PID do último programa executado

Explanation

Question 6 of 21

1

A instrução que fecha uma estrutura de teste if é

Select one of the following:

  • fi

  • then

  • end

  • done

Explanation

Question 7 of 21

1

A instrução if [ -n "$NOME"]; then ... será verdadeiro se :

Select one of the following:

  • A variável $NOME contiver um número.

  • A variável $NOME possuir um ou mais caracteres.

  • A variável $NOME for nula.

  • Essa instrução nunca será verdadeira.

Explanation

Question 8 of 21

1

A instrução que fecha uma estrutura case é:

Select one of the following:

  • end

  • done

  • the

  • esac

Explanation

Question 9 of 21

1

O comando seq tem a finalidade de

Select one of the following:

  • segmentar um arquivo.

  • unir vários arquivo em um só.

  • exibir uma sequência ordenada de números.

  • ordenar a entrada padrão numericamente.

Explanation

Question 10 of 21

1

A instrução SQL reponsável por atualizar uma linha numa tabela de banco de dados é:

Select one of the following:

  • INSERT

  • ADD

  • UPDATE

  • WHERE

Explanation

Question 11 of 21

1

Select from the dropdown list to complete the text.

( /etc/profile, /etc/profile.d, /etc/bash.bashrc, /etc/inputrc ): Arquivos de inicialização executado durante o processo de login de todos os usuários do sistema. Em caso de processo de login, será sempre o primeiro arquivo executado.

Explanation

Question 12 of 21

1

Select from the dropdown list to complete the text.

( /etc/profile.d, /etc/profile, /etc/inputrc, /etc/skel/ ): Todos os scripts presentes nesse diretório serão executados durante o processo de login de cada usuário do sistema.

Explanation

Question 13 of 21

1

Select from the dropdown list to complete the text.

( /etc/bash.bashrc, /etc/profile, /etc/profile.d/, /etc/skel/ ): Arquivo executado para todos novo sessão de shell bash, aplicado a todos os usuários.

Explanation

Question 14 of 21

1

Select from the dropdown list to complete the text.

( /etc/inputrc, /etc/profile, /etc/skel/, /etc/bash.bashrc ): Arquivo global utilizado para customização de opções do teclado e de comportamento do terminal.

Explanation

Question 15 of 21

1

Select from the dropdown list to complete the text.

( /etc/skel/, /etc/profile, /etc/inputrc, /etc/bash.bashrc ) : Todos os arquivos e diretórios presentes nesse diretório serão incluídos no diretório home de novos usuários criados no sistema.

Explanation

Question 16 of 21

1

Se exisitir, o arquivo é execudado após o /etc/profile, durante o processo de login do usuário.

Select one of the following:

  • ~/.bash_profile

  • ~/.bash_login

  • ~/.bashrc

  • ~/.inputrc

Explanation

Question 17 of 21

1

Se .bash_profile não existir, o arquivo éxecutado automaticamente durante o processo de login, após a execução do /etc/profile.

Select one of the following:

  • ~/.bash_login

  • ~/.bash_logout

  • ~/.inputrc

  • ~/.bashrc

Explanation

Question 18 of 21

1

Não existindo .bash_profile e bash_login, o arquivo é executado durante o login após a execução do /etc/profile.

Select one of the following:

  • ~/.profile

  • ~/.bash_profile

  • ~/.bash_login

  • ~/.bash_logout

Explanation

Question 19 of 21

1

Executado automaticamente em toda nova sessão de shell bash, logo após o /etc/bash.bashrc.

Select one of the following:

  • ~/.bashrc

  • ~/.inputrc

  • ~/.profile

  • ~/.bash_profile

Explanation

Question 20 of 21

1

Implementa a nível de usuário vinculações de teclas e opções referentes ao terminal

Select one of the following:

  • ~/.inputrc

  • ~/.bash_logout

  • ~/.profile

  • ~/.bash_profile

Explanation

Question 21 of 21

1

Arquivo executado durante o processo de logout do usuário

Select one of the following:

  • ~/.bash_logout

  • ~/.profile

  • ~/.bash_login

  • ~/.bash_profile

Explanation